Sample map not being saved with preset
-
Thank you so much!
-
thank you! I wouldn't have thought, that such a hack is necessary for it to work :D
-
@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.
{
"ShowSaveButton": true,
"ShowFolderButton": true,
"ShowNotes": true,
"ShowEditButtons": true,
"ShowFavoriteIcon": true,
"NumColumns": 3
}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?
Thanks
-
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'd imagine it's some sort of Javascript but I'm still a newbie so I'm unsure.
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.
Any thoughts?
The HISE platform and community is first class btw
-
@LeeC HISE Script. Use the
showControl()
function. -
@d-healey Worked.. thanks!