We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am in the process of adapting a music visualizer prototype from vanilla Processing to p5.js, and assets clearly work differently in a browser app than in a desktop app. Basically, I need to determine the best way to allow a user to use their own audio selections with my visualizer, and I'd rather ask some knowledgeable individuals before I waste a lot of time trying to get the p5.sound/Web Audio API to do something it's not meant to do.
I need an audio source that I can plug into an FFT object. As far as I see it, there are three approaches available:
(1) Acquire a reference to the output of the client's soundcard (audio monitor), akin to an
AudioOutput object in Minim, and analyze that, allowing the user to play music in their preferred way and simply pull up the visualizer in a new window. If possible, this would be preferable;
(2) Load an audio asset from the user's hard disk into the browser environment;
(3) Accept a URL to a web-based audio asset.
I'm not asking for a complete solution or anything, but if someone could point me in the right direction, perhaps towards some relevant reference docs, I'd be very grateful.