HISE Logo Forum
    • Categories
    • Register
    • Login

    Loading Wavetables from Expansions

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 282 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.
    • S
      Soundavid
      last edited by

      Hi everyone, im trying to load different sets of wavetables from expansions, im currently using the Engine.getWavetableList() to populate a Combobox, in the function name it says that will load the wavetable list from the expansion or the Factory content, but when I load an expansion the wavetables aren't updating either in the Combo Box list or in the Wavetable Module, I tried with the hwt files in the Audio Files Folder and he Monolith File in the Samples Folder, is there a way to update the module with the expansion wavetables?

      bendursoB 1 Reply Last reply Reply Quote 0
      • bendursoB
        bendurso @Soundavid
        last edited by bendurso

        @Soundavid said in Loading Wavetables from Expansions:

        Bump. Is there some way to load wavetables from expansions?

        I can retrieve all the .hwt files from the AudioFiles folder of the expansion using Expansion.getAudioFileList(). However, the only way to load a wavetable currently is through the LoadedBankIndex parameter, which searches the hwt files from the main AudioFiles folder. There should be a way to set a wavetable directly from a file path.

        Or... the wavetable processor should switch to the "AudioFiles" folder of the current expansion when the expansion changes.

        1 Reply Last reply Reply Quote 0
        • bendursoB
          bendurso
          last edited by bendurso

          Oh, I found out that wavetables in expansions only work with .hwm files (exported as monoliths).

          Then I noticed a "bug": the exported file is placed in the "Samples" folder of the expansion, but HISE is looking for it inside the "SampleMaps" folder.

          I found the relevant line in the source code: https://github.com/christophhart/HISE/blob/05990b8790f611a8986ba01d4ce81a29f172bbcc/hi_core/hi_modules/synthesisers/synths/WavetableSynth.cpp#L131

          I believe this should be changed to use the "Samples" folder instead.

          CyberGenC 1 Reply Last reply Reply Quote 1
          • CyberGenC
            CyberGen @bendurso
            last edited by

            @bendurso thank you for this.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            11

            Online

            1.7k

            Users

            11.8k

            Topics

            102.3k

            Posts