Last active
April 28, 2017 17:33
-
-
Save DavidSanwald/7b8cd735a89d83f36fdc313477d0535b to your computer and use it in GitHub Desktop.
Klang Blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const loop = new Tone.Sequence( | |
function (time, col) { | |
const selectedPads = store.selectedPads | |
const playingPads = selectedPads.filter( | |
pad => pad.n === col | |
) | |
playingPads.forEach(pad => instrument.start(pad.m, time, 0, '1', 0)) | |
}, [ 0, 1, 2, 3, 4, 5, 6, 7 ], '8n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment