Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- base = 16.35
- live_loop :bass do
- play hz_to_midi(base)
- sleep(2)
- end
- base_notes=[2*base,3*base,4*base]
- live_loop :base_music do
- play hz_to_midi(base_notes[0])
- sleep(0.75)
- play hz_to_midi(base_notes[1])
- sleep(0.75)
- play hz_to_midi(base_notes[2])
- sleep(0.5)
- end
- middle_base_notes=[4*base,6*base,8*base]
- live_loop :middle_base_music do
- play hz_to_midi(middle_base_notes[0])
- sleep(0.75)
- play hz_to_midi(middle_base_notes[1])
- sleep(0.75)
- play hz_to_midi(middle_base_notes[2])
- sleep(0.5)
- end
- middle_melody_notes=[8*base,9*base,10*base,11*base,12*base,13*base,14*base,15*base,16*base]
- notes = [16*base,17*base,18*base,19*base,20*base,21*base,22*base,23*base,24*base,25*base,26*base,27*base,28*base,29*base,30*base,31*base,32*base]
- length = [0.25,0.5,1,2]
- live_loop :middle_melody do
- play hz_to_midi(middle_melody_notes[rrand(0,8)])
- sleep(length[rrand(2,3)])
- play hz_to_midi(middle_melody_notes[rrand(0,8)])
- sleep(length[rrand(2,3)])
- play hz_to_midi(middle_melody_notes[rrand(0,8)])
- sleep(length[rrand(2,3)])
- play hz_to_midi(middle_melody_notes[rrand(0,8)])
- sleep(length[rrand(2,3)])
- play hz_to_midi(middle_melody_notes[rrand(0,8)])
- sleep(length[rrand(2,3)])
- play hz_to_midi(middle_melody_notes[rrand(0,8)])
- sleep(length[rrand(2,3)])
- play hz_to_midi(middle_melody_notes[rrand(0,8)])
- sleep(length[rrand(2,3)])
- end
- live_loop :melody do
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- play hz_to_midi(notes[rrand(0,16)])
- sleep(length[rrand(0,2)])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement