Tempo Synced Attack Time? How?
-
Hey Hise friends, Hope all is well with you️
Tryna ng to find a solution to make my ADSR Attack time to work Time synced.
But no Idea how to achieve this,
I Can do this using Scriptnode, But any other solutions?Thanks for your Advices
-
@Natan You can use a TransportHandler and recalculate the attack time when the tempo changes. There are a few
Engine.getXForY()
methods that will help you with it. -
@Natan you could use an LFO with loop switched off. It will behave like an envelope
-
@DanH said in Tempo Synced Attack Time? How?:
@Natan you could use an LFO with loop switched off. It will behave like an envelope
Well nearly - it wont sustain...
-
@Christoph-Hart said in Tempo Synced Attack Time? How?:
@Natan You can use a TransportHandler and recalculate the attack time when the tempo changes. There are a few
Engine.getXForY()
methods that will help you with it.Thanks Christoph, BTW this is the Hardest solution to script️
Out of my knowledge, do you have time to post a snippet? thanks legend -
@DanH
@Lindon said in Tempo Synced Attack Time? How?:@DanH said in Tempo Synced Attack Time? How?:
@Natan you could use an LFO with loop switched off. It will behave like an envelope
Well nearly - it wont sustain...
I tried that before posting, The sustain like @Lindon Said is problem here.
I need a Better solution
-
Do you have an example of a synth or sampler with this functionality? I’m trying to figure out how you would use a tempo synced attack segment …
-
@Natan don't have any snippet right now but basically you do :
onHostTransport
>Engine.getMilliSecondsForTempo
and apply the returned time to the attack parameter.https://docs.hise.audio/scripting/scripting-api/transporthandler/index.html#setontempochange
-
@Matt_SF No Idea ho it works :/