Difference between revisions of "Mmc-august-2012/Lab3"

From CCRMA Wiki
Jump to: navigation, search
(OpenGL bootup)
Line 3: Line 3:
  
 
== OpenGL bootup ==
 
== OpenGL bootup ==
Create a new single-view application. Add <tt>MoAudio</tt> as before. Now, we will integrate code from the aptly titled "graphicsStuff" ([https://github.com/downloads/markcerqueira/mobile-music/graphicsStuff.zip download here]).
+
Create a new single-view application. Now, we will integrate code from the aptly titled "graphicsStuff" ([https://github.com/downloads/markcerqueira/mobile-music/graphicsStuff.zip download here]). Add all of the files in graphicsStuff to the project. Also, you will need to add <tt>GLKit.framework</tt> and <tt>OpenGLES.framework</tt> to the project, by opening "(Project Name)" in the left sidebar, then "Targets - (Project Name)", then "Build Phases", then "Link Binary With Libraries".
 +
 
 +
Also add <tt>MoAudio</tt> as before, along with <tt>CoreAudio.framework</tt> and <tt>AudioToolbox.framework</tt>. Note that, instead of putting

Revision as of 17:09, 14 August 2012

Lab 3 - Sound Flares

In this lab, we will experiment with interaction between real-time sound and graphics using OpenGL. The goal is to build a graphical world inhabited by "flares". These graphical particles can be flung around using multitouch, and make sound when they collide with the walls of their world (which coincide with the sides of your phone's screen).

OpenGL bootup

Create a new single-view application. Now, we will integrate code from the aptly titled "graphicsStuff" (download here). Add all of the files in graphicsStuff to the project. Also, you will need to add GLKit.framework and OpenGLES.framework to the project, by opening "(Project Name)" in the left sidebar, then "Targets - (Project Name)", then "Build Phases", then "Link Binary With Libraries".

Also add MoAudio as before, along with CoreAudio.framework and AudioToolbox.framework. Note that, instead of putting