next up previous contents index
Next: Related file (external) types Up: Float signals Previous: Float signals   Contents   Index

The structure Fsignal

Beginners should only focus on the first two fields of this structure:

typedef struct fsignal {
  int size;        /* Number of samples */
  float *values;   /* The samples */

  float scale;     /* Scale of the signal */
  float shift;     /* shifting of the signal with respect to zero */
  float gain;      /* Gain of the signal given by the digitalization process */
  float sgrate;    /* Sampling rate given by the digitalization process */
  int bpsample;    /* Number of bits per sample for audio drivers */

  char cmt[mw_cmtsize]; /* Comments */
  char name[mw_namesize]; /* Name of the image */
  /* Defines the signifiant part of the signal : */
  int firstp;     /* index of the first point not aff. by left side effect */
  int lastp;      /* index of the last point not aff. by right side effect */
  float param;    /* distance between two succesive uncorrelated points */

} *Fsignal;

The field size gives the number of samples loaded in the signal. Do not change by yourself the content of this field: the size of the signal has to be modified using functions of the library only (see section 4.1.3 page [*]).

The field values is an array which gives the value of each sample: if signal is a variable of Fsignal type, signal->values[0] is the first sample of the signal, signal->values[1] the second, and so one up to the last sample signal->values[signal->size-1].

mw 2004-05-05