synthio: MidiTrack: sample_rate is always available

This commit is contained in:
Jeff Epler 2023-05-03 08:45:57 -05:00
parent dd262258e0
commit eea9b62978
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -138,7 +138,7 @@ STATIC mp_obj_t synthio_miditrack_obj___exit__(size_t n_args, const mp_obj_t *ar
} }
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(synthio_miditrack___exit___obj, 4, 4, synthio_miditrack_obj___exit__); STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(synthio_miditrack___exit___obj, 4, 4, synthio_miditrack_obj___exit__);
//| sample_rate: Optional[int] //| sample_rate: int
//| """32 bit value that tells how quickly samples are played in Hertz (cycles per second).""" //| """32 bit value that tells how quickly samples are played in Hertz (cycles per second)."""
//| //|
STATIC mp_obj_t synthio_miditrack_obj_get_sample_rate(mp_obj_t self_in) { STATIC mp_obj_t synthio_miditrack_obj_get_sample_rate(mp_obj_t self_in) {