Pulselength synced to clock?


#1

Hello :slight_smile:

Is there anyway to sync a pulselength to a subdivision of a clock?

For example I would like to have an ADSR envelope triggered by a sequencer and the adsr must be on for a 16th note. I know i can use the timer/pulselength to set how long to turn on the adsr manually. But since I am modualting the clock, it would be really lovely to be able to sync the adsr envelopes to the clock. So it is never longer than the clock subdivision.

Does that makes sense? :slight_smile:

Thanks, Jaffa


#2

You can use a higher-speed clock (like: 32 impulses per actual clock tick) and use dividers/counters to figure out when to set the gate signal back to zero.


#3

I'm using envelopes for sidechain compression, I would love to have something like this.

Theoretically you could feed the clock into like sss/Clock2timing, then feed this somehow to the modulation inlets of the envelope but I don't about the scaling and everything.


#4

Thanks guys, will try those things out.

How ever while exploring last night I also stumbled upon sir sick sik's object sss/timer/SyncPulse

it measures time between triggers AND THEN, according to the time measured you can set the pulselength using a dial. If you set the dial to 64(100%), the pulse will be hold all the way until next trigger, no matter how long there is between. Set to 32 (50%) it will hold half the way until next trigger. This is really great, no worries of overlapping notes, it should always adjust its lemgth according to the clock..... and not too much manual settings i hope. Still testing.

Anyway always good with options. WIll try what works best. Thanks again


#5

I know you can calculate how long a beat or 16th note etc..... is if you know the bpm.
So i f you can read the bpm and do some math to it and feed it to de pulselength object you are set.
I don't have time to check if or how it's possible though.
Hope this helps.
Here's a website with the calculations


#6

Thanks for the inpit @Rekhyt

But my whole point was that I want to avoid anything that I have to set manually. I am looking for something where I can change to any BPM I want at anytime, without having to type in a bunch of numbers manually. That would kill any performance. But I think sirsicksik's object works pretty well. Best solution I found so far.


#7

Hey , yeah i meant realtime.
The lfo objects allready do some kind of bpm calculation because you can see it on the object , so if johannes or someone else could just make the lfo spit out that bpm value you could connect some math objects and everytime you change the bpm it will do the maths and the pulselength would change accordingly.
I'd like to see that because i'd like to put some tempo synched delays in my project.
Also , i didn't see any dividers with a modulation input like you have with multiply so that's a problem too.
Maybe i overlooked it.
Greetz...


#8

I dont think this is a good suggestion. There is all ready a clock running that has the tempo information and therefore I see no point to add an extra lfo.

There are several tempo synced delays in the com.lib. all ready. Look in DrJusitce folders.