Mmc-august-2012/Lab2

From CCRMA Wiki
Revision as of 00:04, 13 August 2012 by Spencer (Talk | contribs) (Created page with '= Lab 2 - Sampler = In this lab we will create a live audio sampler. This sampler will be able to record short snippets of audio input into a sample file, and then play these fil…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Lab 2 - Sampler

In this lab we will create a live audio sampler. This sampler will be able to record short snippets of audio input into a sample file, and then play these files back when triggered.

MonoSample

Using the techniques learned in class today, build an app that can record a short snippet input from the microphone and replay this snippet. Start by creating a new "single-view application" and add MoAudio as before. You will also want to use the FileWvIn and FileWvOut classes in Stk.

Come up with a UI and audio code to record a sample, play it back some number of times, and re-record the sample as desired. Try to structure your code modularly -- for example, create a C++ class for the Sample that handles all of the logic of initializing, recording, and playing the sample. You'll be glad you did this in the next part of the lab.

Multi Sample

Extend MonoSample to record more than one sample -- anywhere between 4 and 9 samples is good, depending on how you much you can fit into the UI without clutter (the screen size of your device in will come into play here).