We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Just interested to know if the use of ScriptProcessorNode is possible, or if there is another way..? I can't where it might be in the sound library reference.
In java mode I can create data buffers and simply write to a buffered line etc., and similarly for android using AudioTrack(), so can something similar be done in p5.js sound library? I would like to port some things I am doing, but heavily rely on having full control of the audio data.
Many thanks Mark
Answers
Just a notice: You've chosen the wrong category. JavaScript Mode is based on the PJS framework:
http://ProcessingJS.org/reference/
JS offers the ArrayBuffer. Dunno whether it's what you're looking for though:
https://developer.Mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
p5.sound library:
http://p5js.org/reference/#/libraries/p5.sound
@GoToLoop Ok sorry for that.
I couldn't find any obvious access to buffers in the p5sound reference so that's whay I asked. ArrayBuffer I will look at.
Thanks, Mark