Skip to content

Instantly share code, notes, and snippets.

@DavidSanwald
Last active April 28, 2017 17:33
Show Gist options
  • Save DavidSanwald/7b8cd735a89d83f36fdc313477d0535b to your computer and use it in GitHub Desktop.
Save DavidSanwald/7b8cd735a89d83f36fdc313477d0535b to your computer and use it in GitHub Desktop.
Klang Blocks
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