Wavetable synthesis. More...
Go to the source code of this file.
Typedefs | |
typedef struct _aubio_wavetable_t | aubio_wavetable_t |
wavetable object | |
Wavetable synthesis.
This file creates a wavetable and plays it at different frequency.
The _do
function adds the new samples to the input, and write the result as the output.
Definition in file wavetable.h.
void aubio_wavetable_do | ( | aubio_wavetable_t * | o, |
fvec_t * | input, | ||
fvec_t * | output | ||
) |
process wavetable function
o | wavetable, created by new_aubio_wavetable() |
input | input of the wavetable, to be added to the output |
output | output of the wavetable |
This function adds the new samples from the playing wavetable to the output.
If input
is not NULL and different from output
, then the samples from input
are added to the output.
void aubio_wavetable_do_multi | ( | aubio_wavetable_t * | o, |
fmat_t * | input, | ||
fmat_t * | output | ||
) |
process wavetable function, multiple channels
o | wavetable, created by new_aubio_wavetable() |
input | input of the wavetable, to be added to the output |
output | output of the wavetable |
This function adds the new samples from the playing wavetable to the output.
If input
is not NULL and different from output
, then the samples from input
are added to the output.
smpl_t aubio_wavetable_get_amp | ( | aubio_wavetable_t * | o | ) |
get wavetable amplitude
o | wavetable, created by new_aubio_wavetable() |
smpl_t aubio_wavetable_get_freq | ( | aubio_wavetable_t * | o | ) |
get wavetable frequency
o | wavetable, created by new_aubio_wavetable() |
uint_t aubio_wavetable_get_playing | ( | aubio_wavetable_t * | o | ) |
get current playing state
o | wavetable, created by new_aubio_wavetable() |
uint_t aubio_wavetable_load | ( | aubio_wavetable_t * | o, |
char_t * | uri | ||
) |
load source in wavetable
o | wavetable, created by new_aubio_wavetable() |
uri | the uri of the source to load |
uint_t aubio_wavetable_play | ( | aubio_wavetable_t * | o | ) |
play sample from start
o | wavetable, created by new_aubio_wavetable() |
uint_t aubio_wavetable_set_amp | ( | aubio_wavetable_t * | o, |
smpl_t | amp | ||
) |
set wavetable amplitude
o | wavetable, created by new_aubio_wavetable() |
amp | new amplitude value for the wavetable |
uint_t aubio_wavetable_set_freq | ( | aubio_wavetable_t * | o, |
smpl_t | freq | ||
) |
set wavetable frequency
o | wavetable, created by new_aubio_wavetable() |
freq | new frequency value for the wavetable |
uint_t aubio_wavetable_set_playing | ( | aubio_wavetable_t * | o, |
uint_t | playing | ||
) |
set current playing state
o | wavetable, created by new_aubio_wavetable() |
playing | 0 for not playing, 1 for playing |
uint_t aubio_wavetable_stop | ( | aubio_wavetable_t * | o | ) |
stop wavetable
o | wavetable, created by new_aubio_wavetable() |
void del_aubio_wavetable | ( | aubio_wavetable_t * | o | ) |
destroy aubio_wavetable_t object
o | wavetable, created by new_aubio_wavetable() |
aubio_wavetable_t* new_aubio_wavetable | ( | uint_t | samplerate, |
uint_t | hop_size | ||
) |
create new wavetable object
samplerate | the sampling rate of the new wavetable |
hop_size | the block size of the new wavetable |