Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Polyrhythm
- def split(n)
- sections = patterns.map {|p| (p.body * (resolve/p.time)).chars.each_slice(n).map(&:join)}
- sections[0].zip(*sections[1..-1]).each do |lines|
- puts lines
- puts
- end
- end
- end
Add Comment
Please, Sign In to add comment