next up previous contents
Next: Harmonic Filters calculation Up: Changes in model Previous: Changes in model   Contents

New structure audioparam_t

If we want to do a matching on audio signal, we have to store some audio parameters for each note of the score. We need to add members to the scorenote_t structure to store these values. This has been realised by creating a new structure audioparam_t, and including in scorenote_t a new member which is an array of audioparam_t:

typedef struct _audioparam_ /*------- */
{
  double energy;
  int harmo_filters[NUM_FILTERS][2];

} audioparam_t;
energy will be a ratio calculated from the velocity value, and harmo_filters will contain the harmonic filters values, and calculated from pitch value.



Mathieu Gilles (Betr. soltau) 2003-08-25