These top 5 Parameters do not seem to be functioning.
Does anyone have any ideas or any links to using RNBO Data~ object with HISE SliderPack?
been at this for a few days now trying all kinds..

These top 5 Parameters do not seem to be functioning.
Does anyone have any ideas or any links to using RNBO Data~ object with HISE SliderPack?
been at this for a few days now trying all kinds..

@Rognvald I found this as a starting point.. :)
const var Knob = Content.getComponent("Knob");
const TH = Engine.createTransportHandler();
// 18 = tempo factor = 1/64T
TH.setEnableGrid(true, 18);
// Set sync mode Internal or External
TH.setSyncMode(TH.PreferExternal);
// ON GRID CHANGE FUNCTION
// You start and stop this using "TH.startInternalClock" & TH.stopInternalClock
inline function GridChange(clock, arg2, arg3)
{
local v = (clock % 200) / 100;
local value = v < 1.0 ? v : 2 - v;
// Trigger the knob
Knob.setValue(value);
Knob.changed();
};
TH.setOnGridChange(true, GridChange);
inline function onKnobControl(component, value)
{
Console.print(value);
};
Content.getComponent("Knob").setControlCallback(onKnobControl);
// START STOP INTERNAL CLOCK
inline function onStartInternalClockControl(component, value)
{
if (value)
TH.startInternalClock(0);
else
TH.stopInternalClock(0);
};
Content.getComponent("StartInternalClock").setControlCallback(onStartInternalClockControl);
Is there any simple function for this, or using Timer?
Can anyone provide an example? :)
Good morning Sir and thank you! yes "loadFile" not "setFile" and "slots[]"
Maybe I will sleep now :)
inline function onKnS2Control(component, value)
{
slots[1].loadFile("{PROJECT_FOLDER}"+inst2[value]);
};
Content.getComponent("KnS2").setControlCallback(onKnS2Control);
@Chazrox the code i posted above is functioning swapping samples from both array but only to one file_player slot#
@Chazrox This info really helps me understand tho :) thanks
Here is a snippet with 2x file_players and the controls
HiseSnippet 2985.3oc6a07babaEeWIsxVJwNezzON0fQsGnpMk4BRJRFmVS8YhhkjYHUURFWOxPbAEQ0xEa2ETVrY7L9RmoG80bnyj+L5w7WRmbuWxgzC8TJ.1c4hkeJQaIl1oalIl.38v6g2u26gOUEOZcruO0SSewC53h0zeSiZcbXM2nIh3nsylZ5+biG5POF1fXiqYSYoq4PbcwLs063h78wVZ55y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zM4UjISXm+VFUoT11d3+Tat2cmHobKihkJtR1rkxrJLeOR6FF4xcoFXIsl+LQ6YJE7Unvp43actHL7QlKTjphXxHE4mvotT.0EJsZ9RkLyOjAe7IynooDIbaU+XyIJTnmt30erPlKXrvmz9Dah+Z0os8Yj59GUrDOd3n0xNxXgvim8+GHLgABqtZoUJXloT1BS0.gQMbUc8Uw4DsH+a8PThuLvYBlYZG+CEsVGYGIE9DiqSom1BImRdhN+S00.9tQqAayNNnVbW1vQWTQyd96Bhg2Rd.bVp9RhpOnoG1uIesm81vZLF2ITcg3hZqx2Q.xWwi7KJKhJ8jpUeh36dPbiCTPwMG.IAM80e0W8uU3Lgl7h+4mNihHSpOf+v6+zxx+3lvdCX7F1x.0jv15eTG1PeC7eshVrG5Tba2Azc82f9r+2zxIuNjQKTcO5Qc2iIO6grF931QNIwBF6IJCFvcmzhXQNpd8jcUeLBmTFyNoLlaRYL+jx3pSJiElTFKNdFE+g1sVaFsUvFI3aLnxVAyCq2M5TeVs+S0TKY+
@Chazrox Yes, I am not sure how to call inst more than once.. i keep getting error - Duplicate const var declaration.
// PLAYER 1 Array Samples in AudioFiles-Folder----------------------------------------------------------------------
const var inst[0] = ["Wi_trap808-1.wav","Wi_trap808-2.wav","Wi_trap808-3.wav","Wi_trap808-4.wav","Wi_trap808-5.wav","Wi_trap808-6.wav"];
//--------------------------------------------------------------------------------------------------------
// PLAYER 2 Array Samples in AudioFiles-Folder----------------------------------------------------------------------
const var inst[1] = ["Wi_Kick-1.wav","Wi_Kick-2.wav","Wi_Kick-3.wav","Wi_Kick-4.wav","Wi_Kick-5.wav","Wi_Kick-6.wav"];
//--------------------------------------------------------------------------------------------------------
@d-healey The buttons are linked to the knobs which should change the files in the slot. I thought..
Thanks I will create a snippet :)
@d-healey Yes as in the image I posted

