Noodling in pentatonic Em ( Thank You Tetsuo )

midi_number=[:r]
for just_number in 1..96
  midi_number[just_number] = hz_to_midi(11*just_number)
end

chord_note_1 = [16,24,18,24]
chord_note_2 = [24,18,27,18]
notes = [24,27,30,36,40,48]
percussion = [2,0,1,1,4,0,1,1]

loop do
  for x in 0..3
    play midi_number[chord_note_1[x]],
      sustain: 1.6, release: 0,         amp:  0.5
    play midi_number[chord_note_2[x]],
      sustain: 1.6, release: 0,         amp:  0.5
    for y in 0..7
      note_select =  choose([0,0,1])*(1-y%2)
      play midi_number[96],
        release: 0.01,                  amp:  percussion[y]/100.0
      play midi_number[choose(notes)],  amp:  note_select
      sleep 0.2
end; end; end