Skip to content

Commit fea0a39

Browse files
committed
Deprecate Biquad, BlockBiquad is better in every way
.. and we'd like to get the code space back from having two biquad kinds.
1 parent 6982111 commit fea0a39

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

shared-bindings/synthio/Biquad.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ static const mp_arg_t biquad_properties[] = {
4747
//| rather than directly from coefficients.
4848
//|
4949
//| https://github.com/WebAudio/Audio-EQ-Cookbook/blob/main/Audio-EQ-Cookbook.txt
50+
//|
51+
//| .. note:: This is deprecated in ``9.x.x`` and will be removed in ``10.0.0``. Use `BlockBiquad` objects instead.
5052
//| """
5153
//|
5254
//|

shared-bindings/synthio/Synthesizer.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ MP_PROPERTY_GETTER(synthio_synthesizer_blocks_obj,
295295
//| of the filter.
296296
//|
297297
//| ``Q`` controls how peaked the response will be at the cutoff frequency. A large value makes the response more peaked.
298+
//|
299+
//| .. note:: This is deprecated in ``9.x.x`` and will be removed in ``10.0.0``. Use `BlockBiquad` objects instead.
298300
//| """
299301
//|
300302

@@ -337,6 +339,8 @@ MP_DEFINE_CONST_FUN_OBJ_KW(synthio_synthesizer_lpf_fun_obj, 1, synthio_synthesiz
337339
//| of the filter.
338340
//|
339341
//| ``Q`` controls how peaked the response will be at the cutoff frequency. A large value makes the response more peaked.
342+
//|
343+
//| .. note:: This is deprecated in ``9.x.x`` and will be removed in ``10.0.0``. Use `BlockBiquad` objects instead.
340344
//| """
341345
//|
342346

@@ -368,6 +372,8 @@ static mp_obj_t synthio_synthesizer_hpf(size_t n_pos, const mp_obj_t *pos_args,
368372
//| ``Q`` Controls how peaked the response will be at the cutoff frequency. A large value makes the response more peaked.
369373
//|
370374
//| The coefficients are scaled such that the filter has a 0dB peak gain.
375+
//|
376+
//| .. note:: This is deprecated in ``9.x.x`` and will be removed in ``10.0.0``. Use `BlockBiquad` objects instead.
371377
//| """
372378
//|
373379
//|

0 commit comments

Comments
 (0)