Create a gist now

Instantly share code, notes, and snippets.

Embed
なるーらぼ入門講座「音楽をプログラミングしよう」第8回 - ライブループしよう
# Welcome to Sonic Pi v2.9
use_bpm 132
live_loop :nalulabo do
with_fx :echo, mix: 0.8 do
use_synth :prophet
cue :tick
play chord(:e4, :minor).choose, attack: 0,release: 0.2, cutoff: rrand(80, 100)
sleep 0.75
play chord(:e4, :minor).choose, attack: 0,release: 0.1, cutoff: rrand(80, 100)
sleep 0.75
play chord(:e4, :minor).choose, attack: 0.1,release: 0.1, cutoff: rrand(80, 100)
sleep 0.75
play chord(:e4, :minor).choose, attack: 0,release: 0.2, cutoff: rrand(80, 100)
sleep 0.75
play chord(:e4, :minor).choose, attack: 0,release: 0.1, cutoff: rrand(80, 100)
sleep 1
end
end
live_loop :bass do
stop
sync :tick
with_fx :reverb, mix: 0.1 do
with_fx :distortion, mix: 0.6 do
use_synth :tb303
play chord(:e1, :minor).choose, attack: 0.1, release: 0.6, cutoff: rrand(80,100), reso: rand()
end
end
end
live_loop :drum do
stop
sync :tick
with_fx :reverb, mix: 0.1 do
with_fx :distortion, mix: 0.4 do
4.times do
sample :bd_haus
sleep 1
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment