Expansion Sample Map list
-
@d-healey being honest i don't know how to do this everytime i have unknow function.
inline function oncmbExpansionsControl(component, value) { Engine.setCurrentExpansion(component.getItemText()); expansion[value-1].getSampleMapList(); }; Content.getComponent("cmbExpansions").setControlCallback(oncmbExpansionsControl);
-
What is "expansion"?
-
const expansions = Engine.getExpansionList();
-
See the problem now?
-
@d-healey oh, a typo
-
@d-healey ok now everything work, i put all sample maps to new combobox but samplemap combobox not refreshing when i changing Expansion, i must recompile code to see changes.
HiseSnippet 1537.3oc4X8taaaCDWJNpq1qoqsneneY.BF6CN.sN1I8OasXnNwwovawIFQoEAnqnfQl1lqRjBTTYwqH.6QYOB6QXOA6YouAaGojrnTcRcMV+C17mzc7Nd+t+PdGceNyEGFx3FlkObR.1v7JVNSnhwsGiHTitaaXVxZCislDfBCwCLLMK8D4BlkW1P86MOdKjGh5hyXYX7LFwEuKwmHx31u0OR771AM.eHwWS561pqKi1l4wh3Ri0vH.49JzH7dHoXKYYXdoNCHBF2QfD3PCyk2hMXhyX1uPik+YjPxwdXIQSCGXihYuCyafDwxuMZOl3MnepyFZXXZ0Oy0KE652zpGY.YJ+rPv0TKXmogd7vboKBdM0gWiYBulyBdlZva4X3ccKGWNIPjshDaeoUWp.yGhfTfNrhk0Xo+xxpMCjfJp6idEdGNPLUiZ2uQiaaeuFMV8QqTYkJqsX+r6bz9atmS282StIP1LTXiOM.QCIv21eucG5HBEWeDVzIk8tjPQMoUKHtLqKU44uHAQ1fVxksoxUVoxPFuF1lP0rvpqT40qTwF9cBhaG.ZqrEDmBvbAAGpLjb87lodPT33ZA0kDRINK1hRi45ebJzfO6n6LoQSvBsY9ALJPTqZNoppbLcN0CwfPDA1Or5sKBielQn0p9SzpqFmFHTOHbYOLh5J.grYzb6kD.blWM2Tqeavu8hvwggxIAavfsi3bX4oZlogD7cAvbH9THKDa0xfQbP9Ad3dnfyAugOWYo6z7ExcXpzwIyB9wYpccthVJvF6UsQddGCW.Ta1NcZcpcnx19n.aO1nAD5nYE37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oWRGBSXHgDzd6iBJ8Qtb1KcieKkDqWVwAPIU8mlV1pmj1tY5amrrZTuggOzq5kttxCB2AhvyVm0W.c1XAz4tKfN2aAz49KfNOXAz4auPcjiIrYjf4GeIIvnem3BKyNSKrJY7OLoUg0.
-
-
@d-healey ok everything seems work, i can change sample maps in expansion but now when i changing preset the preset browser is reloading and preets disapearing
HiseSnippet 1699.3oc4XstaSbDEd23rTrgTtH9A+oRqr5ObjBFaStP.UgiSbPoMWrhCHjnH5j0isGX8Lqlc1PRQQp8MgGg9Hze1Gf9fvaP6Yl81rabBFqBE05esy4xb9NWl4bF2gybv99LtgYwCNwCaXdUqtmPECWeHhPM1ZCCyBVKYz5DOjuOtmgoYgGKYXVbVC0u2+nVHWD0AmRxv3oLhCdaxHhHkZml+.w0cSTO7AjQZRuXysbXz0Ytr.tzX0L7PNuFM.uKRJ1LVFlWpcOhfw6JPBrug4rsX8No6P1angx+ThO4PWrbQcitvFERdSlaOIhkTMVeHwsWmXm02vvzpSpqWHz0uk0NjdjD5ogfqqXXmpgd7vblKBd00gWsIGdlZva1P3cCqtNbhmHkiDaWwZKp.y6ifTfNrBk0Xl+zxZcFHAUTcD503M4vhDMprbsZKXuTsZy+v4JMWo6Nc+ra+r8Va2tas2txMAxl9Ba7wdHpOA9196raSGPn3pCvh1wj2l3KpHsZNwkYcoJO+EQHxFzRx1lJ4LWo9LdErMgpYg4mqzamqjM76HD21CzVYKHN4g4BB1WYHI+rlopWf+vJdUkKjRbZnEkFyYzgwPC9rstyDGMAKrNajGiBKpTNiTkUNlNkp9XPHh.Oxu7B4gwqXDZkx+Hs77goAB0EBW18CnNBPHaFMydIA.m4VwI15K.9sa.NLLTLJXCFb8.NGXmnYpFRvuE.lCvGCYgPqVDLRWzHOW7NHur3srxgt.ARyEOWAk6T+ERSjHcX1NmidpxrST3T4Mgt85HW2CgaHpL9nRbgrsux1iPd1trA8HzAiKx5xP8R.Yk4iphBovqWE4G8Y0bBlf9o+LS201oy1ss2YsNcS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bcrOVGZMg.NClR4VM2G6hQ9Zmh+1laCuZ.wyd19iJVTexiEWT951Vgv0Vdul8+MZMV3+8sFunP2WG0XzFrNW7Edd9pVpqxskcd+2Bp6yBjSsG2UyBZ80EZ26f0a.JelSz5Zx0R.0ES6oV7WvuHl0i6VJYVOlogS7VA9Vz2gydW.SksNTS74B8gc0Ko8ggJjPB5n8YAkiPNb1KcBeEqDqWVQAPIU8mVWzZG4Z65wuZ0xpV0ZFifdUuzwQdP3NPDd75zXJz4dSgNKNE5rzTnyxSgNqLE5b+KTG4XBqEHXiBujDHzocXgkY6jBqBF+M6vj5tB
-
Disable
saveInPreset
on the combobox -
This post is deleted! -
@d-healey great, how i can load now sample map from exp to sampler?
Im stucked with this
HiseSnippet 1752.3oc4X80aSbDDeuXNn1k.kp9.uToSV8AiTv3yj+.TUgIAGTZIAq3TDRzpzMmWauv4cOs2dgjhhD8aBeD5Gg9X+3v2f1Y28Ne643XLQk1pV6W7LyN67a9ytyrtifGPhi4BjS48NNhfbtra2iYxgaLDSYnsdHxoj6Zn0ONBGGS5gbbJ8Hk.mxW.o+7t6uNNDyBH4rPnmxoAjGSGQk4b6z56nggah6Q1iNxZ0K2Zq.NaCdHOQnLVCTDN3k3AjcvpksfKx4hs6QkbQWIVRhQNWXcdui6Nj+JlY8OkFSOHjnH7QcgMxvdSdXOEhUbQaLjF1qSlyFiPNtcxc8RFW+Kb2l1iNledH3yzB7x0vNd3rvrfmuM7ZL+vywBdWv.uq41MPPij4RTX6Sc2hIIh9XHEXCKyZQK7BW2M3vJXx5ivujro.HFqQsUazXIuUZz3Fe8hUTegTQrz6PrvqKdTTHQ368Md5Bh5CHxTd0plIrpQuac99309YcdvNc25I6jaZxQQXVLE9MX31rATFQY41YreLMVVSY0IVtpZQoxy+wTD4AZoD6wTRVrRetnFwixrrvMVrxqWrhG7Q4vQf1ZaAw2HhPRIwZCojWzL0iRhGVKpthPshSLVTYrfQGjAM3mssclrr.XgM3ih3LfnV0BqRGNKvodLAV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xdBXNHHTXK3ILBD2k193FBdbbevcz6UrsnNIhApXUNmcIGRDwE4otmYHlwHgpIVbbTMiiIpbMMXarTPOxd0ZqzXOrNeCONWS6OAcyInu8DzKOA8JSPu5DzqkSOtsopxXo4qaXy5GMJ7TCmco4a3LvTcvPvwZkqSGj28VyIuTuQdBQCZq+mho7J+K9u5+Dh+9tLtz7A22y+SR4LL1kpxNsYGBGfANJL94vTi8wIgxLtEuLYaNiGMjynAEOt.k+CFPD1XepNzCjR3zZNmun0tjPBN1579W05wvSvvhh2B7AEK7m+XwrxWW20.WO0Mfd+2nIZo+22DcVgtqj1B0CrtP9u777kc0W56o5Q+OET2kmndBSV+OWnIYWXvf.hcqR0q.SoannU.pKg0SS7GvmTg9Y8UUB8yDhBx1Jv2R+s4gHkHLUqC8rggPG6P6R5XX7CEjfdg+sfxQ3.Ae+.yq6UX8Szb.Txz+A8kc2VQ6M9+Dv0sQ8FnQPup8CBTGDtIDgmtNMOG5b6ygNKeNzYkygNqdNzYsygN2Yl5nFS3AIR9Hykj.iNsMEVNsGWXUB8mflssQg
Sorry for spam!
-
@arminh first make a variable for the sampler.
var sampler = Synth.getChildSynth("your sampler name");After that you can load sample map using sampler.asSampler().loadSampleMap("your sample map" ) ;
If you are using expansion that would be {EXP::expansion_name}samplemap_name.xml
I'm not sure, you can try
-
@fmented yeah but im tryibg to use samplemap list from expansion
-
@arminh no you can't load a list, it has to be a string
If it's in the list you can use its order, like samplemaplist[0] -
@arminh also make sure to use + ". xml"
-
@arminh try this
HiseSnippet 1760.3oc4X0uaSbDD+tXN.aH7kPU8epzIqVIG0fwmIe.TUgIINnzRRrhSQHQQzMmWauj618zd6EbJBI5aBOB8Qn+Yeb3Mnc18ty2dWbbciJTTqiTjmu142Lyt6Lq6vYt3vPF2vr79GGfMLurU2iohgqODQnFasggYIqUMV63.TXHtmgoYoGIEXV9bFpOu+Aqg7PTWbFKCimvHt3GS7IhLtcZ88DOuMQ8v6S70zdoVa4xnqy7XQboyZXDfb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FmWzY4nil554kW15UjdhgiY76+RqgXxfgYC88SrVI0s3hzUshSNqwYuJDyMNXP5beW1ZImUZr5R2a4UtqJxzDz7tqtx8ZtZSGMAMikbOv.GGmkMTaSLemk5pqpxyLcghQ7Fqp22VvivKNVjZzK9oHTdCQ3I3JOAGavIksI5HFGflbN1bB2IRh1HekMMg69xUFrlgCTYo92R0R8Fq1hi5QXOhyhBJbbs3V+odhKa8eWt0e6Bk129hhkVi6eZP3jCtBiOy5E4gD4moV9PhDAv4ubCuJGPENUJNVek+fLn8rB2qa0gHbGNY7N2DvKbo0GZ7l7rk4sZ2uO1UjA1yYs4S+v+FEcn7EwP4FVcEbLxGt6HYp.EdpXkNtv+DujLXleIIbaiZjDxOqo1u0ZsHHewyy8Waob0C8YQzb9JA46gCvHAT90r4hs1aO09+hV89Gn1rrOGlYARE5B1khg7tPOFWmyBC6CgiZsB0E0IhOPlqx3rG9HLOLOO48LCQTJ1SNcgoorwYHVVqItaiDbxHcsUdow9HU8Fddsh1o.cyBz2o.8REnWt.8JEnWMidbaN4NiO6DcujSJdhQltvrMxDrncPPZPSy0HCx5qp3jsotQVpWAOseSgI7h7y+I8OXvGuqcKMav8u32znbJF6RjUm1zifip.GIFuALKWeTjmHka9qM1lQYACYTha9CFvF8ACvbcrOw.5gBAbtLiyMasG1CiB0NY+ksdL7zIDO+48+V4BmYOWLs50maECWa4cc1+2ncYo+22tbZotqjzrzF7NW7Idc9xVpq2skci+2Bp6whjOVIsSmEzNrKLBfKVuon7ESIzMjzR.0ES6oH9C3ShPmzNnRgNoBMbSWJH1R9d7SNJgoxVGpo.8fdyd5aoCgAMjPB558QAk9HWN6Etwu4Vh0Kp3.njp9wzKassj1d7K0srZTuggOzq5EttxCB2BxvS1llmAatyYvlkNC1r7YvlUNC1r5Yvl6NUajiI7vHAyO9RRfQm1warLaOdiUIi+D.hy3OM
-
@fmented thanks! Now it works!
-
@arminh before you do anything, make sure to print the value of thing, so you know it's outputting the correct value
-
@fmented k i checked it now deeper, everything work in interface but it's not workinr like should
I have two expansion Test1 and Test2
I pickup Test 1 and selecting preset test1_1 in sampler i have test2_2
More on gif
-
@arminh I'm on my phone right now, can you post your code?