HISE Logo Forum
    • Categories
    • Register
    • Login

    samplemaps with knob

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 298 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JayJ
      Jay
      last edited by

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

      Joansi Villalona

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

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

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        JayJ 1 Reply Last reply Reply Quote 0
        • JayJ
          Jay @d.healey
          last edited by

          @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);

          Joansi Villalona

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @Jay
            last edited by

            @Jay

            replace

            I don't what to do here

            with:

            mainSampler.loadSampleMap(samplemaps[value]);

            HISE Development for hire.
            www.channelrobot.com

            JayJ 1 Reply Last reply Reply Quote 0
            • JayJ
              Jay @Lindon
              last edited by

              @Lindon thank you buddy

              Joansi Villalona

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              51

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts