| Having a look at the pre-release version of libsndfile, there are
a few things that are not obvious about the new interface for
instrument information.
typedef struct
{ int gain ;
What unit is this in ? I would assume decibels, as an integer type
does not make much sense for a simple amplitude scale. However, it
appears that wav.c always sets it to 1, which is somewhat confusing.
char basenote ;
Is it not possible to have a resolution higher than MIDI notes ?
At least the AIFF format does have tuning information in cents, and
losing that makes the interface less useful.
char velocity_lo, velocity_hi ;
char key_lo, key_hi ;
int loop_count ;
struct
{ int mode ;
unsigned int start ;
unsigned int end ;
unsigned int count ;
} loops [16] ; /* make variable in a sensible way */
What exactly do these loop counts mean ?
} SF_INSTRUMENT ;
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |