Hi MrB,
Thats such a neat little beat generator I had to play.
I dont know if ‘trap’ allows silences, but I modded it to
do so, and it works well for my tastes in music.
Eli…
use_bpm 100
notes = [ [:C2, :Ef3,:C4], [:Af2, :Ef3, :Af3,:C4],[:F2, :F3, :Af3,:C4],[:C2, :G3,:C4],
[:G2, :D3, :G3,:B3],[:C2, :Ef3, :G3,:C4] ,[:Af2, :F3, :B3,:Df4],[:C2, :G3,:C4],
[:G2, :F3, :B3,:D4],[:F2, :F3, :Af3,:Df4],[:C2, :Ef3, :Af3,:C4],[:C2, :G3,:C4]].ring
beats = [1, 0, 1, 0, 2, 0, 0, 0, 1, 1, 0, 1, 2, 0, 1, 0]
define :hatter do |d|
if d == :r then
sleep 1
else
density d do
sample :drum_cymbal_closed
sleep 1
end
end
end
live_loop :Hats do
#hatter(ring, 4, 4, 3, 8,:r,:r, 4, 6, 4, 16,:r,:r).tick
hatter(ring, 1,1,2,1,1,4,:r,:r).tick
end
live_loop :Beat do
beats.each.with_index do |i|
sample :bd_haus if i == 1
sample :drum_snare_hard if i == 2
sleep 0.25
end
end
live_loop :Piano do
use_synth :piano
3.times do
play notes.tick ,decay: 2 ,hard: 0.3
sleep 2
end
play notes.tick ,decay: 4 ,hard: 0.4
sleep 4
end
live_loop :Background do
notes = (ring :d3) + (scale :d4, :minor, num_octaves: 2).shuffle
s = synth :supersaw, note: :e5, sustain: 4, note_slide: 0.1, amp: 0.2
control s, note: notes.tick, note_slide: (line 0, 0.1, steps: 2).look
sleep (ring 1, 1, 1, 1, 0.5, 0.5, 1, 2).look
#sleep (ring 1,1,2).look
end