@d-healey Thanks, @d-healey . Your video was very helpful in understanding a few things. I created a looping timer that plays a note at random intervals. I specify a range for the random interval.
Here is my script, which I put on the main Container holding a child synth noise generator.
**onInit**
Synth.startTimer(3);
**onNoteOn**
function onNoteOn()
{
Message.ignoreEvent(true); // Isolate the synth by ignoring any MIDI notes coming in
}
**onTimer**
function onTimer()
{
var RT = Math.randInt(10,20);
Synth.stopTimer();
Synth.startTimer(RT);
local ti = Synth.getTimerInterval();
Synth.playNote(38,127);
Synth.addNoteOff(1,38,100000);
Console.print("Current timer: " + ti);
}
So, all of that works wonderfully for a single generator.
Here is the next challenge: I'd like to create several child synths in that main Container, each playing a different note and routed to a different matrix output. All notes should start and finish at the same time, thus getting the cue from the main Container timer.
How do I go about this, please?