HISE Logo Forum
    • Categories
    • Register
    • Login

    connecting Preset browser with Sampler

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 67 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.
    • T
      tiesvdam
      last edited by

      I have an issue. I was working on customizing a preset browser connected to my sampler. After changing some LAF settings, the sounds that previously worked with the preset browser stopped functioning. Now, the sounds no longer appear in my preset browser, even though they worked before. Can someone help me? This is the script I’ve made:

      my preset browser names 'cmbSampleMap'

      //Sampler
      const var Sampler1 = Synth.getChildSynth("Sampler1");

      //Sample maps array
      const var SampleMaps = Sampler.getSampleMapList();

      //combo box
      const var cmbSampleMap = Content.getComponent("cmbSampleMap");
      cmbSampleMap.set("items", sampleMaps.join("\n"));

      inline function onCmbSampleMapControl(component, value)
      {
      Sampler1.asSampler().loadSampleMap(sampleMaps[value-1]);
      };

      Content.getComponent("cmbSampleMap").setControlCallback(onCmbSampleMapControl);

      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @tiesvdam
        last edited by

        @tiesvdam You have misspelled, you sample map list starts with uppercase

        const var SampleMaps = Sampler.getSampleMapList();
        
        cmbSampleMap.set("items", sampleMaps.join("\n"));
        
        Sampler1.asSampler().loadSampleMap(sampleMaps[value-1]);
        

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

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

        15

        Online

        1.7k

        Users

        11.8k

        Topics

        103.0k

        Posts