• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: *Simple* Musical note generation APIs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >*Simple* Musical note generation APIs? (From: Dan Wood <email@hidden>)

  • Prev by Date: Re: Localization problems on UFS volumes
  • Next by Date: Newbie Question regarding Tutorials and Project Builder
  • Previous by thread: *Simple* Musical note generation APIs?
  • Next by thread: Re: *Simple* Musical note generation APIs?
  • Index(es):
    • Date
    • Thread