Constant Audio - Tape/Vinyl Emulation
-
-
@danh Yes. Also if the button is saved in preset it could also start the note as soon as the preset is loaded.
-
-
@ustk super appreciate you! Thanks for this
-
@trillbilly If you want it to play or not depending on the selected preset then a button is the choice to make
-
-
-
@ustk I've got it close to working. It is indeed turning the Noise FX on and off, but it is also effecting all other sampler. When I turn the button on and off, it turns each sampler on and off, not just the one generating the noise.
Here is how I have is coded:
const var Sampler5 = Synth.getSampler("Sampler5"); inline function onButton1Control(component, value) { if (value) Synth.addNoteOn(1, 60, 60, 0); else Synth.addNoteOff(1, 60, 0); }; Content.getComponent("Button1").setControlCallback(onButton1Control);
Am I missing something to control only "Sampler 5" with this funtion?
-
@trillbilly said in Constant Audio - Tape/Vinyl Emulation:
@ustk I've got it close to working. It is indeed turning the Noise FX on and off, but it is also effecting all other sampler. When I turn the button on and off, it turns each sampler on and off, not just the one generating the noise.
Here is how I have is coded:
const var Sampler5 = Synth.getSampler("Sampler5"); inline function onButton1Control(component, value) { if (value) Synth.addNoteOn(1, 60, 60, 0); else Synth.addNoteOff(1, 60, 0); }; Content.getComponent("Button1").setControlCallback(onButton1Control);
Am I missing something to control only "Sampler 5" with this funtion?
you need to put this in a Script processor attached to Sampler 5
-
@lindon Thanks, I got it working just after I posted.
Now my issue is only allowing Noise FX samplemaps show in the NoiseFX Combobox. Right now, it shows all samplemaps for all Samplers.
Is there a way to tell HISE which samplemaps to load in a particular combobox?
-
@trillbilly you need to filter the samplemaps using some string operations. It will be easier if you name properly your samplemaps. then you can filter with "if samplemap name contains NOISE", or whatever you want.
-
@ustk Yes, I have all the sample maps for noise lead with NSE. Im out of the studio today but I will get back to this tomorrow and see if I can figure it out.
Thanks again!
-
@ustk I guess Im a bit confused how the "If" function works. Should I be adding it directly beneath wear I am calling for the samplemaps list?
Here is my original code:
inline function onNoisecmboxControl(component, value) { Sampler1.loadSampleMap(sampleMaps[value-1]); }; Content.getComponent("Noisecmbox").setControlCallback(onNoisecmboxControl);
I've messed around with various "If" functions directly below "Sampler1" and have had no success. Where am I going wrong? Should I be doing a separate callback to the "Noisecmbox" ?