|
Nu:Tekt NTS-1 digital SDK
v1.1-0
|
Macros | |
| #define | __sdram __attribute__((section(".sdram"))) |
| This macro can be used to declare a memory buffer in SDRAM space. More... | |
Enumerations | |
| enum | user_modfx_param_id_t { k_user_modfx_param_time = 0, k_user_modfx_param_depth, k_num_user_modfx_param_id } |
| User facing parameters. More... | |
Core API | |
| void | _hook_init (uint32_t platform, uint32_t api) |
| Initialization callback. More... | |
| void | _hook_process (const float *main_xn, float *main_yn, const float *sub_xn, float *sub_yn, uint32_t frames) |
| Processing callback. More... | |
| void | _hook_suspend (void) |
| Suspend callback. More... | |
| void | _hook_resume (void) |
| Resume callback. More... | |
| void | _hook_param (uint8_t index, int32_t value) |
| Parameter change callback. More... | |
| #define | MODFX_INIT __attribute__((used)) _hook_init |
| #define | MODFX_PROCESS __attribute__((used)) _hook_process |
| #define | MODFX_SUSPEND __attribute__((used)) _hook_suspend |
| #define | MODFX_RESUME __attribute__((used)) _hook_resume |
| #define | MODFX_PARAM __attribute__((used)) _hook_param |
| #define __sdram __attribute__((section(".sdram"))) |
This macro can be used to declare a memory buffer in SDRAM space.
E.g.: float g_my_buffer[1024] __sdram;
Definition at line 63 of file usermodfx.h.
User facing parameters.
| Enumerator | |
|---|---|
| k_user_modfx_param_time | Time parameter. |
| k_user_modfx_param_depth | Depth parameter. |
Definition at line 68 of file usermodfx.h.
| void _hook_init | ( | uint32_t | platform, |
| uint32_t | api | ||
| ) |
| void _hook_param | ( | uint8_t | index, |
| int32_t | value | ||
| ) |
Parameter change callback.
Must be implemented by your custom effect.
| index | Parameter ID. See user_modfx_param_id_t. |
| index | Parameter value. |
| void _hook_process | ( | const float * | main_xn, |
| float * | main_yn, | ||
| const float * | sub_xn, | ||
| float * | sub_yn, | ||
| uint32_t | frames | ||
| ) |
Processing callback.
Must be implemented by your custom effect.
| main_xn | Input sample buffer for main timbre |
| main_yn | Output sample buffer for main timbre |
| sub_xn | Input sample buffer for sub timbre |
| sub_yn | Output sample buffer for sub timbre |
| frames | Size of buffers. (2 samples per frames) |
| void _hook_resume | ( | void | ) |
Resume callback.
Must be implemented by your custom effect.
Called before calls to processing callback resume after being suspended.
| void _hook_suspend | ( | void | ) |
Suspend callback.
Must be implemented by your custom effect.
Called before effect gets suspended. While suspended the processing callback will not be called.
1.8.16