Skip to content

Instantly share code, notes, and snippets.

@hopbit
Created July 2, 2016 15:40
Show Gist options
  • Save hopbit/64dd66bfb6b71f025b9bad918e1c0a46 to your computer and use it in GitHub Desktop.
Save hopbit/64dd66bfb6b71f025b9bad918e1c0a46 to your computer and use it in GitHub Desktop.
Simple live loop presenting panning option in Sonic Pi
live_loop :left_right do
curr_pan = tick % 2 == 1 ? 1 : -1
sample :loop_amen, pan: curr_pan
sleep sample_duration(:loop_amen)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment