• 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: Where did my event, part I
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where did my event, part I


  • Subject: Re: Where did my event, part I
  • From: Doug Wyatt <email@hidden>
  • Date: Mon, 12 Sep 2005 14:28:14 -0700

[resending, this hasn't shown up on the list as of 2 hours after I sent it...]

On Sep 12, 2005, at 9:04, Craig Hopson wrote:
In our Cocoa app we create custom tracks in a music sequence and populate them with our own events. At runtime this works quite well. However, now I'm trying to implement Save/Open. As you can see from the log output below, the basic track information persists (MIDI track name event) but the custom UserEvents do not. Is this a bug or am I missing something in my code?

MusicPlayer's user events don't get written or read from MIDI Files.

You can however use a sequencer-specific meta event:

FF 7F <var-len> <data>

By convention the first four bytes of the event's data should be a "unique" identifier for your app.

(Arguably it would be natural for MusicPlayer to simply transform user events into sequencer-specific meta events when saving and restore them when opening -- you can write a Radar if you agree.)

Doug

--
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


  • Follow-Ups:
    • RE: Where did my event, part I
      • From: "Tom White" <email@hidden>
    • Re: Where did my event, part I
      • From: Craig Hopson <email@hidden>
References: 
 >Where did my event, part I (From: Craig Hopson <email@hidden>)

  • Prev by Date: Re: Where did my event, part I
  • Next by Date: Re: Where did my event, part I
  • Previous by thread: Re: Where did my event, part I
  • Next by thread: Re: Where did my event, part I
  • Index(es):
    • Date
    • Thread