Thanks, this did work! Got those properties to work very well. I'm creating a very basic sequencer but the timing is way off. The isPlaying property is working, along with all properties, its just onTimer, and the transport tick/metronome is not syncing together properly. The onTimer should sync with the metronome beat, but its not.. any advice on this?? The below snippet is what im working on
const var Tempo = Content.addKnob("Tempo", 0, 0); // [JSON Tempo] Content.setPropertiesFromJSON("Tempo", { "max": 10, "mode": "TempoSync", "stepSize": 1 }); Synth.startTimer(Engine.getMilliSecondsForTempo(Tempo.getValue()) / 1000.0); function onTimer(){ if(Engine.getPlayHead().isPlaying ){ if( parseInt(Math.ceil(Engine.getPlayHead().ppqPosition)) == 1){ Synth.playNote(48,127); } if( parseInt(Math.ceil(Engine.getPlayHead().ppqPosition)) == 2){ Synth.playNote(48,127); } if( parseInt(Math.ceil(Engine.getPlayHead().ppqPosition)) == 3){ Synth.playNote(48,127); } if( parseInt(Math.ceil(Engine.getPlayHead().ppqPosition)) == 4){ Synth.playNote(48,127); } Synth.startTimer(Engine.getMilliSecondsForTempo(Tempo.getValue()) / 1000.0); } }T