Sync to DAW
-
In order to sync my plug-in with the DAW
I used the transport snipper from the documentationhttps://docs.hise.audio/scripting/scripting-api/transporthandler/index.html#setontempochange
I have included it.
It works from
the beat and it counts when the timeline is running in the DAW. What does not adjust is the speed.
It gal what I set in the DAW. The plug-in remains at 80BPM
Is there anything missing here? -
@MikeB Interesting. Have you also tested time signature change to see if the same issue occurs?
-
@ustk Timesignatur works fine
-
@ustk Why did you ask?
Does that work for you?
Or do you have another solution to synchronise the BPM with the DAW? -
Surely someone has already synchronised their plug-in with the tempo of the DAW?
I can't be the only one trying to do that here.I can't get my plug-in BPM to match the speed of the DAW (StudioOne).
This was the last attempt -a snippet from @ulrik
const var TimeValue = Content.getComponent("TimeValue"); const var SetTime = Content.getComponent("SetTime"); const var HostTempo = Content.getComponent("HostTempo"); var time = 60; const var t = Engine.createTimerObject(); inline function onSetTimeControl(component, value) { time = value; t.startTimer(time); }; Content.getComponent("SetTime").setControlCallback(onSetTimeControl); t.setTimerCallback(function() { HostTempo.set("text", Engine.getHostBpm()); });
-
@MikeB This was only a test plugin to see if the tempo changes in the daw was registred in the plugin.
I tried my "Scale modes" (instrument) just now, and it syncs just fine inside Logic X Pro.
Is it a FX plugin ot instrument? -
It's an instrument - drum machine
Your snippet works alone in Studio One as AU
as Ist does not - strange.In my PlugIn it does not work in AU nor VST nor in HISE PlugIn.
Do you have a solution here?
-
@MikeB Hmm.. drum machine, so it's the arp that doesn't sync, or how have you set it up?
-
@ulrik my Scale modes plugin use the arp and it will auto sync to the host if you have set
Engine.setHostBpm(-1);
-
@ulrik said in Sync to DAW:
Engine.setHostBpm(-1);
The syntax, the syntax - you know my motto first try it out :-)
Thank you Ulrik - as always
Works now.