Re: *Simple* Musical note generation APIs?
Re: *Simple* Musical note generation APIs?
- Subject: Re: *Simple* Musical note generation APIs?
- From: Tomas Zahradnicky <email@hidden>
- Date: Sat, 28 Dec 2002 00:22:22 +0100
I'm trying to figure out a way to have an application play a
specified musical note for a specified duration using a specified
voice, hopefully something linked into the built-in Midi stuff built
into QuickTime. I'm not trying to play complex sequences,
synthesize sounds, or anything as complex as that -- just play a
note when somebody presses a "piano key" button on the screen. I've
looked at both CoreAudio and MusicKit, but both of those seem WAY
too much, like cutting butter with a chainsaw. Does anybody have
any suggestions for a more approachable technique?
Hello Dan,
QuickTime has a component called Note Allocator which does exactly
that. You allocate a MIDI channel with it and then issue "play note
at given pitch with given length" type commands. The implementation
of "piano" keys should be simple with it. I think there already is
one in QuickTime sample code. Look at Apple Sample code or QuickTime
API docs. There's an example of C function that plays some notes
(PlaySomeNotes) :-).
Happy New Year!
-Tomas
--
# Tomas Zahradnicky, Jr
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.