Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. const loop = new Tone.Sequence(
  2. function (time, col) {
  3. const selectedPads = store.selectedPads
  4. const playingPads = selectedPads.filter(
  5. pad => pad.n === col
  6. )
  7. playingPads.forEach(pad => instrument.start(pad.m, time, 0, '1', 0))
  8. }, [ 0, 1, 2, 3, 4, 5, 6, 7 ], '8n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement