Loading Wavetables from Expansions
-
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?
-
@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.
-
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.
-
@bendurso thank you for this.