Skip to content

Instantly share code, notes, and snippets.

@nbqx
Created February 18, 2014 15:12
Show Gist options
  • Save nbqx/9072836 to your computer and use it in GitHub Desktop.
Save nbqx/9072836 to your computer and use it in GitHub Desktop.
require 'scissor/echonest'
s = Scissor(ARGV.shift)
Scissor.join(
s.bars.map do |bar|
segment = bar / 32
Scissor.join(segment.each_slice(4).to_a.map{|x| x.sort_by{rand}}.flatten)
end
) >> 'out.mp3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment