Guest User

Untitled

a guest
Jun 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. def measures
  2. bars = patterns.map{|p| p.body.split(//)}
  3. bars = bars.map{|b| b[0] = "<span class=\"mark\">#{b[0]}</span>"; b}
  4. bars = bars.map{|b| b * (resolve / (b.length/2))}
  5. measures = bars.map{|b| b.enum_for(:each_slice, 90 - (90 % (patterns[0].time * 2))).to_a}
  6. measures.transpose
  7. end
Add Comment
Please, Sign In to add comment