Advertisement
Guest User

Untitled

a guest
Nov 30th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. given a beat number that increments every note (say 33), a root (say 50), and a pattern (say [0 -2 -4 -2]), and a list of layers (say (4,16))
  2.  
  3. i wanna iterate over the pattern every 1 so it completes the cycle every 4: 0, -2, -4, -2
  4. and also every four so it completes the cycle every 16 0 0 0 0 -2 -2 -2 -2 etc..
  5.  
  6. 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)
  7.  
  8. i tried this (int (/ (mod beat (count pattern)) 4) but obviously didnt work.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement