Clipping Sound On Second Sampler
-
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?
-
@kameron Nothing to do with your script. Probably some configuration of the modules, start by checking the envelope settings for each sampler.