HISE Logo Forum
    • Categories
    • Register
    • Login

    Clipping Sound On Second Sampler

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 280 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.
    • K
      kameron
      last edited by

      I'm wondering if someone could help me pin point the cause of a clipping issue.

      FYI I'm new to HISE and scripting. I wanted to create two combo boxes for two samplers and the script I'm using for this I found on this forum.

      Anyways, I have two samplers and two combo boxs for each sampler. When I turn sampler one on the samples sound clean and smooth. However, when I turn on sampler 2 the samples have a harsh clipping sound at the end.

      Both samplers are using the same sample maps so I'm confused on where this clipping is coming from.

      This is what I have for my script:

      Content.makeFrontInterface(800,549);
      
      //Sampler
      const var Sampler1 = Synth.getChildSynth("Sampler1");
      const var Sampler2 = Synth.getSampler("Sampler2");
      
      //Sample Maps Array
      const var sampleMaps = Sampler.getSampleMapList(); 
      
      //Combo Box - Layer A
      
      const var ComboBox1 = Content.getComponent("ComboBox1");
      
      ComboBox1.set("items", sampleMaps.join("\n"));
      
      
      inline function onComboBox1Control(component, value)
      {
      	Sampler1.asSampler().loadSampleMap(sampleMaps[value-1]);
      };
      
      Content.getComponent("ComboBox1").setControlCallback(onComboBox1Control);
      
      //Combo Box - Layer B
      
      const var ComboBox2 = Content.getComponent("ComboBox2");
      
      ComboBox2.set("items", sampleMaps.join("\n"));
      
      
      inline function onComboBox2Control(component, value)
      {
      	Sampler2.loadSampleMap(sampleMaps[value-1]);
      };
      
      Content.getComponent("ComboBox2").setControlCallback(onComboBox2Control);
      

      Am I doing something wrong in my script?

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

        @kameron Nothing to do with your script. Probably some configuration of the modules, start by checking the envelope settings for each sampler.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

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

        12

        Online

        2.0k

        Users

        12.7k

        Topics

        110.1k

        Posts