Mauro Braunstein
Mauro Braunstein

Reputation: 233

General tutorial on OS X audio programming

I would like to do some fairly simple audio programming on OS X (using Lion and Xcode 4.3) -- synthesizing tones with given frequencies, mainly. Trouble is, Apple's documentation on the subject is way too high-level for my current knowledge of the subject. I've searched for weeks now for something that will get me started, to no avail.

Does anyone know of some Core Audio basic tutorial, or even some sample code, that will help me do fairly simple Core Audio tasks so that I can progress to understanding the Apple documentation?

Upvotes: 2

Views: 3236

Answers (2)

ezekielDFM
ezekielDFM

Reputation: 1977

If you are looking to synthesize audio fairly easy, you are going to want to use a 3rd party library. Two possible solutions are FMOD and SuperCollider.

The pros and cons between the two are really that supercollider runs as a server that you can connect from app as a client and FMOD is compiled into an app and uses core audio to synthesize the sound. FMOD is clearly the choice if you are planning on distributing this app. SuperCollider also has it's own language that you'd have to learn the basics of to start tailoring your sounds synthesis. Here are some links:

FMOD:

FMOD Downloads (Comes with a bunch of sample code)

Super Collider:

SC Server Download

Sine Wave Generator Sample App

Great source of SC scripts and examples

Upvotes: 1

spring
spring

Reputation: 18497

I would suggest the book Learning Core Audio There is also sample code from the book at that site.

Upvotes: 4

Related Questions