Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Using HTML5 Audio as a p5.sound input #238

Open
benjaminleonard opened this issue Apr 3, 2016 · 0 comments
Open

Using HTML5 Audio as a p5.sound input #238

benjaminleonard opened this issue Apr 3, 2016 · 0 comments

Comments

@benjaminleonard
Copy link

I'm not sure it warrants creating another example since it's not that complicated to set up but I thought I'd mention it since it took me a while to figure out that it was possible to use a HTML5 source as an input aka:

audio = p.select('#audio');
analyzer = new p5.Amplitude();
analyzer.setInput(audio);

It's especially useful in cases like mine where a file is too large to work well with loadSound().

Perhaps a note in the setInput reference page?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant