• 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
Leisurely processing of incomming MIDI data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Leisurely processing of incomming MIDI data


  • Subject: Leisurely processing of incomming MIDI data
  • From: "Paul Swearingen" <email@hidden>
  • Date: Thu, 31 Mar 2005 12:49:47 -0800
  • Comment: DomainKeys Info At http://antispam.yahoo.com/domainkeys

Hi, 
 
I'm converting a PC MIDI app over to the Mac. 
 
My PC (interrupt time) read procedure grabs the midi data and sends it to a
circular buffer.
 
Then, I post a message to the main event loop, and process my MIDI data,
which can take quite a lot of time, since my MIDI processing is fairly extensive,
but that's ok, and it all works.  Here I keep looping through the buffer until it's
exhausted.
 
Should I do the same type of thing on a Mac?  Before I start coding I want to know the
best direction to go.
 
Perhaps the MIDIPacketLists essentially act as buffers so I can eliminate my circular buffers?
 
If so, it seems like I need to use many lists, and cycle through them.
 
What I don't understand is the mechanism whereby I can grab data quickly, then process it
at my leisure -- I'm using MyReadProc from the echo example -- and it's working fine.
 
 ...and straight C.
 
The read proc is a high priority thread, and not even the thread of my program, -- I've read (red)
I need to be fast during this routine. 
 
I've read Robert and Kurt's messages, lately, and that helps a little.  It seems like there should
be a simple way to do this by posting messages, perhaps???
 
I searched the Mailing lists for MyReadProc, it's mostly about Obj C.
 
Thank you for any consideration,   Paul Swearingen,  San Jose CA  408-258-0233
 


 
 
 _______________________________________________
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

  • Follow-Ups:
    • Re: Leisurely processing of incomming MIDI data
      • From: Kurt Revis <email@hidden>
  • Prev by Date: Audio Developer Contractors Wanted
  • Next by Date: Re: MIDISend output from with my program...
  • Previous by thread: Audio Developer Contractors Wanted
  • Next by thread: Re: Leisurely processing of incomming MIDI data
  • Index(es):
    • Date
    • Thread