Tempo synced envelope


#1

I'm working on my sidechain ducking effect that is based on an inverted envelope. I would like to have it always synced to a quarter note, regardless of the tempo.
So for example in 120bpm I have a time of 500ms, at 60bpm 1000ms at 90bpm 750ms etc.

So as I understand I have to use the modulation inlet of and Env/d object, but I don't really understand how it is scaled. Does anybody know or have a different aproach for achieving this?

P.S. I have objects to measure the tempo (incoming midi clock) and spit out samples between the clock ticks.
So evntually I will have my quarter value in samples and I need to feed it into the lfo inlet.

P.P.S. Something like this object, but not as an lfo but only one time like and envelope would do the job.


#2

@Blindsmyth

I did an edit of the env/d a while ago. This one can be synced to any tempo.

To make it, I removed the mtof, midi to freq math and instead I fed it information from a timing to sample object, so the length of the envelope is based on sample data coming from calculating time between 16th notes.

Check the notes in the patch on how to change the envelope length(use the bitshifting object for that).

Anyway, here it is:
Sync Env Pulse 2.3 Blindsmyth.axp (4.9 KB)

Should probably make it into a proper object at some point. To be continued........ :wink:


#3

Ah you are my hero that is exactly what I was looking for :raised_hands::raised_hands:

I also have an object measuring the samples between 24ppq and giving out an average length.

Im gonna try it out after the weekend :slight_smile: