In this 2-hour iOS workshop, we will create a simple application for creating binaural beats. There will be a super quick introduction to binaural beats, followed by an introduction to iOS development and Core Audio, the foundational framework for digital audio on iOS and OS X. We will touch on creating interfaces and classes, as well as walk through some fundamental concepts for generating digital audio. Having taken ICM should be more than enough to keep up. Having a iOS Developer Account is required to build the application on your phone.
-
Send Marlon (me42@nyu.edu) your email address.
-
In the email, tell them what kind of device you have (iPhone, iPod or iPad), and the device's UDID. Instructions on finding your devices UDID can be found here:
http://www.macworld.co.uk/how-to/iphone/how-find-out-your-iphone-or-ipad-udid-3530239/
- Download and install the latest version of XCode, and try to build an blank example project on your iOS device
During the workshop, we're going to work from a template project, where you can "fill in the blanks" as we we walk through building the application. The instructions below outline what we will be doing.
- Download/clone repo
- Add CoreAudio Framework
- Create our SLAudioController Class
- Based on NSObject
- Import AudioUnit Headers
-
Describe and create our AudioUnit
-
Create our oscillator class
-
Render our sound via sine waves
-
Create our UI and other niceties
-
http://www.cocoawithlove.com/2010/10/ios-tone-generator-introduction-to.html
-
http://stackoverflow.com/questions/12353033/ios-audio-unit-creating-stereo-sine-waves
-
http://stackoverflow.com/questions/25844415/ios-audio-unit-how-to-create-stereo-sine-waves
-
http://stackoverflow.com/questions/14466371/ios-generate-and-play-indefinite-simple-audio-sine-wave
-
http://stackoverflow.com/questions/10823322/control-mono-playback-output-with-core-audio
-
http://lists.apple.com/archives/coreaudio-api/2011/Feb/msg00069.html
-
http://stackoverflow.com/questions/22221948/use-of-undeclared-identifier-objective-c-code
-
http://publications.gbdirect.co.uk/c_book/chapter5/sizeof_and_malloc.html
-
http://www.amazon.com/Learning-Core-Audio-Hands-On-Programming/dp/032163684
-
https://github.com/openframeworks/ofBook/blob/master/chapters/sound/chapter.md