How to change samplemaps in multiple samplers at the same time?
-
How to change samplemaps in multiple samplers at the same time and use combox to select presets
I have 3 samplers, each with a different samplemap. How can I use the combox to switch prefabs so that the 3 samplers can change their respective samplemaps at the same time?
I will be very grateful
chd_1m_stic_f_RR1_Mic_L_C4.wavHiseSnippet 1193.3oc6Z0raaaDDdokWGK0zfjfbn8PA3gdvAHHP+33DfdHzR1NvnQ1BhNA8VvZxURKL4tDKW5X0h9N0GA+Hk2f1YIoDIkYrUTyesg5fglY1Y2uclcl4CPdfT3PCCERjQ8SlFPQF2FaOkqlzaBgwQGtGx3N39jPEUZlnp6z.RXH0EYXT6EZEF0WGE+4cOuKwivcnYpPnWKXNzWx7YpLsCr9Ulm2ADW5IL+bqdaqCcD7dBOQDfmZ3ln.hyYjwziH5ksFFYrw9tLkPZqHJZHxX8tB2o1SDukmr9WyBYm5Q0BsP1vFkn9.gmqFw5ui5Mg44NX18NDgLt0frnPsjnvCv8Ytr45yhF2M1fYlG4iGFqUDd0J.uVuO3UBjLxAo0Sfz8v1NRVfJyhFOeG9PNjbFQfvddnjrVjwk3dBXAb0i8ImQOPBBycXqcZ17Qlved3uLJh6nXBtofejPQOlu0Ca7GMp23OaXtnoQiJ0l9XjBOOprTy5Ls75bbKdj+oT4iLOm3EQmuP35WLltwxEScRt04VnfeHmoNNflJm8nnUIY.TZXSmKRQHrTUbl3toYhdB+SEcEWfXt5DwLwVn3qPtp.KzqNbOhhLayf8ENq.pTwzWIi8nmCUIIo4538ngmoDAwq0OPv0nvXyk7nuX9wd4oVSmKXEX4S.aXi0.o2xbUSzB2w.glPYimnzRsASLE0GfzOha83PhefGsU6NMZm9cxoNP06UdYB0DB2HOhpXght6PpAHSW30o9IHOjollu6whUOq+9yzMKs3tz73RB26gGvTNSJGuqUBdgb4mZ7l1K56w6OZD0QkA10wG7aWaimO5P4mRfx8w1JIk3y3isieQjzDpANUp0GiwCAK83gARpmf3Zy98bK6RqtQP7RVT6eYEeT65Kh3ENqTjOjFPIJH8mymMsFN7ERQTvhd8tmG+X4DILdBBE4MbLmBwcU96XOoHLbDbch2qv7lFDIGqiUYZFROmJCKp6nHeH2y4TuPcYJTyhdUHUmqYN8IJI6h7qN9TZdBINeCyLikasfb6Ej6rf71KH+jEj2YA4mlImDP6SBzuLpiS6hbk93atb8wg8Y.At44VYW134mQhlhcZxsz4g9X3kinvMvHXiOULB9r1S6eeK3ZKGbuABL0mgQalNssO+bnrEznw38gwciHQdpYZK1BoufKBlH3LmhEIvi9wiox7XuzKztJETilo4AVCovbrvbU4+r0KYbJQVr1+CJV7gSlqz70OfSfqotum4+OFcV6a9QmWWn6NoCNMgSWp9JOOeabbqdS8j4uTPcnHRASbmM0CCiFsA5.Nz7CH0TbSkapk0.xlxciE9a3SpwVyllpM1ZlQjyrsBtaoeOl7tQMJWOFIlQnGLm1K+S5PfzgFRvDvUf3T6JhSUDmJi3T6JhSUDmVJhSsqHNUQbph3TEwouoHN0oh3TEwoxHN04JDmt0WThSUjk9ZhrTmJxRUjkpHKUQV5+vjk9bfRehiT7Fmje.bMV2LVCfRd7+SF0w80xlW827F4CyqdiiSws5JN1dUcryp531qpiOYUcbmU0wmtpN9ra1QMchciTB+jloHT+A6m7.zX+4O.qg9GDjs7gN
-
@BobCat Sample maps and presets are not directly related. Presets store/restore the state of controls on the UI.
However you can use a control on the UI in combination with user presets to change sample map when a preset changes. I have a video about that here:
-
@BobCat This could be one way
const var Samplers = [Synth.getSampler("Sampler1"), Synth.getSampler("Sampler2"), Synth.getSampler("Sampler3")]; // Assuming you samplemaps are in order (sm_1, sm_2, sm_3, sm_a, sm_b, sm_c) const var allMaps = Sampler.getSampleMapList(); inline function onComboBox1Control(component, value) { local offset = (value-1) * 3; for (i=0; i<3; i++) { local sm = allMaps[i + offset]; Samplers[i].loadSampleMap(sm); } }; Content.getComponent("ComboBox1").setControlCallback(onComboBox1Control);