Re: Noob Questions
Re: Noob Questions
- Subject: Re: Noob Questions
- From: Jens Alfke <email@hidden>
- Date: Tue, 8 Jan 2008 11:26:10 -0800
On 8 Jan '08, at 10:51 AM, Matt Mashyna wrote:
So, what I *think* I want to do is use Core Audio to get input from
an instrument, use pitch detection to figure out if the note is
close enough to the note that should be played and tell the user
that it was correct or incorrect.
...
I don't want to output audio, I want to get an audio stream,
analyze it and give feedback to the user about it. It doesn't seem
to really fit in as an Audio Unit but maybe I just don't get it.
The pipeline doesn't have to output audio; it can write the samples to
a file, or the network, or just analyze them and throw them away, as
you want to do.
Probably the easiest thing to get started with would be the new
AudioQueue API in Leopard (10.5.) It'll let you read audio samples
from a sound input pretty easily -- you register a callback that takes
a buffer of samples as a parameter, and CoreAudio will call it
periodically. Look at:
/Developer/Examples/CoreAudio/SimpleSDK/AudioQueueTools/aqrecord.c
--Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden