#include "utils_tests.h"
{
PRINT_MSG("next steps (%d) values:", steps );
for (i = 0; i < steps; i ++ ) {
}
PRINT_MSG("\n");
PRINT_MSG("next 3 values:");
for (i = 0; i < 3; i ++ ) {
}
PRINT_MSG("\n");
}
int main (void)
{
PRINT_MSG("target: max_value / 2\n");
get_some_steps ( param );
PRINT_MSG("target: max_value / 2\n");
get_some_steps ( param );
PRINT_MSG("target: max_value * 2\n");
get_some_steps ( param );
PRINT_MSG("steps: 1, target: -max\n");
get_some_steps ( param );
PRINT_MSG("steps: 30, current value: max, target: min\n");
get_some_steps ( param );
PRINT_MSG("steps: 30, max value: max * 2, min value: -max, current value: -max, target: max\n");
get_some_steps ( param );
return 0;
}
Global aubio include file.
uint_t aubio_parameter_set_steps(aubio_parameter_t *param, uint_t steps)
set number of steps used for interpolation
uint_t aubio_parameter_get_steps(const aubio_parameter_t *param)
get number of steps of this parameter
uint_t aubio_parameter_set_target_value(aubio_parameter_t *param, smpl_t value)
set target value of the parameter
smpl_t aubio_parameter_get_current_value(const aubio_parameter_t *param)
get current parameter value, without interpolation
uint_t aubio_parameter_set_current_value(aubio_parameter_t *param, smpl_t value)
set current parameter value, skipping interpolation
uint_t aubio_parameter_set_min_value(aubio_parameter_t *param, smpl_t min_value)
set minimum value of this parameter
aubio_parameter_t * new_aubio_parameter(smpl_t min_value, smpl_t max_value, uint_t steps)
create new parameter object
uint_t aubio_parameter_set_max_value(aubio_parameter_t *param, smpl_t max_value)
set maximum value of this parameter
smpl_t aubio_parameter_get_next_value(aubio_parameter_t *param)
get next parameter
struct _aubio_parameter_t aubio_parameter_t
parameter object
void del_aubio_parameter(aubio_parameter_t *param)
destroy aubio_parameter_t object
unsigned int uint_t
unsigned integer
float smpl_t
short sample format (32 or 64 bits)