Midi Player - DAW Sync problem
-
const var TH=Engine.createTransportHandler(); TH.stopInternalClockOnExternalStop(true); TH.startInternalClock(0); TH.setSyncMode(TH.ExternalOnly); MIDIPlayer.setSyncToMasterClock(false); TH.setOnBeatChange(false, function(beat, isNew) { if (playButton.getValue()==1 && MIDIPlayer.getPlayState()==0 && isNew==1) { MIDIPlayer.play(0); } if (playButton.getValue()==0) { MIDIPlayer.stop(0); } });
Hi, I'm using this code to make sure that when DAW is playing and Play button is pressed, MIDIPlayer won't start immediately and wait for next bar to start. It work as expected but there is slight sync problem with DAW. Is there a way to fix this?