• 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: MusicSequence CAShow statement and beats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MusicSequence CAShow statement and beats


  • Subject: Re: MusicSequence CAShow statement and beats
  • From: Doug Wyatt <email@hidden>
  • Date: Mon, 27 Feb 2006 14:14:46 -0800

As you know, a MIDI file's time units are the PPQ in the MThd header.

MusicSequence uses beats as floating point numbers, so it uses the PPQ in making that translation from fractions of a beat to floating point beats when reading a MIDI File.

MusicSequence does not expose the original file's PPQ, which is especially unfortunate if you want to modify the file and write it back out at the same PPQ as the original, since you get to/have to specify a PPQ when saving it.

Please feel free to write a bug.

Doug

On Feb 27, 2006, at 7:55, Ian OKeeffe wrote:
Me again!

CAShow seems to print out a MusicSequence of a MIDI file showing beats, how can I get at this beat information directly? If it can isolate beats, it must be able to get at the Division statement in the MThd header (i.e. MThd 1 1 120).

If anyone has any code examples they would be much appreciated.

Kind regards,

ian0

-- Doug Wyatt Core Audio, Apple

_______________________________________________
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


References: 
 >MusicSequence CAShow statement and beats (From: Ian OKeeffe <email@hidden>)

  • Prev by Date: Re: An alternative view of "Groups, parts and multi-timbrality"
  • Next by Date: Re: Recognizing iSight as audio input device?
  • Previous by thread: MusicSequence CAShow statement and beats
  • Next by thread: Re: MusicSequence CAShow statement and beats
  • Index(es):
    • Date
    • Thread