button to activate/deactivate audio loop player range
-
Hi, is it possible to activate and deactivate the audio loop player range with a button? Thanks
-
@meto396 I need a button for this :
Can anyone help me?
-
@meto396 Add a button and put the thing you want it to do in the button's callback.
-
@d-healey I've tried this
const var AudioLoopPlayer = Synth.getChildSynth("AudioLoopPlayer"); const var Button6 = Content.getComponent("Button6"); inline function onButton6Control(component, value) { if (value == 0) { AudioLoopPlayer.setRange(true); } else { AudioLoopPlayer.setRange(false); } }; Content.getComponent("Button6").setControlCallback(onButton6Control);
-
@meto396 Does the audio loop player have a .setRange function?
-
@d-healey I tried all range options from the API
-
@meto396 you probably need to use setAttribute
-
@d-healey said in button to activate/deactivate audio loop player range:
setAttribute
but what is the parameter index for this?
-
@meto396 Check in the module browser, it shows all the parameter constants (don't use numbers).
-