custom-audio-node
Create your own AudioNodes with AudioParams for using with the Web Audio API.
Install
$ npm install custom-audio-node
API
var createAudioNode =
createAudioNode(input, output, params)
Specify the input and output nodes to wrap into a single audio node.
params: automatable AudioParams
var extendTransform = var audioContext = var input = audioContextvar output = audioContext // add the transform method var decimalFrequencyParam = inputfrequency input { var min = Math/Math var max = Math/Math var range = max-min return Math} var customNode = customNode
TODO
- param.value should return the curve value at current time not the final value
- params currently cannot be connected to from another audioNode (modulate) e.g.
node.connect(otherNode.frequency)