pizzicato
pizzicato copied to clipboard
Incompatible with other js audio libs...
The shim makes the library incompatible with other audio libraries ... Another way would be needed to solve this need.
...
/* In order to allow an AudioNode to connect to a Pizzicato
Effect object, we must shim its connect method */
var gainNode = Pizzicato.context.createGain();
var audioNode = Object.getPrototypeOf(Object.getPrototypeOf(gainNode));
var connect = audioNode.connect;
audioNode.connect = function(node) {
var endpoint = Pz.Util.isEffect(node) ? node.inputNode : node;
connect.call(this, endpoint);
return node;
};
...
Fixed in this pull request => #135