Skip to content

Unable to use p5 audio library with p5 and canvas-sketch  #160

@jobarbo

Description

@jobarbo

Hi Matt, I’m currently trying to get realtime audio through p5-sound with canvas-sketch but I can’t seem to make it work. When I call for const mic = new p5.AudioIn();
It says that p5.AudioIn is not a constructor. If I add it through a require with the path, it says that p5 is undefined. I looked on the web and it seem to say that to make it work I have to add the script tag in the html but there is none in canvas-sketch file system. I was wondering if you had any tip. It does the same thing with p5.DOM. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions