How should I save my Sampler Presets and how can I access them later?
-
Is there a way for only a dropdown menu without these bank and category?
Yes but then you'll have to do some scripting. You can disable the bank and category columns in the preset browser.
@treynterrio said in How should I save my Sampler Presets and how can I access them later?:
when I save my preset as a sample map
Presets and sample maps are totally separate things. All a preset saves is the state of the controls on the interface that have the saveInPreset property enabled.
@treynterrio said in How should I save my Sampler Presets and how can I access them later?:
how the people will get the presets?
The presets are embedded in the plugin and extracted to the app data folder the first time the plugin is launched. If you want to send additional presets in the future you and your users can use the import/export options in the preset browser's more menu.
@treynterrio said in How should I save my Sampler Presets and how can I access them later?:
because the sample folder is empty
All samples for your project need to go in the project's Samples folder.
-
@d-healey ok so the first step would be then to create the preset browser first?
-
@treynterrio Yea
-
@d-healey when I use only a combobox for to choose between the sample maps would this work as well?
-
@treynterrio Yes, but you have to script the functionality you want, it's not built in. Also you won't have the ability to import/export additional presets because that's only available in the stock preset browser.
-
@d-healey is this not a good starting point?
HiseSnippet 1311.3oc4Xs0aaaCElxNJs1qoqsnOrWFffwdvAH0vJWZFvvPcrSRQvxEC6zhAzMTPKSayEIRAJpj3UzW2um8SX+j566gsCojrnc8Bb8R6F1bdwmaje7Pd9NGm1BtGIJhKPVkNebHAYcO6tiYxQsFgoLzQ6C5s2mL.G6KQMGGhihH8QVVEetxrUoUP5Ou6YMw9XlGIWEB8RN0ibLMfJy01tw2Q88OD2mbNMvv6sabjGm0h6yiAnTztNJD6cAdH4TrxsB1HqUOnOUxEckXIIBYY2j2eb2Q7qXI9+RZDsmOQI3h5BKTh5C498UHVo8rKIhKojqx0UGgZMh52ucVZHBAqb67jRwjjxisOg1mNQedx4AZCN4QXlirJLMjKNEjcMgbcCHOGHYY.oURfzCs65IngxbKJ77Y1GwjDw.LbUXBkDeQE9kB1s3fGLYs.7EjCEfvjHptyN02vYqcqu92rV40JCWHQRmKwBmt3fPehv04aczONpMjH0fTKUsRl8JyFXj1vI3vHUnIdoBtal9ioQxpyFkWPuIN.wkAX0lxCB4LPnZESmz6q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0dI+bFEVuqVCfRl9eXRI6STxNtY+7Ea650piBfdUu1ySUH7DWDZ9wr4RDyVKQLauDwryRDySWhX1cIh4quwXTiIrWrjGjPRBJZePxCKqCl7vpH5OQmGfyg
-
@treynterrio Looks good to me
-
@d-healey when I paste this snippet into my code I always get a error with this Line:
Sampler1.asSampler().loadSampleMap(sampleMaps[value-1]);
but I don't understand why I thinks asSampler is the problem
-
@treynterrio What's the error?
-
@d-healey function not found
-
@treynterrio I don't see an error when I load the snippet you posted.
-
@d-healey yeah but when I paste this to my code I'm already working on I get this error
-
@treynterrio You need to post the code you are using
-
@d-healey ```
code_textHiseSnippet 1928.3oc2Y0saabiElikmzHkzflhhh8hdw.gs.x.I1Rx1IsHXgU7eMFw+nZ4FzhtEcomgRlMyPNcFJaqTDfdwt.6iy9Hz2gd6dw12fbeun8b3LZFNxisU0lltX0Md3g7P9c9g77Q5tQRWVbrLhXU8nQgLh0ss6MRnNYiSnbAYmMIVuk89rybVgr9nPZbLyiXYU4SvNspNOQ+6UqsN0mJbY4hHjmI4trc4AbUtztcdJ22eapG6HdfwnWoyNtRwFRe4P.HUraRBotOmNfsOEG1b1DqarkGWIi5onJVLwxdco2ndmHOSjL9mwi4G6yvFsH8fIJQ71ReODwnzCNkEcJmcVtrlDxFmv885N1IDSfYtatKoRhK48r2i6wyjm6ZdGcGN4ZX5irlqHjqT.xsLgbSCHWBjrLfz7IP5t18bi3gp7dP7bK6cDJVTeJDJLgRxXIy8Ors2PBiPnVLf9b11QPiLMZr5pMumyxOr4BOpVMHbDqbNkF4rIymNpkyewQmVr3.lZq98YtpF0S5oNNbtvmKXN8GJbUbovQJdpPdbKbwhj9MbkAgRArr2ClR+grEpU66pUMQ+EiYpGqTQ7iGpXMRksMi4cLjBrKqelNOZpz3P9fSLT4k.3Fax.z2XLPZTWCv5KfSVJL2f56iSQihnGsuKw.aOyFn9O3lfo2ByT42jI19pLw1llXdHuGMHzmEUHnmJqQ8wcdUw8Uub+x2UqVUeoK02Qd72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QU6oOXdbm2rygG9IQxggSp0qVSuu8nHHoAbElcbffAwyBYQaDIii6ClidthM6p6vnAnuJWxgL3B3wEkAwVynJFn9rXjOuh6NNAHez5Uo4QTcdzb1IsaMQ61Szd4IZuxDsWch1OXh1OLu8jOBwMmtbbnNQWJXhFibc9f7ZHZIW2KUj4p0vw3kOJ4Pma760SX7FsDxe.U7t1ivqNFu83XzaKwov1TPBh22MUnyXoEOxXOoPFdhTvcKto.RxGLfEYZGkZbOVoP9dYRduNGx7YzXic0+4N6BWdiFUbu9E8Ky7Yyk8RTkF69S1IvUSjz4+OXsTYpXs7ZGuuAYv7eiq6NoEJczOFy+iGmuss9ncGrR7eTP8MAMG2wSEXaoequDrUElP+DZHYbentruYJ83qjBU7HW7svfI+Ho.tdZw8A8dNObWv+HbGkbZmm9+kP96yg05+zgvG.IfBDEhX.klHl2VhAvoWIKaxaDEfEGsxIYPCBn3M3ZsHX+VIiApBenDYkLu8CZBzZeJaD9c6GPdBO86OFk+LzFwvxS35OgYo8CIorfRKAy8S+GNz1dIfFRT7Rm7B1RoOFvRIOv0RvcDchAdPwKQWd06+QM8VewynmR1bXnO2Eb.n0+FI3pud9W6lbYbLDeSsDvVDZinps915NYuliscSvwE.k6+ZWWzwb+VDR45zdFzY4YPmUlAcVcFz4AyfNObFz4itRcPlVOdnRFjTaADzcqj8iVakserB4WAjB4SdD
-
@treynterrio Variables are case sensitive, you need to always spell them exactly the same way.
-
@d-healey can you give me an example for this case?
-
@treynterrio If you have a variable called sampler1 then trying to use Sampler1 somewhere else won't work because you don't have a variable called Sampler1.
-
@d-healey that means I've to paste the inline function of the combobox to the inline function of the Sampler1 that I'm already using?
-
@treynterrio I don't know what you mean.
-
@d-healey Since I have already used sample1 it doesn't work properly? So do I have to add the part to my existing Sampler1 function?