2023-05-01 10:41:05 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "py/obj.h"
|
|
|
|
|
|
|
|
typedef struct synthio_note_obj synthio_note_obj_t;
|
|
|
|
extern const mp_obj_type_t synthio_note_type;
|
2023-05-10 09:40:09 -04:00
|
|
|
typedef enum synthio_bend_mode_e synthio_bend_mode_t;
|
2023-05-01 10:41:05 -04:00
|
|
|
|
|
|
|
mp_float_t common_hal_synthio_note_get_frequency(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_frequency(synthio_note_obj_t *self, mp_float_t value);
|
|
|
|
|
2023-05-29 11:53:48 -04:00
|
|
|
mp_obj_t common_hal_synthio_note_get_filter_obj(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_filter(synthio_note_obj_t *self, mp_obj_t biquad);
|
2023-05-11 18:58:09 -04:00
|
|
|
|
2023-05-15 11:49:42 -04:00
|
|
|
mp_obj_t common_hal_synthio_note_get_panning(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_panning(synthio_note_obj_t *self, mp_obj_t value);
|
2023-05-01 10:41:05 -04:00
|
|
|
|
2023-05-15 11:49:42 -04:00
|
|
|
mp_obj_t common_hal_synthio_note_get_amplitude(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_amplitude(synthio_note_obj_t *self, mp_obj_t value);
|
2023-05-01 10:41:05 -04:00
|
|
|
|
2023-05-15 11:49:42 -04:00
|
|
|
mp_obj_t common_hal_synthio_note_get_bend(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_bend(synthio_note_obj_t *self, mp_obj_t value);
|
2023-05-01 10:41:05 -04:00
|
|
|
|
|
|
|
mp_obj_t common_hal_synthio_note_get_waveform_obj(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_waveform(synthio_note_obj_t *self, mp_obj_t value);
|
|
|
|
|
2023-11-20 10:50:03 -05:00
|
|
|
mp_int_t common_hal_synthio_note_get_waveform_loop_start(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_waveform_loop_start(synthio_note_obj_t *self, mp_int_t value_in);
|
|
|
|
|
|
|
|
mp_int_t common_hal_synthio_note_get_waveform_loop_end(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_waveform_loop_end(synthio_note_obj_t *self, mp_int_t value_in);
|
|
|
|
|
2023-05-15 11:49:42 -04:00
|
|
|
mp_float_t common_hal_synthio_note_get_ring_frequency(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_ring_frequency(synthio_note_obj_t *self, mp_float_t value);
|
|
|
|
|
|
|
|
mp_obj_t common_hal_synthio_note_get_ring_bend(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_ring_bend(synthio_note_obj_t *self, mp_obj_t value);
|
|
|
|
|
2023-05-10 13:07:01 -04:00
|
|
|
mp_obj_t common_hal_synthio_note_get_ring_waveform_obj(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_ring_waveform(synthio_note_obj_t *self, mp_obj_t value);
|
|
|
|
|
2023-11-20 10:50:03 -05:00
|
|
|
mp_int_t common_hal_synthio_note_get_ring_waveform_loop_start(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_ring_waveform_loop_start(synthio_note_obj_t *self, mp_int_t value_in);
|
2023-11-17 18:41:49 -05:00
|
|
|
|
2023-11-20 10:50:03 -05:00
|
|
|
mp_int_t common_hal_synthio_note_get_ring_waveform_loop_end(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_ring_waveform_loop_end(synthio_note_obj_t *self, mp_int_t value_in);
|
2023-11-17 18:41:49 -05:00
|
|
|
|
2023-11-20 10:50:03 -05:00
|
|
|
mp_obj_t common_hal_synthio_note_get_envelope_obj(synthio_note_obj_t *self);
|
|
|
|
void common_hal_synthio_note_set_envelope(synthio_note_obj_t *self, mp_obj_t value);
|