Nu:Tekt NTS-1 digital SDK
v1.1-0
|
Classes | |
struct | user_osc_param |
Internal realtime parameters. More... | |
Macros | |
#define | param_val_to_f32(val) ((uint16_t)val * 9.77517106549365e-004f) |
Convert 10bit parameter values to float. | |
Typedefs | |
typedef struct user_osc_param | user_osc_param_t |
Internal realtime parameters. | |
Enumerations | |
enum | user_osc_param_id_t { k_user_osc_param_id1 = 0, k_user_osc_param_id2, k_user_osc_param_id3, k_user_osc_param_id4, k_user_osc_param_id5, k_user_osc_param_id6, k_user_osc_param_shape, k_user_osc_param_shiftshape, k_num_user_osc_param_id } |
User facing osc-specific parameters. More... | |
Core API | |
void | _hook_init (uint32_t platform, uint32_t api) |
Initialization callback. More... | |
void | _hook_cycle (const user_osc_param_t *const params, int32_t *yn, const uint32_t frames) |
Rendering callback. More... | |
void | _hook_on (const user_osc_param_t *const params) |
Note on callback. More... | |
void | _hook_off (const user_osc_param_t *const params) |
Note off callback. More... | |
void | _hook_param (uint16_t index, uint16_t value) |
Parameter change callback. More... | |
#define | OSC_INIT __attribute__((used)) _hook_init |
#define | OSC_CYCLE __attribute__((used)) _hook_cycle |
#define | OSC_NOTEON __attribute__((used)) _hook_on |
#define | OSC_NOTEOFF __attribute__((used)) _hook_off |
#define | OSC_MUTE __attribute__((used)) _hook_mute |
#define | OSC_VALUE __attribute__((used)) _hook_value |
#define | OSC_PARAM __attribute__((used)) _hook_param |
enum user_osc_param_id_t |
User facing osc-specific parameters.
Definition at line 75 of file userosc.h.
void _hook_cycle | ( | const user_osc_param_t *const | params, |
int32_t * | yn, | ||
const uint32_t | frames | ||
) |
Rendering callback.
Must be implemented by your custom effect.
params | Current realtime parameter state. |
yn | Output buffer. (1 sample per frame) |
frames | Size of output buffer. |
void _hook_init | ( | uint32_t | platform, |
uint32_t | api | ||
) |
void _hook_off | ( | const user_osc_param_t *const | params | ) |
Note off callback.
Must be implemented by your custom effect.
params | Current realtime parameter state. |
void _hook_on | ( | const user_osc_param_t *const | params | ) |
Note on callback.
Must be implemented by your custom effect.
params | Current realtime parameter state. |
void _hook_param | ( | uint16_t | index, |
uint16_t | value | ||
) |
Parameter change callback.
Must be implemented by your custom effect.
index | Parameter ID. See user_osc_param_id_t. |
index | Parameter value. |