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

Using HTML5 Audio as a p5.sound input #238

Open
@benjaminleonard

Description

@benjaminleonard

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions