8000 Add deprecation notice for future `synthio.BlockBiquad` support (http… · relic-se/circuitpython@6269175 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6269175

Browse files
committed
Add deprecation notice for future synthio.BlockBiquad support (adafruit#9756).
1 parent c3ce141 commit 6269175

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

shared-bindings/audiofilters/Filter.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ MP_PROPERTY_GETSET(audiofilters_filter_filter_obj,
156156
//| def low_pass_filter(
157157
//| self, frequency: float, q_factor: float = 0.7071067811865475
158158
//| ) -> synthio.Biquad:
159-
//| """Construct a low-pass filter with the given parameters and update the `filter` property.
159+
//| """Construct a low-pass filter with the given parameters and update the `filter` property. **DEPRECATED**
160+
//|
161+
//| Instead, construct a `synthio.BlockBiquad` directly.
160162
//|
161163
//| ``frequency``, called f0 in the cookbook, is the corner frequency in Hz
162164
//| of the filter.
@@ -197,7 +199,9 @@ MP_DEFINE_CONST_FUN_OBJ_KW(audiofilters_filter_lpf_obj, 1, audiofilters_filter_o
197199
//| def high_pass_filter(
198200
//| self, frequency: float, q_factor: float = 0.7071067811865475
199201
//| ) -> synthio.Biquad:
200-
//| """Construct a high-pass filter with the given parameters and update the `filter` property.
202+
//| """Construct a high-pass filter with the given parameters and update the `filter` property. **DEPRECATED**
203+
//|
204+
//| Instead, construct a `synthio.BlockBiquad` directly.
201205
//|
202206
//| ``frequency``, called f0 in the cookbook, is the corner frequency in Hz
203207
//| of the filter.
@@ -227,7 +231,9 @@ MP_DEFINE_CONST_FUN_OBJ_KW(audiofilters_filter_hpf_obj, 1, audiofilters_filter_o
227231
//| def band_pass_filter(
228232
//| self, frequency: float, q_factor: float = 0.7071067811865475
229233
//| ) -> synthio.Biquad:
230-
//| """Construct a band-pass filter with the given parameters and update the `filter` property.
234+
//| """Construct a band-pass filter with the given parameters and update the `filter` property. **DEPRECATED**
235+
//|
236+
//| Instead, construct a `synthio.BlockBiquad` directly.
231237
//|
232238
//| ``frequency``, called f0 in the cookbook, is the center frequency in Hz
233239
//| of the filter.

0 commit comments

Comments
 (0)
0