Hi! I made this little game for kids for the Smithsonian in Panama to teach about FFT functions and how scientists use spectrograms to identify animals in audio. But it doesn’t work on safari or chrome on iphones or ipads. I have a $200 USD bounty on if someone can fix it.
I originally made it in Openprocessing, but then downloaded all the code to run off this github where the Smithsonian page kind of streams an embedded iframe on their page.
It uses the p5.sound library to get microphone audio and process audio samples to create FFT visualizations on the fly. I am guessing that might be around where the trouble lies.
Let me know if you are interested in chasing the bounty!
Taking a quick peek, it looks like the game creates many canvases (I counted almost 40). Maybe you could fix the problem by not loading them all at once?
Yeah, maybe, I don’t know what’s causing it. That would require more thorough troubleshooting.
No, I can see the splash screen and start button, but nothing happens when I touch it.
No, the out of memory problem has nothing to do with the audio. You may have a problem with audio as well, hard to tell until the memory issue is resolved.
I’m using the Web Inspector feature to access the iOS JavaScript console remotely, from my laptop. If you don’t have access to a machine running macOS, you have to rely on another solution, like this third party browser (I haven’t tried it myself). Eruda is another one I haven’t tried.
There’s seems to be a handful of alternatives out there if you search for iOS javascript console or similar.