• 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: [coreaudio] Re: CoreMIDI question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coreaudio] Re: CoreMIDI question


  • Subject: Re: [coreaudio] Re: CoreMIDI question
  • From: robert <email@hidden>
  • Date: Sun, 28 Apr 2002 23:24:07 +0200
  • Mail-followup-to: email@hidden

>>I'm toying with the idea of a small application consisting of a BPM
>>counter which drives a virtual MIDI source sending MIDI Clock messages
>>(the 0xF8 message in the MIDI protocol).
>
>If I were you, I would change your program around so that it uses
>MIDISend() to send to endpoints, instead of being a virtual source.

Well, I was actually mistaken in thinking I needed a virtual source. Some
code I have lying around created a source, but didn't actually use it :)
The MIDI messages were sent with MIDISend() anyway.

>* usleep(). Ignore the warnings about setitimer() in the man page, since
>they are completely wrong--Darwin doesn't actually use that method.

So I notice from its code :) Too bad nanosleep (on which usleep is based)
uses fprintf to print errormessages; stuff like that doesn't rate high
on my nice-code counter I'm afraid. But the implementation itself seems
something to look into!

>Note that you will pretty much never wake up exactly when you want--the
>Mac OS X scheduler is just not that exact (it's not a real-time OS). So
>you need to be prepared for a fair amount of variance.

Having a Unix-background, I'm well aware of this, but thanks for pointing
it out :)

>There's my brain dump--I hope it helps and was not overwhelming.

Nope, lots of usable info! Thanks :)

robert
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [coreaudio] Re: CoreMIDI question
      • From: Kurt Revis <email@hidden>
References: 
 >CoreMIDI question (From: robert <email@hidden>)
 >Re: CoreMIDI question (From: Kurt Revis <email@hidden>)

  • Prev by Date: Re: CoreMIDI question
  • Next by Date: Soundfont sf2 support
  • Previous by thread: Re: CoreMIDI question
  • Next by thread: Re: [coreaudio] Re: CoreMIDI question
  • Index(es):
    • Date
    • Thread