alemangui / pizzicato

Library to simplify the way you create and manipulate sounds with the Web Audio API.
https://alemangui.github.io/pizzicato/
MIT License
1.66k stars 130 forks source link

[Question] Integrate with beet.js #151

Open pr1ntr opened 3 years ago

pr1ntr commented 3 years ago

I am looking to use beet.js for a musical project. But I like the effects pizzicato and am wondering if its possible to use pizzicato with an audiocontext that is being used by beet,js. Something like beet.js -> pizzicato.js. Thanks.

Catsvilles commented 3 years ago

@pr1ntr Should be possible. As I can see from beet.js examples you have to create a new context anyway.

var context = new AudioContext(); var beet = new Beet({ context: context }); Just set Pizzicato.context = context

And then you can use them together with one shared context :)