Guest User

Untitled

a guest
Dec 1st, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Hey im trying to easily define recursive music structures and im a little stuck.
  2. given a beat number that increments every note, a root (say 50), and a pattern (say [0 -2 -4 -2]), and a list of layers (say (4,16))
  3.  
  4. i wanna iterate over the pattern every 1 so it completes the cycle every 4: 0, -2, -4, -2, 0 etc...
  5. and also every four so it completes the cycle every 16: 0 0 0 0 -2 -2 -2 -2 etc..
  6.  
  7. so to isolate the question I lets focus on 16: what mathmatically would represent getting 0 0 0 0 1 1 1 1 2 2 2 2 (the indexes) at certain beats.
  8.  
  9. my best guess was floor((beat modulo 16)/4) but dosnt work obviously
Advertisement
Add Comment
Please, Sign In to add comment