re: AU Preset Data
re: AU Preset Data
- Subject: re: AU Preset Data
- From: Justin Carlson <email@hidden>
- Date: Sun, 7 Sep 2008 12:03:15 -0500
I'm looking to save out to an AU preset file a chunk of data that
describes a sequencer, like in a typical x0x 16-step sequencer. I'm
thinking one approach might be to make a heap of generic AU
parameters for each note step. Then have the AU automagically save/
load the aupreset file. Is this how Ultrabeat works?
But I'm wondering if I can just have one custom parameter, set it to
a binary chunk (being careful of the endian) and save that. Or can I
write my own aupreset file?
So any thoughts on the preferred approach. thanks.
cheers
peter
Hi Peter,
If you don't want to store individual parameters: I recommend using a
CFNumber object which stored a fixed width number (where the number's
storage size/type >= the number of steps). You'd never have to worry
about endianness or size in that case (it's handled by the framework).
It would be much like the CFData object, but you know the sequencer's
limits (max step count), so you'd save yourself from writing
architecture specific code.
J
_______________________________________________
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