• 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: William Stewart <email@hidden>
  • Date: Mon, 12 Sep 2005 13:01:01 -0700

This is a feature.

The MusicSequence API can express a range of events (User events, Parameter events/ramps, extended note events) that are beyond the current ability to express using MIDI. So, saving a music sequence with these events in it to a midi file, will just skip over these events (we can't express them in a midi file).

At this stage we haven't defined a generic way to save/restore music sequences - but don't despair! It shouldn't be too hard to read/write a custom format for this yourself. There are numerous ways you could decide to do this - binary or text formats

Bill

On 12/09/2005, at 9:04 AM, Craig Hopson wrote:

I tried to send this on Friday, but alas, it was over the size limit. So, I am posting in installments; this is the first of four...

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?

Here are the Save & Open functions:

- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
{
    [ self buildSequence ];

    CAShow( _curSequence );        // for debugging

CFDataRef dataRef;
if( MusicSequenceSaveSMFData( _curSequence, &dataRef, 480 ) != noErr )
[ NSException raise:@"Document::dataOfType" format:@"Cannot save SMF data." ];


    return (NSData *)dataRef;
}


*************************************************** Craig Hopson, Managing Partner Red Rock Software, Inc. 10 West Broadway, Suite 850 Salt Lake City, UT 84101 office: 801.322.4322 x103 cell: 801.949.3526 http://www.redrocksw.com


_______________________________________________ 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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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: 
 >Where did my event, part I (From: Craig Hopson <email@hidden>)

  • Prev by Date: Re: AudioFileComponents
  • 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