samplemap recall w/user presets. what is the standard practice? not working ever lol
-
Maybe if you upload a simple project that shows this behavior we could take a look but hitting compile 250 times and hoping it will go away on the 251th is not the strongest debugging technique ;)
My guess is that you didn't export the samplemaps correctly as the script is actually correct.
-
i have tried copying a few samples into the project folder, dragging in and mapping, saving samlemap and converting to monolith and not. ive tried keeping the files external and setting the LinkWindows, ive tried copying samples folder into app data and any combination of variables between those options.
the real question is why wouldnt someone actually assist me instead of commenting or seeing this same topic in the forum brought up 20+ times, seems kind of mean :/
i have made plugins in about 5 different platforms all of which had sample recall without any extra attention, its a very rudimentary aspect of what is clearly a sample based plugin creation platform. there is no documentation anywhere about the simplest thing that should exist in a sample based plugin creation platform.
i am trying to use hise to create something, i am in the forum everyday 14+ hours i have posted multiple topics asking the same questions essentially. there is clearly a solution here that alot of people have figured out but that doesnt seem like a very good sense of community sitting and watching someone struggle and never helping :(
-
and how could i not save the samplemaps correctly lol. you click save samplemaps...it saves them...it says samplemaps saved :/ ill upload a simple project that has the code exactly how the only help ive had here tells me how to do it
-
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