@@ -48,11 +48,11 @@ static synthio_filter_mode validate_synthio_filter_mode(mp_obj_t obj, qstr arg_n
48
48
//| self,
49
49
//| mode: FilterMode,
50
50
//| frequency: BlockInput,
51
- //| q_factor : BlockInput = 0.7071067811865475,
51
+ //| Q : BlockInput = 0.7071067811865475,
52
52
//| ) -> None:
53
53
//| """Construct a biquad filter object with dynamic center frequency & q factor
54
54
//|
55
- //| Since ``frequency`` and ``q_factor `` are `BlockInput` objects, they can
55
+ //| Since ``frequency`` and ``Q `` are `BlockInput` objects, they can
56
56
//| be varied dynamically. Internally, this is evaluated as "direct form 1"
57
57
//| biquad filter.
58
58
//|
@@ -115,29 +115,29 @@ MP_PROPERTY_GETSET(synthio_block_biquad_frequency_obj,
115
115
116
116
117
117
//|
118
- //| q_factor : BlockInput
119
- //| """The sharpness (q_factor ) of the filter"""
118
+ //| Q : BlockInput
119
+ //| """The sharpness (Q ) of the filter"""
120
120
//|
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 ) {
122
122
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 );
124
124
}
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 );
126
126
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 ) {
128
128
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 );
130
130
return mp_const_none ;
131
131
}
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 );
136
136
137
137
static const mp_rom_map_elem_t synthio_block_biquad_locals_dict_table [] = {
138
138
{ MP_ROM_QSTR (MP_QSTR_mode ), MP_ROM_PTR (& synthio_block_biquad_mode_obj ) },
139
139
{ 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 ) },
141
141
};
142
142
static MP_DEFINE_CONST_DICT (synthio_block_biquad_locals_dict , synthio_block_biquad_locals_dict_table ) ;
143
143
0 commit comments