Javascript code for a sine wave oscillator using the web audio API – embedded in this post.
This also works in mobile Safari in iOS 7. If the “stop” button doesn’t work, try reloading the page in the browser.”
play
stop
Javascript code for a sine wave oscillator using the web audio API – embedded in this post.
This also works in mobile Safari in iOS 7. If the “stop” button doesn’t work, try reloading the page in the browser.”
play
stop
Version 1.1 update to SecretSpot now available in the iOS app store.
http://zerokidz.com/secretspot/Home.html
SecretSpot was written in 2011 as a webApp using SenchaTouch 1.0 and Phonegap 0.94. Both of these frameworks have evolved to the point that the original code is no longer workable. With iOS 6, the app version of secretSpot broke. Audio was only triggering with every other touch.
Instead of upgrading javascript code, I made a few changes to the phonegap library so it would compile in iOS 7, then added new icons and splash screen files – and resubmitted the app.
One change was to alter the way that launch images get loaded during webView initialization, to prevent annoying white flashes. This version also does an extra load of the launch image – instead of just going to a black background while the webView is loading. If this ends up being too slow, then it may be better to go directly black background following initial launch image. See this post: http://stackoverflow.com/questions/2531621/iphone-uiwebview-inital-white-view
The native app runs only in portrait orientation. This is something the app has had problems with before. Something has changed in the process of detecting current orientation. Its likely to be a Phonegap issue as the Web app version works fine.
I may have a look at this bug – and apply updates to the Blob app as well. But the real solution is to upgrade to current versions of the frameworks.
This is more a documentation thing: If you don’t touch the canvas when the app starts, then there will be no sound unless you restart the app.
https://reactivemusic.net/?p=5859
Web audio API extension.
by Hongchan Choi
Dev branch: https://github.com/hoch/WAAX/tree/dev
Hongchan Choi: https://ccrma.stanford.edu/~hongchan/