Title: Beispielgroove
Course: Sonic Pi - Einführung > Section: digi.komp8 Beispiel

with_fx :reverb do

 #Loop 1 - Melody

  live_loop :blade do

    use_synth :blade

    start_note = ring(53, 55, 60).tick

    my_chord = chord(start_note, :m7)

    play my_chord, release: 4

    16.times do

      play my_chord.choose, release: 0.25, amp: [0.75, 0.5, 0.25].choose

      sleep 0.125

    end

  end

end

#Loop 2 - Drum Loop

live_loop :drums do

  sample :loop_amen, beat_stretch: 2

  sleep 2

end