|
35 | 35 |
|
36 | 36 | static const mp_arg_t note_properties[] = {
|
37 | 37 | { MP_QSTR_frequency, MP_ARG_OBJ | MP_ARG_REQUIRED, {.u_obj = NULL } },
|
38 |
| - { MP_QSTR_amplitude, MP_ARG_OBJ, {.u_obj = MP_ROM_INT(1) } }, |
39 |
| - { MP_QSTR_tremolo_rate, MP_ARG_OBJ, {.u_obj = NULL } }, |
40 |
| - { MP_QSTR_tremolo_depth, MP_ARG_OBJ, {.u_obj = NULL } }, |
41 |
| - { MP_QSTR_vibrato_rate, MP_ARG_OBJ, {.u_obj = NULL } }, |
42 |
| - { MP_QSTR_vibrato_depth, MP_ARG_OBJ, {.u_obj = NULL } }, |
43 |
| - { MP_QSTR_waveform, MP_ARG_OBJ, {.u_obj = MP_ROM_NONE } }, |
44 |
| - { MP_QSTR_envelope, MP_ARG_OBJ, {.u_obj = MP_ROM_NONE } }, |
| 38 | + { MP_QSTR_amplitude, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_obj = MP_ROM_INT(1) } }, |
| 39 | + { MP_QSTR_tremolo_rate, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_obj = NULL } }, |
| 40 | + { MP_QSTR_tremolo_depth, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_obj = NULL } }, |
| 41 | + { MP_QSTR_vibrato_rate, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_obj = NULL } }, |
| 42 | + { MP_QSTR_vibrato_depth, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_obj = NULL } }, |
| 43 | + { MP_QSTR_waveform, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_obj = MP_ROM_NONE } }, |
| 44 | + { MP_QSTR_envelope, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_obj = MP_ROM_NONE } }, |
45 | 45 | };
|
46 | 46 | //| class Note:
|
47 | 47 | //| def __init__(
|
48 | 48 | //| self,
|
| 49 | +//| *, |
49 | 50 | //| frequency: float,
|
50 | 51 | //| amplitude: float = 1.0,
|
51 | 52 | //| waveform: Optional[ReadableBuffer] = None,
|
|
0 commit comments