@@ -48,11 +48,11 @@ static synthio_filter_mode validate_synthio_filter_mode(mp_obj_t obj, qstr arg_n
4848//| self,
4949//| mode: FilterMode,
5050//| frequency: BlockInput,
51- //| q_factor : BlockInput = 0.7071067811865475,
51+ //| Q : BlockInput = 0.7071067811865475,
5252//| ) -> None:
5353//| """Construct a biquad filter object with dynamic center frequency & q factor
5454//|
55- //| Since ``frequency`` and ``q_factor `` are `BlockInput` objects, they can
55+ //| Since ``frequency`` and ``Q `` are `BlockInput` objects, they can
5656//| be varied dynamically. Internally, this is evaluated as "direct form 1"
5757//| biquad filter.
5858//|
@@ -115,29 +115,29 @@ MP_PROPERTY_GETSET(synthio_block_biquad_frequency_obj,
115115
116116
117117//|
118- //| q_factor : BlockInput
119- //| """The sharpness (q_factor ) of the filter"""
118+ //| Q : BlockInput
119+ //| """The sharpness (Q ) of the filter"""
120120//|
121- static mp_obj_t synthio_block_biquad_get_q_factor (mp_obj_t self_in ) {
121+ static mp_obj_t synthio_block_biquad_get_Q (mp_obj_t self_in ) {
122122 synthio_block_biquad_t * self = MP_OBJ_TO_PTR (self_in );
123- return common_hal_synthio_block_biquad_get_q_factor (self );
123+ return common_hal_synthio_block_biquad_get_Q (self );
124124}
125- MP_DEFINE_CONST_FUN_OBJ_1 (synthio_block_biquad_get_q_factor_obj , synthio_block_biquad_get_q_factor );
125+ MP_DEFINE_CONST_FUN_OBJ_1 (synthio_block_biquad_get_Q_obj , synthio_block_biquad_get_Q );
126126
127- static mp_obj_t synthio_block_biquad_set_q_factor (mp_obj_t self_in , mp_obj_t arg ) {
127+ static mp_obj_t synthio_block_biquad_set_Q (mp_obj_t self_in , mp_obj_t arg ) {
128128 synthio_block_biquad_t * self = MP_OBJ_TO_PTR (self_in );
129- common_hal_synthio_block_biquad_set_q_factor (self , arg );
129+ common_hal_synthio_block_biquad_set_Q (self , arg );
130130 return mp_const_none ;
131131}
132- MP_DEFINE_CONST_FUN_OBJ_2 (synthio_block_biquad_set_q_factor_obj , synthio_block_biquad_set_q_factor );
133- MP_PROPERTY_GETSET (synthio_block_biquad_q_factor_obj ,
134- (mp_obj_t )& synthio_block_biquad_get_q_factor_obj ,
135- (mp_obj_t )& synthio_block_biquad_set_q_factor_obj );
132+ MP_DEFINE_CONST_FUN_OBJ_2 (synthio_block_biquad_set_Q_obj , synthio_block_biquad_set_Q );
133+ MP_PROPERTY_GETSET (synthio_block_biquad_Q_obj ,
134+ (mp_obj_t )& synthio_block_biquad_get_Q_obj ,
135+ (mp_obj_t )& synthio_block_biquad_set_Q_obj );
136136
137137static const mp_rom_map_elem_t synthio_block_biquad_locals_dict_table [] = {
138138 { MP_ROM_QSTR (MP_QSTR_mode ), MP_ROM_PTR (& synthio_block_biquad_mode_obj ) },
139139 { MP_ROM_QSTR (MP_QSTR_frequency ), MP_ROM_PTR (& synthio_block_biquad_frequency_obj ) },
140- { MP_ROM_QSTR (MP_QSTR_q_factor ), MP_ROM_PTR (& synthio_block_biquad_q_factor_obj ) },
140+ { MP_ROM_QSTR (MP_QSTR_Q ), MP_ROM_PTR (& synthio_block_biquad_Q_obj ) },
141141};
142142static MP_DEFINE_CONST_DICT (synthio_block_biquad_locals_dict , synthio_block_biquad_locals_dict_table ) ;
143143
0 commit comments