Advertisement

07.09.2008 at 10:05AM PDT, ID: 23551008
[x]
Attachment Details

Best way to play event driven music notes on OS X? (not MIDI)

Asked by BenSlade in Apple Programming, Computer Sound Cards, Mac OS X

Tags: Mac, OS X

This is a high level "what's the best architecture" sort of question:

I'm looking to schedule individual notes of music to play at specific times and receive the equivalent of a callback (or interrupt) when the note starts playing (so code can calculate the next note(s) to play).

I can sort of/maybe do this with Java MIDI "meta" events (see http://www.jsresources.org/faq_midi.html#add_text_meta), but the MIDI architecture is fundamentally the opposite of what I want to do.  Ie. MIDI plays a predefined set of notes and I want to dynamically calculate the notes to play based on recent events.

It would be nicer if the API had some feature to play a note at a specific time, but I can program my own timer interrupts if that's necessary.  

So to summarize:

* How can I easily play a single note without using the MIDI infrastructure (maybe using a H/W specific synth API?)
* It would be nice if I could find an API that would play the note at a specific time and has a callback/interrupt feature that gets invoked when the note is played.

Thanks
Ben Slade
Chevy Chase, MD
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.23.2008 at 05:34PM PDT, ID: 22075229

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 09:16AM PDT, ID: 22080800

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.26.2008 at 04:53AM PDT, ID: 22094692

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.26.2008 at 12:29PM PDT, ID: 22095958

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apple Programming, Computer Sound Cards, Mac OS X
Tags: Mac, OS X
Sign Up Now!
Solution Provided By: BenSlade
Participating Experts: 0
Solution Grade: A
 
 
[+][-]07.26.2008 at 03:50PM PDT, ID: 22096537

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628