Connect Sample Maps to Presets In Preset Browser
-
Okay I've seen some threads on the forum about this topic. However still trying to make it work. Objective is to switch sample maps with preset browser. I have a starting point. However I'm stuck on the scripting part. Here is my starter.
Thanks in advance
JasonHiseSnippet 1191.3oc4WssaaaCFlJNrqwMYcsnWraFfPwtHEHqPxwNG1tnNNItHXMIFVYEaW0wHSaSDIRAJJm5UTf9nrGg8HLrmf8nz2fseJIaQ63j4YrzUr4q7+IxO9eVsjBeZbrPhrV4rgQTj0pXugbU+86SXbzQG.7wGP6RRBTnFCiHwwzNHKqROWK1ZkkQo+d+yZPBHbeZAKD5kBlO8ErPlpfaq5eKKHnIoC8LVng1UqejufuuHPj.PoD1AEQ7ufzidBQq1RXj0cNrCSIjdJhhFirVtgnyPu9hK4Y5+RVL67.plvE4AGTF6lhfNZDq4h1uOKnSqQO4XDxB2pvATJyA7H7wrNrw7KbDeVp.6BKL8GVKcSvy0DdNyO7rLf2xYv6AXOeIKRUHQis6gOhqnxtDHDXBqLcQV+FdeAn.W8zPxEzlRfXrAquiiyF10p47juYsxcS39JlfaK3mHTzS4q+jxuo7JkeaY6oE0s6LkouHoHHfJmoXcbWdSFtNOI7bpbC6AjfD5XEAGvjdX706gMS.7yd2FJJ3GwYpSin7qyuixcVv+9tiNfnH5PQNOPuHpTwzPv5.5.HGOKvnqShuPIhR0MLRv0mf08T4YUYghlABhhw6cFCfJChQ2GaxxE85hhBR8giId2OT+RVGU+wL982UuOk0qeQw0ONndNFy.z8gjaZLU0PJtLlJQm2aT80p3pta4rc0cqs0NHlhFZHnxNau0tU1dypFBpjIYWv.WW2ZnTWh0OieyZksser105QFPajnTB9i+ZakLgtwXQoo3xqQnNQJ9Jb0A5LCtprljABI.Mc+hIDdRhFsIgo1r4ZkeKzs4JUOPMrnSR.QMYgstaVt.HWbhJHcYBOloFZ1s6VoZedg6CvsXJ+9yFuKMC7BYu213Mu24Z3C61k5qJ.6x3le+seiRSn7EYP4gXOkjRBgBKORXDzNJEOkw4Tt+SLNKZtGmAkhPYdGO1OYn1uVuQB3ujSx8WpmdU6EJR3SbW4HuMMhRTP32vl6Vuc6mKEIQSa06eVZxxYRXbJ3JLEbJmB9ck4abeoHNtK7bROqXSQsRj8z9pBNsoCnx3I4oKB6S3bZftCskktCZLUGqY9GSTR1qM0N8VbNijFugY7oztSQWYJ5Mmht5Tz0lhdqon2tfNygdLIRmYbG7ELUkqLl4SluwLvgzh.OaCMav5M9Bx3TjD6T3pSgiwhLyXMf67Q8VJe3ZyVZ9f6ewhTqLBidLcz4P9.nzD3nw3CGsr6HtS1l3XAWD0WvY9SVH.I185QklXelOn8TJnNrfyip2lFPIwFUxeY8Wv3Thbx56+V9B242WbSwqOGmAWacuM6+aLdrz+6GOdSttOMe3nMb6R0G4w4Uwosys0Se+2BpsEI5M2GMYCCi+7fQ99TygfKoGrlQ6no0.xix6jR7GvubgtilXpE5NRHxezQAus7+ms+cIJWO5Hcqu.XVbfYJcLrXgFRvTtOHnLj3KEuxO6S3zX8tob.TxS+B9UvGqoscQoeVGXG14oNnPXV0q780EBeE3gmsMUV.a1bAro5BXSsEvlsV.a1dArYmazF8ZB6knDgYMIAFsNLKwx5vwIVkP+Iftqhb.
-
@jssrecording check out @d-healey Patreon page. He has a video that covers this
-
@dustbro Thanks! I watched it and now it makes sense.
Cheers
Jason -
@dustbro
Followed video with 1 error.
Here is my code.
Content.makeFrontInterface(800, 550); //Sampler const var Sampler1 = Synth.getSampler("Sampler1"); //Sample Maps Array const var sampleMaps = Sampler.getSampleMapList(); //Combo Box const var cmbSampleMap = Content.getComponent("cmbSampleMap"); cmbSampleMap.set("items", sampleMaps.join("\n")); inline function oncmbSampleMapControl(component, value) { //Console.print(value); Sampler1.asSampler().loadSampleMap(sampleMaps[value-1]); }; Content.getComponent("cmbSampleMap").setControlCallback(oncmbSampleMapControl);
It's saying Line 17, column 36: Unknown function 'loadSampleMap' {SW50ZXJmYWNlfHw0Mzd8MTd8MzY=}
HiseSnippet 1463.3oc4XssaSbDFd13L.wkv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wuAWc8RpAuor8ICDR.Z5EPiI7QIZzlDZrYUnmSWML5Z3xydQPwMvu+J6afsaDR.YXm4.JE8LkNE2Vjv6T3M8HJ838SYJuxvesBrC8M1I.alDcRBHpwWWo2QmI.5qFaufd1OOloFZWa9NYG1rB2ahawT98mNdmaJ3EZgdWi2rWDrHdutco9pBvNOd+u5c+5ean7IoP4V31JIkDBc2YaLL3oLNeUx+DORKZlejFLOvrth8iVp8KMZl.4K43b+4FliZ6Pn9dryJC4GQinDEb8aYyUZbzQOPJRhlzpWeeSwxwRXaFjJrE7XNEx6J6XbGoHNtKDNFeEaKpUhrmNWUv4H5.pLdbd5IA8IbNMPuswwAX8jXp9tl4eHQIYmYqs4TpeLwbeCub0P6MA8JSPu5DzqMA85SPuwDzaVPOZvitx3RXyPiIWYd4YakI3jVDHrszrIqWwjMCmhh35EoZCbrdd9Tdb6k9f9s2u+FyVZ1f6ewmGrPNFayz2N6wG.sl.GMFuU9mvkyc7wDGJ3hn9BNye7FAnvtWOpzF6SMf1Vof9vBN2twQz.JI1pS9Sa7P3UzD4382+sxEdydt37tu9XbJbc0y1b+uw5wR+ue834k5tV1xQW3zkpOvumuJ1LN2Uu88eKndjHQ+4C4a1vv5O3UoRep8RP8aVynqqo0.pMk2wP7GvuLgd4aL0B8xEh7ycEDaY+6zOBnDkqWcXd0W.rKNvtjNFdXgFRvVt2KnLj3KEOyO8C+zX8JFN.J4l+eoV.enl10K+C8v350piBgcUOy2W2HbGHCOcaV4BXypW.aV6BXy5W.a13BXylW.a15bsQ+LgsSThvzgj.iV6kVX4r2nBqRn+DfQHnJG
-
@jssrecording You used
getSampler()
rather thangetChildSynth()
so you don't need to useasSampler()
-
@d-healey Ha ha I just figured it out right as you posted this Dave. Thanks!!
-
@d-healey Great video was truly helpful!
-
@jssrecording said in Connect Sample Maps to Presets In Preset Browser:
I just figured it out right as you posted this
This happens to me about 2 times each day... I write a post detailing a question... and then end up figuring it out