samplemap recall w/user presets. what is the standard practice? not working ever lol
-
Hey mwplugs,
i just checked your code, and found, that you perhaps accidently misnamed this line:
const var cmbSampleMap = Content.addComboBox("CmbSampleMap", -110,-110); //add a dummy combobox
The variable declaration should always match the StringName of the Content Component. Lowercase c is it.
//onInit Callback Content.makeFrontInterface(600, 500); const var mainSampler = Synth.getSampler("Sampler"); const var cmbSampleMap = Content.addComboBox("cmbSampleMap", 0,0); const var samplemaps = Sampler.getSampleMapList(); cmbSampleMap.set("items", samplemaps.join("\n"));
The Combobox should now give you all the Samplemaps that are saved in the SampleMaps folder. Try it out.
Best,
d -
here is a zip of an example of where im at
http://www.mediafire.com/file/p96u8ouvxx1iri2/Test_Sampler.zip -
thanks @Dominik-Mayer i replaced the code but it still doesnt change the samplemap when i change user presets. i even tried selecting the corresponding samplemap and saving the user preset. in fact when i compile it doesnt even recall any samplemap it makes no noise
-
and fyi it showed the samplemaps before actually. it even shows on the combobox that they change, but the audio never reflects it its the same sample sitting there
-
You've got a typo in your case statement (uppercase instead of lower case)
-
ha!!! figured it out. it was actually a mix of two things. first the Cmb case was wrong, and it was referring to the wrong name for sampler. i got it to properly recall samples and samplemaps now thanks guys!!! wow that was a stressful 15 days lmao
-
Console.print()
is your friend here... -
so is there a way to have the currently loaded samplemap be selected in the combobox? basically so i can hide it and not have to select the corresponding samplemap before saving the user preset everytime. as of now the only way i can get it so recall correctly is by selecting the samplemap in the dropdown before saving. thanks in advance
-
No, but you might be able to just edit the
.preset
files (they are plain XML files after all) and change the value of the combobox in the text editor.Depending on the workflow, this might be more faster - check out the latest video tutorial from David for this:
-
@mwplugs how did you manage to solve it? I can't figure it out