Skip to content

Instantly share code, notes, and snippets.

@shawngraham
Created February 29, 2016 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawngraham/7ea86a33471acaaa5063 to your computer and use it in GitHub Desktop.
Save shawngraham/7ea86a33471acaaa5063 to your computer and use it in GitHub Desktop.
#require 'csv'
#data = CSV.parse(File.read("/Users/shawngraham/jesuit/jes2.csv"), {:headers => true, :header_converters => :symbol})
#figuring out how to read data in is still hit or miss for me.
live_loop :amen_break do
sample :loop_amen, beat_stretch: 2
sleep 2
end
with_fx :ring_mod do
live_loop :vortex do
#notes are one column of a topic across 19 documents. Multiplied by 100 then + 30 to arrange them around middle C (40)
notes = (ring 58, 69, 42, 42, 45, 44, 50, 53, 49, 41, 48, 49, 43, 48, 44, 49, 43, 42, 51, 69)
16.times do
play notes.choose, release: 0.1, amp: 1.5
sleep 0.125
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment