Expansion Sample Map list
-
You need to call that function on a specific expansion object, not the Expansion class.
-
Can you show me some example?
-
@arminh I posted a video on Pateron, you're already a member aren't you?
-
@arminh first you need to get the list of the expansions,
Then select one of the expansions
Example:
var Exp = Engine.getExpansionList() ;
var Exp0Samplemap = Exp[0].getSampleMapList() ; -
@d-healey yes I am. I'm trying to figure out how to use expansion in case where I have more than one sample map per exp. Maybe you have some tips?
-
@fmented summed it up nicely.
It's the same technique used to get the properties of the expansion and also to load the JSON file.
If you go37:23
in the video I mention it also. -
@d-healey oh ya btw, is there a way to check if samplemap cantains multimic so I can use it to change the interface dynamicly?
-
After loading the samplemap call
Sampler.getNumMicPositions();
-
@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+r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xo5RqrRiCQp7M7ZJEcyBzqWfdiBz2s.88JPe+BzOHid5kYxJC4q4Jz+5Klu9WvFzGAtrljaQFkcSohS9qXzDcZLWgKs2NNiWdcoOqeX3Gu6aKMev8c710xoXzgHSUcnm.mQANRLdCn47PTjmHka96K5wnrfwLJwM+IBnBezHLWG6yzg1THfCjYbtYqCvdXTn1Q5uo0tvfpHd9C5uWwhlyer3hxW2xJFt1xK4r+uQexR+uuO4EE5tZRWRav5bwm444qXotW2V1F9SETOfEIf1qos3rf9fNPueWrd2P4v1IzMjzR.4foCTD+M7KYwlosNkK1LcQC2zsB7sjuUO0vrDlJacnF+yCZJ6oWRGBSXHgDzd6iBJ8Qtb1KcieKkDqWVwAPIU8mlV1pmj1tY5amrrZTuggOzq5kttxCB2AhvyVm0W.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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7MgP4lVcEbLZDbvJpapBOkrh6s9Owq37l3WwAGEU8xI+rlX+dyVAP7hmk5u0TYp0FwBnYrUDx2G6gQBH8qoykat+9OlyB7xq06ejpX4.NzWGBE5L1ihg3tP2GWmy786CtiZu70Y0IfOPFqRorO9HL2OKM4gvgHJE6J6BaZBjdhOVlqIN6fDbxw5RqrRsCPp7M7zV0554V2H256ka8h4VuTt0Kma8JoqS5oHqLjOsN2XDe0jMFArAcPfKqIYKxfzFVJJ5EvIgYETzd69Xd46k9h9g4e9thsvjA2Ov+cPwXL1kHyNsoGAGKAJRLdSXrn9n.WQL0rWQrCix7FxnDmrGBfh5ACvbcrOVGZMg.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+JlY8OkFSOHjnH7QcgMxvdSdXOEh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d2lq0z2RPSij6BJ366uBRW547VW8z.UUmC6BIWSwZ064IEIjkFKRO3l3LDpt0I9TbU2JXT3zx1DeHW.PSMEbAg6jnPaxHsNMgFeERCtywgz7P+aXVgdzZsD3dT9iD7jH6I4Qm93zLOEmu+usv9u8Do12r+joVz8NKHb5wdggu48RBwxhSjqdFRp.3LcgQeUi2BmzkGauyeTFSedg60b6PkACmNdWXJ3EtH7iMdSezyhts62mDHyA6Eb27Ye7egiMT9RCT9b2tRAAOBt6HcbCMdp3lM7weEuCMZteGJbaidXG5Oasreq05IP7RTj6u1RapGLhmvJXqTjuKIhfkP52RmOo0t6pq+mTq2cecwxdBXNHHTXK3ILBD2k193FBdbbevcz6UrsnNIhApXUNmcIGRDwE4otmYHlwHgpIVbbTMiiIpbMMXarTPOxd0ZqzXOrNeCONWS6OAcyInu8DzKOA8JSPu5DzqkSOtsopxXo4qaXy5GMJ7TCmco4a3LvTcvPvwZkqSGj28VyIuTuQdBQCZq+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