How to create swing feel?


#1

I've been thinking about ways to make a beat clock swing and am interested to see what approaches others have used.

So far I have used a counter so skip every second note of three note groups and that works ok at slow tempos but as the tempo increases the swing tends to even out so a finer adjustment to get the feel just right is needed.

I thought I could do it with an LFO that had PWM but can't find a LFO module that has logic out other than the factory one or the falling edge detection needed.

Any ideas?


Midi clock pulse modulating / deviding
#2

I've experimented with some objects:

This is an ascending saw LFO.
the math/* object multiplies the ramp by itself to obtain a parabola.
the mix xfade and the ctrl/dial allows to control the mixture between the regular ramp and the "swinged" parabolic ramp.

Then, i use my kfunc/modulo object and a comparator to get impulses.

You can try: swing.axp (4.0 KB)


#3

as simple as:

lfo/saw ------> math/< ------> logic/change

(then you might want to connect something to math/< like dial/p or something else that allows you to control the swing amount)

Basically: the saw lfo provides a ramp signal, which is compared with a fixed value. When the lfo signal is smaller, the comparator object (in this case math/< ) outputs 1, otherwise it will output 0. If you use math/> instead it will give opposite outputs, but that does not matter:
logic/change outputs 1 whenever the current input is different from the previous input. If you change the "reference value" of the comparator, you're just changing the amount of swing, and not the overall period of the clock.

The difference between this implementation and @SmashedTransistors 's is that if you do it this way, the clock speed is doubled, with respect to the lfo speed.


#4

Cheers, I think it's one of those things that there many ways to do and each has it's own flavour, I'll try the suggestions offered here when I get time and see what the results are, I'll probably build a system that enables several options to generate different types of swing for different types of music.

Thanks for your input.


#5

My take on shuffle ...one is the classic drummachine approach, the other a per step shuffle taken from the jomox. axoloti-contrib/patches/phi/shuphil1