Samplemaps for future usage
-
@coreyu21 I'll be trying this out soon. Which DAWs have you tested?
-
@d-healey we use acid pro right now but any should work I think. When I reload the project the expansion combo box is reset which doesn’t let the preset browser load the saved sample because it reads no expansion in the combo box. I believe when we talked about this in the past you said it was a circular loop error in the c++ or something like of that sort
-
@coreyu21 So the instrument doesn't have any sample maps loaded when you reopen the project?
-
@d-healey actually I cant even get that far because when I load the expansion in the combo box, with save in preset on, and click a sample in preset browser it automatically resets. The combo box. With save in preset off, the user cannot load the previously saved sample selected because save in preset is off. There’s gotta be an error somewhere.
-
Yeah you'll need saveInPreset to be disabled for the expansions. Then when the user reloads the project is should load up with the last saved preset (but it won't be selected in the preset browser, although I think Christoph has fixed that recently).
-
Ok, i can read samples from main samples folder but again have problem with reading expansion userpresets in plugin. In hise everything works fine. I compiled hise with both flags. Any idea?
-
Have you put the expansion into the AppData folder?
-
@d-healey yes
-
@arminh Then I don't know the answer, it works for me.
-
@d-healey interesting. I’ll have a look when I get home. Is this possible fix on the most current build? I believe I’m using a late January build
-
I think expansion system is still bugged.
Now i see presets created in expansion packs but i have much crazier issue. I have 2 samples and everything is ok but when i change them few times samples starting sounds strange. Maybe something is wrong with code?Content.makeFrontInterface(600, 500); const var expansions = Engine.getExpansionList(); const var expansionNames = []; var sampleMaps; const var Sampler = Synth.getSampler("Sampler"); for (e in expansions){ var p = e.getProperties(); expansionNames.push(p.Name); } //cmbExpansions const var cmbExpansions = Content.getComponent("cmbExpansions"); cmbExpansions.set("items", expansionNames.join("\n")); inline function oncmbExpansionsControl(component, value) { Engine.setCurrentExpansion(component.getItemText()); sampleMaps = expansions[value-1].getSampleMapList(); cmbSampleMap.set("items", ""); cmbSampleMap.set("items", sampleMaps.join("\n")); }; Content.getComponent("cmbExpansions").setControlCallback(oncmbExpansionsControl); //cmbSampleMap const var cmbSampleMap = Content.getComponent("cmbSampleMap"); inline function oncmbSampleMapControl(component, value) { Sampler.loadSampleMap(sampleMaps[value-1] + ".xml"); //Console.print(); }; Content.getComponent("cmbSampleMap").setControlCallback(oncmbSampleMapControl);
-
Tommorow i'll record video because it's really strange
-
Here's video https://streamable.com/dbejyy
Now i have problems with samples. When i load first sample map everything sounds good but when i change it to next in the same category samples starting to sound strange. They are pitched down and there's only 4 samples. I have to change the extension and then I can go back and choose a different sound and then it will play normally (but not always, sometimes i must do this few times).
-
@d-healey you could check if my code is written correctly? Because i dont have any other idea what's wrong...
-
I can't see anything wrong with your code. Are you samples monoliths or wavs? Where are the sample maps located, and where are the samples located?
-
@d-healey i creating monoliths like you said in empty project and then copies them to expansion folder.
Samplemaps => Expansions => Expansion Names => Samplemaps
Samples => Expansions => Expansion Names => Samples -
@arminh Still a mystery then :(
-
@arminh instead of manually moving the sample monoliths into the expansion folder. Have them created in the expansion folder so the link is correct. I believe if you move the samples from main folder to expansion folder, it gets buggy. Make sure to refresh your expansion afterwards
-
@coreyu21 that's how my samples looks when i creating samplemaps and monoliths in expansions tab
-
Ok, i put my wavs to samples folder in expansion and i can create ch1 but when i open expansion in hise and locate folder with all samples i get information that ch1 files are not found. I must keep them in expansions folder. Is there option to store expansion samples wherever i want?