How should I save my Sampler Presets and how can I access them later?
-
@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+x2UqVUeoK02Qd72fKP5zgqAZbwpHlx8jCBw4KtA5SRFdfziECJ7k02jGSgMNd0umSc8oLvNrHE1BmfmQi3TQRSFr5fE3Bi8qfIBVwE2ClFXVzy1WpwDzSspYvHtT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aMQ61Szd4IZuxDsWch1OXh1OLu8jOBwMmtbbnNQWJXhFibc9f7ZHZIW2KUj4p0vw3kOJ4Pma760SX7FsDxe.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?
-
@treynterrio I think you are misunderstanding.
You have a variable called
sampler1
.You are trying to reference it with
Sampler1.asSampler()
. That won't work because you have spelt it differently. You need to spell it the same way,sampler1.asSampler()
. Or you need to change the name of your variable toSampler1
. -
@d-healey Ok this line was the problem ```
code_textconst var Sampler1 = Synth.getChildSynth("Sampler1");
-
This post is deleted!