same for all 4

@d-healey Sorry i am still battling with this same error "Unknown function 'setFile'..
//--------------------------------------------------------------------------------------------------------
const var ScriptFX1 = Synth.getAudioSampleProcessor("Script FX1");
const slots = [];
for (i = 0; i < 4; i++)
{
slots[i] = ScriptFX1.getAudioFile(i);
}
//--------------------------------------------------------------------------------------------------------
// Load Audiofiles into pool ----------------------------------------------------------------------------------------------
Engine.loadAudioFilesIntoPool();
//--------------------------------------------------------------------------------------------------------
// PLAYER-1 const vars----------------------------------------------------------------------------------------------
//const var AudioLoopPlayer1 = Synth.getChildSynth("Audio Loop Player1");
const var Random = Content.getComponent("Random1");
const var KnS1 = Content.getComponent("KnS1");
const var Next = Content.getComponent("Next1");
const var Prev = Content.getComponent("Prev1");
//--------------------------------------------------------------------------------------------------------
// PLAYER 2 const vars----------------------------------------------------------------------------------------------
//const var AudioLoopPlayer1 = Synth.getChildSynth("Audio Loop Player1");
const var Random2 = Content.getComponent("Random2");
const var KnS2 = Content.getComponent("KnS2");
const var Next2 = Content.getComponent("Next2");
const var Prev2 = Content.getComponent("Prev2");
//--------------------------------------------------------------------------------------------------------
// PLAYER 1 Array Samples in AudioFiles-Folder----------------------------------------------------------------------
const var inst = ["Wi_trap808-1.wav","Wi_trap808-2.wav","Wi_trap808-3.wav","Wi_trap808-4.wav","Wi_trap808-5.wav","Wi_trap808-6.wav"];
//--------------------------------------------------------------------------------------------------------
// PLAYER 2 Array Samples in AudioFiles-Folder----------------------------------------------------------------------
const var inst2 = ["Wi_Kick-1.wav","Wi_Kick-2.wav","Wi_Kick-3.wav","Wi_Kick-4.wav","Wi_Kick-5.wav","Wi_Kick-6.wav"];
//--------------------------------------------------------------------------------------------------------
//PLAYER 1 Knob1 Sample selection---------------------------------------------------------------------------------
inline function onKnS1Control(component, value)
{
slot[0].setFile("{PROJECT_FOLDER}"+inst[value]);
};
Content.getComponent("KnS1").setControlCallback(onKnS1Control);
//--------------------------------------------------------------------------------------------------------
//PLAYER 2 Knob1 Sample selection---------------------------------------------------------------------------------
inline function onKnS2Control(component, value)
{
slot[1].setFile("{PROJECT_FOLDER}"+inst[value]);
};
Content.getComponent("KnS2").setControlCallback(onKnS2Control);
//--------------------------------------------------------------------------------------------------------
@d-healey Thanks again, this is where I was going wrong. Learning slowly but surly :)
@d-healey said in Help with loading 4x file_players from Ui button/Knob:
slot[0].
I added the references and added slot function here* and getting error "Unknown function 'setFile'
inline function onKnS1Control(component, value)
{
Synth.getAudioSampleProcessor("Script FX1").slot[0].setFile("{PROJECT_FOLDER}"+inst[value]);
};
Content.getComponent("KnS1").setControlCallback(onKnS1Control);
@d-healey its the interface I am trying to link to scriptFX.
Can I reference the separate slots in the knob function?
inline function onKnS1Control(component, value)
{
Synth.getAudioSampleProcessor("Script FX1").setFile("{PROJECT_FOLDER}"+inst[value]);
};
Content.getComponent("KnS1").setControlCallback(onKnS1Control);
@d-healey Thats the one, is it similar for the sample array?
// Array Samples in AudioFiles-Folder----------------------------------------------------------------------
const var inst = ["Wi_Kick-1.wav","Wi_Kick-2.wav","Wi_Kick-3.wav","Wi_Kick-4.wav","Wi_Kick-5.wav","Wi_Kick-6.wav"];

