bap
bap copied to clipboard
Monophonic slot voice
Should be able to define a slot as monophonic, i.e. placing the slot in its own choke group, allowing only a single voice.
Hello.
Willing to help on this. I've tried several libraries / methods (tone.js, raw webaudio API, bap) to simulate how I work with samples. Not only with one sample, but having all chops of a sample in its own group. So far, no luck with it. I always get some clicks when stopping a source node to start a new one.
If you have any clue or idea I'd appreciate to hear it. Perhaps not to include it in Bap (I'm here 2 years late and it's likely you're not interested in new PRs) but for implementing it in WebAudio anyway.
Long live the Boom Bap!!
Hey, would be great to see a PR with this! I would probably approach it by letting slots + layers be assigned to a group, and when starting a layer (https://github.com/adamrenklint/bap/blob/master/lib/Layer.js#L38) check if there any active layers in the same group, and if so, choke them.