Skip to content

Instantly share code, notes, and snippets.

@jargnar
Created January 11, 2020 21:37
Show Gist options
  • Save jargnar/f41743c30e2469d4cbb3f7a8cee04082 to your computer and use it in GitHub Desktop.
Save jargnar/f41743c30e2469d4cbb3f7a8cee04082 to your computer and use it in GitHub Desktop.
s0, r0, g0, p0, n0 = :C3, :D3, :E3, :G3, :B3
s, r, g, p, n = :C4, :D4, :E4, :G4, :B4
s2, r2, g2, p2, n2 = :C5, :D5, :E5, :G5, :B5
define :maya do
sleep 3
play_pattern_timed [s, s, r, s, r, s, r, r], 0.75, release: 3
sleep 3
play_pattern_timed [s, r, g, s, r, s, r, r], 0.75, release: 3
sleep 3
play_pattern_timed [g, r, s, r, g, p, g, r], 0.75, release: 3
sleep 3
play_pattern_timed [g, g, p, g, r, p, g, r], 0.75, release: 3
sleep 3
play_pattern_timed [g, r, s, r, g, p, g, r], 0.75, release: 3
sleep 3
play r, release: 7
sleep 2
play_pattern_timed [n0, s, n0, s], 0.5, release: 3
end
define :antara do
sleep 3
play_pattern_timed [r, r, g, r, g, r, s, r], 0.5, release: 3
sleep 3
play_pattern_timed [g, r, r, g, r, r, g, r], 0.5, release: 3
sleep 3
play_pattern_timed [g, p, g, r, g, p, g, r], 0.5, release: 3
sleep 3
play_pattern_timed [s, s, r, g, r, g, r, g], 0.5, release: 3
sleep 3
play_pattern_timed [p, g, r, s, r, p, g, r], 0.5, release: 3
sleep 3
play n0, release: 7
sleep 2
play s, release: 7
sleep 2
end
define :ujjwala do
sleep 3
play_pattern_timed [n0, s, r, g, r, s, r, g, p, g, r, s, p, g, r, s], 0.3, release: 3
sleep 3
play_pattern_timed [r, r, g, r, g, r, s, r, g, r, s, r, g, r, s, r], 0.3, release: 3
sleep 2
play n0, release: 7
sleep 2
play s, release: 7
sleep 5
play_pattern_timed [g, p, n, s2, g, p, n, s2, g, p, n, s2, r2, g2, r2], 0.3, release: 3
sleep 2
swaras = [r, g, s, r, s, n0]
swaras.each_with_index do |swara, i|
release = i.even? ? 3 : 1
play swara, release: release
sleep 1
end
sleep 2
play_pattern_timed [s, s, s, n0, r, r, s, r, s, r, n0, s, n0, s], 0.4, release: 3
sleep 2
play n0, release: 7
sleep 5
play s, release: 7
sleep 5
end
define :santosha do
play_pattern_timed [
s, r, n0, s, r, g, r, s, r, n0, s, n0, s, g, r, s, r, g, p, g, r, s, n0, s, r,
s, n0, p0, g0, r0, g0, p0, n0, s, g0, p0, n0, s, p0, n0, s, p0, n0, s, n0, s, n0, s,
r, g, r, g, r, g, r, g, p, g, r, g, p, g, r, g, p, n, r, g, p, n, g, p, n, s2, s2, s2,
n, s2, s2, s2, n, s2, s2, s2
], 0.4, release: 3
sleep 2
play s2, release: 7
sleep 5
end
with_fx :reverb do
live_loop :rho do
sample :bass_trance_c, amp: 0.3
sleep 0.2
end
maya
antara
ujjwala
santosha
maya
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment