‘’’
############ pizza song ##############
mn=[];for jn in 1…1024
mn[jn] = hz_to_midi((5.5)*jn)
end; mn[0]=:r; use_bpm 110
c=[8,6,9,6, 6,6,9,6, 8,6,9,9, 6,6,8,6,
8,6,9,6]; m=[2,4,3,4]; o=[1,2,2]
z=[2,0,1,1,4,0,1,1]
d=[0,0,0,0,8,0,0,0]
s=[ :fm, :pluck, :pretty_bell]
e=[ 0.5, 1.0, 0.1 ]
v=[ 0.5, 0.5, 0.3 ]
for i in 0…3; play 77, release: 0.01, amp: 0.5
sleep 1; end
live_loop :percussion do
for x in 0…7
synth :noise, release: 0.1, amp: z[x]/8.0
synth :beep, note: mn[16*d[x]], release: 0.01,
amp: 0.5
sleep 0.25; end; end
use_bpm 55
live_loop :synth do
for x in 0…19
synth :dsaw, note: mn[4*c[x]], detune: 7,
sustain: 1.0, release: 0, amp: 0.06
for y in 0…3; r=rand_i(3)
synth s[r], note: mn[c[x]*m[y]*o[r]],
release: e[r], amp: v[r]
sleep 0.25; end; end; end
‘’’