Created
February 29, 2016 01:58
-
-
Save shawngraham/7ea86a33471acaaa5063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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