@d-healey Ok I get that part, but how to set different files for each 4 knobs through Script FX1 is where I am confused.
//Knob1 Sample selection---------------------------------------------------------------------------------
inline function onKnS1Control(component, value)
{
Synth.getAudioSampleProcessor("Script FX1").setFile("{PROJECT_FOLDER}"+inst[value]);
};
Content.getComponent("KnS1").setControlCallback(onKnS1Control);
@d-healey Ahh ok I was trying this before.. let me give it another go.
I am using the demo snippet code for the buttons to swap samples.
const var ScriptFX1 = Synth.getAudioSampleProcessor("Script FX1");
const slot = ScriptFX1.getAudioFile(0);
// Load Audiofiles into pool ----------------------------------------------------------------------------------------------
Engine.loadAudioFilesIntoPool();
//--------------------------------------------------------------------------------------------------------
// const vars----------------------------------------------------------------------------------------------
//const var AudioLoopPlayer1 = Synth.getChildSynth("Audio Loop Player1");
const var Random = Content.getComponent("Random1");
const var KnS1 = Content.getComponent("KnS1");
const var Next = Content.getComponent("Next1");
const var Prev = Content.getComponent("Prev1");
//--------------------------------------------------------------------------------------------------------
// Array Samples in AudioFiles-Folder----------------------------------------------------------------------
const var inst = ["Wi_Kick-1.wav","Wi_Kick-2.wav","Wi_Kick-3.wav","Wi_Kick-4.wav","Wi_Kick-5.wav","Wi_Kick-6.wav"];
//--------------------------------------------------------------------------------------------------------
//Knob1 Sample selection---------------------------------------------------------------------------------
inline function onKnS1Control(component, value)
{
Synth.getAudioSampleProcessor("Script FX1").setFile("{PROJECT_FOLDER}"+inst[value]);
};
Content.getComponent("KnS1").setControlCallback(onKnS1Control);
//--------------------------------------------------------------------------------------------------------
// Random Button------------------------------------------------------------------------------------------
Random.setControlCallback(onRandom_Control);
inline function onRandom_Control(component, value)
{
if (value)
{
KnS1.setValue((Math.randInt(0, 5)));
KnS1.changed();
}
};
//--------------------------------------------------------------------------------------------------------
// Prev-Button----------------------------------------------------------------------------------------------
inline function onPrevControl(component, value)
{
if (value)
{
KnS1.getValue() > KnS1.get("min") ? KnS1.setValue(KnS1.getValue() - 1) : KnS1.setValue(KnS1.get("max"));
KnS1.changed();
}
};
Content.getComponent("Prev1").setControlCallback(onPrevControl);
//--------------------------------------------------------------------------------------------------------
// Next-Button ----------------------------------------------------------------------------------------------
inline function onNextControl(component, value)
{
if (value)
{
KnS1.getValue() < KnS1.get("max") ? KnS1.setValue(KnS1.getValue() + 1) : KnS1.setValue(KnS1.get("min"));
KnS1.changed();
}
};
Content.getComponent("Next1").setControlCallback(onNextControl);
//--------------------------------------------------------------------------------------------------------
@d-healey This is great for setting one sample to all players.
I am looking for separate controls to swap samples in a folder for each file_player in Scriptnode.
I can only get it functioning with one file_player, as I dont know how to reference the other 3 file_players in the Script FX1..
Thanks for your time*
I have managed to get one file_player working to load files from Ui, having trouble referring to more than one file-player in ScriptFX..
using this, but how can i refer to the other 3x file_players within ScriptFX?
const var ScriptFX1 = Synth.getAudioSampleProcessor("Script FX1");
const slot = ScriptFX1.getAudioFile(0);
and
inline function onKnS1Control(component, value)
{
Synth.getAudioSampleProcessor("Script FX1").setFile("{PROJECT_FOLDER}"+inst[value]);
};
Content.getComponent("KnS1").setControlCallback(onKnS1Control);
:) anyhoo
Thanks for your time guys!
this is the script that got things running smooth. :)
const var snailFader = Content.getComponent("snailFader");
snailFader.setAnimation(lottie);
const lottieData = snailFader.getAnimationData();
// Snail Slider to Control Knob / hidden
Content.getComponent("KNsnailFader").setControlCallback(onKNsnailFaderControl);
const var KNsectionKnob1 = Content.getComponent("KNsectionKnob1");
inline function onKNsnailFaderControl(component, value)
{
snailFader.setAnimationFrame(value);
KNsectionKnob1.setValue(value * 0.0033);
KNsectionKnob1.changed();
};
@d-healey I had to add ``` for the Knob to control the "processorid" - "paramaterid".. to get things to work :)
Wave_Knob.changed(); // update value