Csound Csound-dev Csound-tekno Search About

[Cs-dev] Some questions about SF_INSTRUMENT

Date2005-11-03 17:31
FromIstvan Varga
Subject[Cs-dev] Some questions about SF_INSTRUMENT
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

Date2005-11-03 23:31
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] Some questions about SF_INSTRUMENT
There are changes happening in the libsndfile developers.  You may
remember I asked if anyone was interested, and in the sound of the
silence I joined the developers.  We are part-way through and version
1-0-13 will be different wrt looping. Just wait a bit!
==John ffitch


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