samplemaps with knob



  • what is the way of loading samplemaps using a knob to select it, instead of the usual combobox?



  • Just the same as a comboBox but use the knob value instead.



  • @d-healey Sorry for bothering you soooo much, but I'm stuck here with this, I have try all I can to make it work but I can't

    // ============================= Preset Browser ==============================//
    const var mainSampler = Synth.getSampler("Sampler");
    const var cmbSampleMap = Content.addComboBox("cmbSampleMap", 80, 96);
    const var samplemaps = ["MKS-20 E.Piano Pad", "MKS-20 E.Piano SoftPad", "Piano String Classic", "MKS-20 E.Piano Gospel 2", "JV EP+", "LA Custom C7 Grand Piano", "LA Custom C7 Rich Ballad", "LA Custom C7 Stage", "Rhodes - LA Custom"];
    cmbSampleMap.set("items", samplemaps.join("\n"));
    // ========================= End OF Preset Browser =========================//

    inline function ondialKnbControl(component, value)
    {
    I don't what to do here
    };
    Content.getComponent("dialKnb").setControlCallback(ondialKnbControl);



  • @Jay

    replace

    I don't what to do here

    with:

    mainSampler.loadSampleMap(samplemaps[value]);



  • @Lindon thank you buddy


Log in to reply
 

9
Online

621
Users

2.5k
Topics

20.2k
Posts