Sample map not being saved with preset
I'm using FloatingTile with ContentType PresetBrowser for storing my presets.
All values from knobs etc. are being stored correctly.
The only value, that is not being stored correctly, is the SampleMap.
I have tried to save my preset with the SampleMap, but this only saves the values of all knobs in the project and not the SampleMap itself (neither the name nor the .wav behind it).
Do I have to link Map Editor with my code in any way ? My understanding is, that the sample map (value and sound) should be stored automatically with it.
I've also have problem with presets and nobody can't help us with this ...
I'll make a video, hold tight
@d-healey thanks ! You’te my only hope!
Here you go. The video is still processing on YouTube so you might have to wait a while for the high q version to appear.
Thank you so much!
thank you! I wouldn't have thought, that such a hack is necessary for it to work
d.healey last edited by d.healey
@chlopzewsi It's not a hack. The preset system is designed to do a specific job which doesn't include handling sample maps.
On a large project, like the woodwind library I show, it would be horrible if the preset system controlled the sample maps. Because every time I add a preset I would have to go into every sampler and change the sample map manually. Doing it programmatically is much more flexible. On a small project with only one sampler it might seem like a lot of extra work but it can be setup in 5 minutes and once you've written the code you don't need to write it again, just copy and paste.
@d-healey Thanks for the video - helped out massively
@d-healey Tried to edit the appearance of the preset (inspired by your sofia woodwinds) but it keeps defaulting back to it's original settings, even after saving and compiling.
So when I change the "ShowSaveButton" to False for example, it just defaults back to the value of True.
Any idea what I'm doing wrong?
Christoph Hart last edited by
Press F5 or Apply after editing.
Cheers @Christoph-Hart! Worked a treat
Final question for me is...
How do we show/hide the preset box with a button as demonstrated in this video around 12:56 ?
I just like how the section in the top right hand corner of this instrument (sofia woodwinds) displays the current selected preset and can also be used to hide & show the preset browser.
The HISE platform and community is first class btw
@LeeC HISE Script. Use the
@d-healey Worked.. thanks!