Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created October 12, 2021 17:51
Show Gist options
  • Save nicoder/614f97b16f9e867eeb69ef68b2a006ee to your computer and use it in GitHub Desktop.
Save nicoder/614f97b16f9e867eeb69ef68b2a006ee to your computer and use it in GitHub Desktop.

Revisions

  1. nicoder created this gist Oct 12, 2021.
    15 changes: 15 additions & 0 deletions 20211012_sonic_pi.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    live_loop :a do
    with_fx :reverb do
    play 60, pan: -1
    play (ring 60, 62, 65, 60).stretch(4).tick, pan: 1
    end
    sleep 1
    end

    live_loop :b do
    #sync :a
    with_fx :distortion, mix: rrand(0, 1) do
    play 72 + 7, release: 0.2, amp: rrand(0.3, 1)
    end
    sleep 0.125
    end