aubio 0.3.2
Typedefs | Functions
scale.h File Reference

Vector scaling function. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct _aubio_scale_t aubio_scale_t
 scale object

Functions

aubio_scale_tnew_aubio_scale (smpl_t flow, smpl_t fhig, smpl_t ilow, smpl_t ihig)
 create a scale object
void del_aubio_scale (aubio_scale_t *s)
 delete a scale object
void aubio_scale_do (aubio_scale_t *s, fvec_t *input)
 scale input vector
void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig)
 modify scale parameters after object creation

Detailed Description

Vector scaling function.

This object, inspired from the scale object in FTS, the jMax engine, scales the values of a vector according to an affine function defined as follow:

$ y = (x - ilow)*(ohig-olow)/(ihig-ilow) + olow $


Function Documentation

void aubio_scale_do ( aubio_scale_t s,
fvec_t input 
)

scale input vector

Parameters:
sscale object as returned by new_aubio_scale
inputvector to scale
void aubio_scale_set ( aubio_scale_t s,
smpl_t  ilow,
smpl_t  ihig,
smpl_t  olow,
smpl_t  ohig 
)

modify scale parameters after object creation

Parameters:
sscale object as returned by new_aubio_scale
olowlower value of output function
ohighigher value of output function
ilowlower value of input function
ihighigher value of output function
void del_aubio_scale ( aubio_scale_t s)

delete a scale object

Parameters:
sscale object as returned by new_aubio_scale
aubio_scale_t* new_aubio_scale ( smpl_t  flow,
smpl_t  fhig,
smpl_t  ilow,
smpl_t  ihig 
)

create a scale object

Parameters:
flowlower value of output function
fhighigher value of output function
ilowlower value of input function
ihighigher value of output function
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines