Select Wavetables with Combo Box?
-
@Soundavid I just got it to work but i have to individually list the names of the wavetables in the parameters of the box list. Then it will switch when i change the combobox.
Wondering if there is code to automatically get the names of the wavetables and assign them to the combo box?
I use Wav files into WaveEdit.
I can make a post about my exact process if people find that helpful.
-
Update:
Set the combobox to ProccesorID = wavetable then the Paramater to LoadedBankIndex.
THEN
Create a list numerically. The numbers you put in the box will match the numeric order of the wavetables you've added... EX:
"
1
2
3
4
5
"Those numbers will cycle through the 1st, 2nd, 3rd wavetables and so on Regardless of the wavetable names
-
@FatMitchell There is a tutorial for it but it never worked for me, if you make a post will be really helpful.
-
@Soundavid word I absolutely will the process is so fun tbh.
What would be the appropriate thread to post such a thing?
I could do a video I guess! Or a post whichever would be better for the forums purpose
Also: ^^^ cycles through the waveforms alphabetically it seems automatically. Something to note
-
@FatMitchell Maybe In the Scripting Forum or Presets/Snippets Category? But if you want to make a Video with the whole process will be awesome.
-
@Soundavid okay I will. I’ll tag you
-
@FatMitchell How can I link Combobox With Wavetables? I am trying but weird sound stopping.
-
@DabDab Bump Bump...
-
@DabDab
What functionality exactly would you like to achieve? -
@VorosMusic I want ComboBox will change Wavetables. I have tried from ProcessorId > WaveTable Synthesizer & parameter Id > bank index... but my problem is Sound is not changing. is there a way to do it via scripting like sampler?
-
inline function onWavetableSelectors(component, value) { pos = theWavetableSelectors.indexOf(component); TheWavetables[pos].setAttribute(TheWavetables[pos].LoadedBankIndex,value); }
-
@Lindon Okay...Thank you i will try it. (y)
-
@Lindon Sorry, but didn't understand.. can you please correct it?
HiseSnippet 1024.3oc6W0saiSDEdbZlUjrrncQ6E6kVq3hVwRUx9GTgPjMooKQzzFUGJ6cqlZeRxPsmwLdbaiPHwqDuI7nva.blwNI1znPZ.J6Equvxm+l4aNm47iGnj9PRhTQbpMbZLPb9Pp2TgdRmILtfzaehyGQ6yRzfxMiU6owrjDHf33r0qMLbpUkXe98utMKjI7gErHjSkbe3PdDWuf6fVeKOL7.V.LjGUP6m2pmuTzQFJSQ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VoMlFmuJUKixJafLFz0NVpiSWgIwvlJP9SZ+yrxA
-
In your cmb callback
inline function onWaveTableCmbControl(component, value) { WavetableSynthesiser1.setAttribute(WavetableSynthesiser1.LoadedBankIndex, value); }; Content.getComponent("WaveTableCmb").setControlCallback(onWaveTableCmbControl);
-
@ulrik Thank you so much.. it is working (y)
-
-
@Adam_G said in Select Wavetables with Combo Box?:
@ulrik @Lindon @DabDab hey guys, is there a way to populate the combobox with the LoadedBankIndex like we do with getSampleMapList? Im trying to create this array but getting function not found:
wtMaps = WavetableSynthesiser1.LoadedBankIndex();
The code you're referring to is the WavetableSynths attribute, "index number of the loadedBank", not the the name of the loaded bank
To get the list of names use this
YourComboBox.set("items", Engine.getWavetableList().join("\n"));
-
@ulrik ahhhhh thank you Ulrik. you sir are the man :beaming_face_with_smiling_eyes: