question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

p5.sound with Microphone seems broken

See original GitHub issue

I was trying to create Audio spectrum from this Example and i’ve given the permission for microphone… the output is blank. I think AudioIn() is broken.

amp = mic.getLevel(); console.log(amp);

doesn’t seem to work either

This was the error popping up on console. image

Not working on Chrome , Edge and Firefox.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
endurance21commented, Aug 17, 2020

@itspacchu have you tried on p5web-editor? Please share the link if so, it is more easy to see that way! Thanks

0reactions
itspacchucommented, Jul 10, 2021

@itspacchu why was this closed? It is still broken in non-Chromium browsers. Here’s a better example that actually uses the latest release https://openprocessing.org/sketch/1230823/pc/SfNsbbCi

If there is a commit/merge that fixes this since the last release could you please link it?

I kinda got it working so throught it was fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

P5 Sound Library - mic input issue in Safari, firefox
sound with Microphone seems broken. I've raised Issue on Github as last one was closed. & following the previous issue can kluge a...
Read more >
Synthesizing and analyzing sound - Creative Coding
But the p5.sound library has a few more tricks up its sleeve that are worth ... A microphone works by recording air pressure...
Read more >
No mic input when using Chrome : r/p5js
https://p5js.org/examples/sound-mic-input.html ... In any case, it seems like you found a solution and I thought of giving yours a try if I ...
Read more >
Multiple Audio Inputs in p5.js
(p.s. we already got the default mic, which is the MacBook microphone, to work. What we need now is a second input from...
Read more >
P5.js Tutorial for Beginners - A SpacyCloud Live Workshop ...
The variables start off empty but then you pass the actual mic in your setup function and start it so that it actually...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found