You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It shows a graph of the sound input. You can see some details on this here: publiclab/webjack#93
On Chrome Android, the graph is drawn, the mouse-hover labeling works, and sound is received and processed, but the graph is not drawn:
It works on iOS, and in all desktop browsers I've tried. It responds to finger presses, so it's not frozen or anything. It also works in Chrome Android within the web Editor. But not when embedded in this web page AND in Chrome Android.
So frustrating! 😂
Sorry this is hard to describe. I wonder if there is something to do with the math for the graph drawing that could /conceivably/ be working differently in Chrome Android.
Any help at all appreciated! And, happy to change the title to something more descriptive, i was just at a loss ☹️ Thank you!!!
If the graph is not "drawing" (in this case more specifically, not reflecting the spectrum) I would suspect there is something unexpected going on at map(spectrum[i], 0, 255, height * 0.8, 0) and most probably to do with spectrum. Can you log what spectrum is into the console to see if it gets populated correctly? You should be able to connect Chrome on Android to Chrome dev tools on desktop to see the console output. I don't have an Android device so I cannot try it myself.
It could be that the FFT instance is using a different sound input or even hardware differences so if you can try and test it on another Android device.
@jywarren any luck logging spectrum? To be able to help, we really need a simplified code snippet that isolates the issue. Right now there are a few different functionalities put together (shape drawing, map(), mic, fft) making this very difficult to resolve. For general debugging help, the forum is the best place to post. Thanks!
Nature of issue?
Most appropriate sub-area of p5.js?
Which platform were you using when you encountered this?
Details about the bug:
I'm using this sketch, which works fine, but in an external site:
https://editor.p5js.org/jywarren/sketches/TsICFM5ZO
The site is here: https://webjack.io/examples/
It shows a graph of the sound input. You can see some details on this here: publiclab/webjack#93
On Chrome Android, the graph is drawn, the mouse-hover labeling works, and sound is received and processed, but the graph is not drawn:
It works on iOS, and in all desktop browsers I've tried. It responds to finger presses, so it's not frozen or anything. It also works in Chrome Android within the web Editor. But not when embedded in this web page AND in Chrome Android.
So frustrating! 😂
Sorry this is hard to describe. I wonder if there is something to do with the math for the graph drawing that could /conceivably/ be working differently in Chrome Android.
Any help at all appreciated! And, happy to change the title to something more descriptive, i was just at a loss☹️ Thank you!!!
The text was updated successfully, but these errors were encountered: