# How to make a gate always half length on given a variable pulse?

I’m making a stutter effect to control with Sensel Morph as momentary push fader, kinda. It’s active when pressing and faster moving the finger upwards.

Here’s the thing:
Stutter.tox (1.4 KB)

So right now I’m getting a MIDI note reseting a Beat CHOP. That’s my BPM.
From there I have additional Beat CHOPs referenced to the original beat with the corresponding time multiplication (period division in this case). So far so good.

To be a stutter effect I need to extract a gate that is half the length between pulses, so the visuals are 50% on 50% off. I use Trigger CHOP for that, but the sustain length is set manually and it’s not dependent on the BPM. Right now it works for I think 100 BPM but once the BPM changes, the gate duration is not half the length between the pulses.

How do I get a gate that is always half the length? A BPM counter somehow? Something more simple?

Thanks!

You can think of BPM as 60/BPM=seconds.

For example, a 60BPM song is 60/60=1sec, each beat is one second long.
A song with a 120BPM would be 60/120=0.5sec each beat, and so on.

Then you can use this value in your trigger, or if you need half of that just divide by 2.

I hope it helps!

Hi Fausto, thanks for the answer.

The thing is that tempo is variable during the performance, so I want the gate length (sustain on Trigger CHOP) to be automatically adjusted, but I can’t wrap my mind how to do that without a BPM counter where you have the 120 value and just input it as an expression on the sustain parameter.

Hi Carlos! maybe I misunderstood what you are trying to achieve (I definitely did in my first answer!! ) but I would just use a count CHOP set to loop min-max 0-1 given that your beat CHOP are already providing that subdivision for you.
See attached my approach on this. I changed few things around.

Stutter FB.toe (4.1 KB)

I hope that helps! but maybe I am completely on the wrong path!!

1 Like

Ahh damn, that’s a much simpler solution I wasn’t seeing
Also thanks for the appropriate period expression.
Very much appreciated, have a great week!