HISE Logo Forum
    • Categories
    • Register
    • Login

    [bug] Full expansion audio files not being pooled.

    Scheduled Pinned Locked Moved Solved Bug Reports
    audio filesexpansionimpulseloadingembed
    21 Posts 3 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by d.healey

      I have an hxi with embedded audio files/impulses. It works fine in HISE but when I load the hxi into Rhapsody the files aren't showing up and can't be loaded.

      Here's a test project, you can export the hxi from this.

      ir-loading-testing.zip

      You can download Rhapsody here - https://codeberg.org/LibreWave/Rhapsody/releases/tag/1.2.1

      @Christoph-Hart This is quite a critical one for me because I am using this in a released product and would like to get this fix out to users. Thanks.

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      Dan KorneffD 1 Reply Last reply Reply Quote 0
      • Dan KorneffD
        Dan Korneff @d.healey
        last edited by

        @d-healey What's the process for exporting hxi again? It's been a minute since I've used expansions

        Dan Korneff - Producer / Mixer / Audio Nerd

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @Dan Korneff
          last edited by

          @Dan-Korneff Go to Tools > Export as Full Instrument Expansion. You can use the Rhapsody format and you'll get an lwz file that you can point the Rhapsody expansion installer to.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          Dan KorneffD 1 Reply Last reply Reply Quote 0
          • Dan KorneffD
            Dan Korneff @d.healey
            last edited by

            @d-healey Screenshot 2023-05-31 111234.jpg

            Dan Korneff - Producer / Mixer / Audio Nerd

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @Dan Korneff
              last edited by

              @Dan-Korneff Oh yeah, I didn't use the Rhapsody format, I did it manually. One sec and I'll update the zip file with a placeholder icon.

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey
                last edited by

                Done, I've updated the link in the original post.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                Dan KorneffD 1 Reply Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff @d.healey
                  last edited by

                  @d-healey I'm still getting an icon error if I export Rhapsody format. Selecting NO for the format only seems to export info.hxi

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey
                    last edited by

                    @Dan-Korneff Is the Icon.png image in the images folder?

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    Dan KorneffD 1 Reply Last reply Reply Quote 0
                    • Dan KorneffD
                      Dan Korneff @d.healey
                      last edited by

                      @d-healey nope... I just downloaded the zip file for the 3rd time. Finally has it
                      Checking

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      d.healeyD 1 Reply Last reply Reply Quote 1
                      • d.healeyD
                        d.healey @Dan Korneff
                        last edited by

                        @Dan-Korneff Probably some kind of caching issue.

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        Dan KorneffD 1 Reply Last reply Reply Quote 0
                        • Dan KorneffD
                          Dan Korneff @d.healey
                          last edited by

                          @d-healey I'm getting 2 error in PresetHandler.cpp

                          Screenshot 2023-05-31 113334.jpg

                          Screenshot 2023-05-31 113504.jpg

                          Is this normal?

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey
                            last edited by d.healey

                            That might be because there isn't a Samples folder in appData. What is the value of dir?

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            Dan KorneffD 1 Reply Last reply Reply Quote 0
                            • Dan KorneffD
                              Dan Korneff @d.healey
                              last edited by

                              @d-healey Samples (5)

                              Dan Korneff - Producer / Mixer / Audio Nerd

                              d.healeyD 1 Reply Last reply Reply Quote 1
                              • d.healeyD
                                d.healey @Dan Korneff
                                last edited by

                                @Dan-Korneff Adding a Samples folder to appData should solve that.

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey
                                  last edited by

                                  I'm guessing the problem can be traced from ScriptingApi::Engine::loadAudioFilesIntoPool()

                                  It's like it looks in the binary (Rhapsody) but not in the expansion hxi.

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  Christoph HartC 1 Reply Last reply Reply Quote 1
                                  • Christoph HartC
                                    Christoph Hart @d.healey
                                    last edited by

                                    @d-healey Spot on!

                                    Link Preview Image
                                    - fix full instrument expansion audio files not being loaded with Eng… · christophhart/HISE@01c1780

                                    The open source framework for sample based instruments - - fix full instrument expansion audio files not being loaded with Eng… · christophhart/HISE@01c1780

                                    favicon

                                    GitHub (github.com)

                                    d.healeyD 1 Reply Last reply Reply Quote 1
                                    • d.healeyD
                                      d.healey @Christoph Hart
                                      last edited by

                                      @Christoph-Hart Thank you!

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      1 Reply Last reply Reply Quote 0
                                      • d.healeyD
                                        d.healey
                                        last edited by

                                        @Christoph-Hart I think I've hit another similar problem. This time I'm using the loop player. I save a preset with a file (from the expansion's samples folder) loaded but when I open the preset in the player the file isn't there.

                                        I've been poking around in ExternalFilePool.cpp and think I'm in the right location but do you have any pointers?

                                        Libre Wave - Freedom respecting instruments and effects
                                        My Patreon - HISE tutorials
                                        YouTube Channel - Public HISE tutorials

                                        1 Reply Last reply Reply Quote 0
                                        • d.healeyD
                                          d.healey
                                          last edited by

                                          @Christoph-Hart I've narrowed it right down now.

                                          The problem is here - https://github.com/christophhart/HISE/blob/develop/hi_core/hi_core/ExternalFilePool.cpp#L538

                                          There isn't any handling for the sampleFolderWildcard.

                                          So as a test I added this:

                                          		else if (input.startsWith(sampleFolderWildcard))
                                          		{
                                          			if (auto e = mc->getExpansionHandler().getCurrentExpansion())
                                          			{
                                          				input = input.replace(sampleFolderWildcard, "/media/dave/Projects/projectName/Samples/");
                                          			}
                                          		}
                                          

                                          And it works. However when I try to use the expansion wildcard instead of the absolute path it still doesn't resolve. Can you suggest the last bit of the solution?

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

                                          1 Reply Last reply Reply Quote 0
                                          • d.healeyD
                                            d.healey
                                            last edited by

                                            Aha!

                                            input = input.replace(sampleFolderWildcard, e->getSubDirectory(FileHandlerBase::Samples).getFullPathName() + "/");

                                            Libre Wave - Freedom respecting instruments and effects
                                            My Patreon - HISE tutorials
                                            YouTube Channel - Public HISE tutorials

                                            Dan KorneffD 1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post

                                            51

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.9k

                                            Posts