Swing Example, put some swing in your rhythms

If you want to make use of the swing function, you could use this approach as a start,
I found it works really well with bools :

live_loop :swing do
  with_swing 0.08 do
    sample :drum_cymbal_soft if (bools 1, 0, 0, 0, 1, 0, 1, 0).tick
  end
  sleep 0.125
end

Now change the swing value to 0.12 and then back again to lets say 0.08 and listen to the change in swing feel.

Or a negative value approach :

live_loop :swing do
  with_swing -0.02 do
    sample :drum_cymbal_soft if (bools 1, 0, 0, 0, 1, 0, 0, 1).tick
  end
  sleep 0.125
end

Change the value of the swing to -0.08 and listen to the effect. Then change it back to -0.06, etc.

3 Likes

Doesn’t work for me. “with_swing” is undefined method. Can it be added somehow?

It may be that ‘with_swing’ is a version 3.0+ command… if you are still using the Windows v 2.11 version
you may not have access to the command yet… I dont know when 3.0 for Windows is due for release…
you need to check with Sam.

Eli…

A beta release of v3 for windows is available to my patreon supporters. Release will be when it’s ready :slight_smile:

#bohrbugswings

use_bpm 60

live_loop :biet do
sleep 1
end

a = 0.5

b= 0.01

with_fx :bitcrusher do

live_loop :swing1, sync: :biet do
with_swing rrand(-0.05,5) do
sample :drum_snare_hard if (bools 1, 0, 0, 0, 0, 0, 0, 1).tick
end
sleep a
end

live_loop :swing2, sync: :biet do
with_swing rrand(-0.04,4) do
sample :drum_snare_soft if (bools 0, 1, 0, 0, 0, 0, 1, 0).tick
end
sleep a-b
end

end

with_fx :compressor do

live_loop :swing3, sync: :biet do
with_swing rrand(-0.03,3) do
sample :drum_splash_hard if (bools 0, 0, 1, 0, 0, 1, 0, 0).tick
end
sleep a-b-b
end

live_loop :swing4, sync: :biet do
with_swing rrand(-0.02,2) do
sample :drum_splash_soft if (bools 0, 0, 0, 1, 1, 0, 0, 0).tick
end
sleep a-b-b-b
end

end

with_fx :tremolo do

live_loop :swing5, sync: :biet do
with_swing rrand(-0.01,1) do
sample :drum_cymbal_hard if (bools 1, 0, 0, 1, 0, 0, 0, 1).tick
end
sleep a-b-b-b-b
end

live_loop :swing6, sync: :biet do
with_swing rrand(-0.001,0.1) do
sample :drum_cymbal_soft if (bools 1, 0, 1, 0, 0, 0, 1, 0).tick
end
sleep a-b-b-b-b-b
end

end