Skip to content

Commit 4ba61d0

Browse files
committed
synthio: Introduce, use the AnyBiquad type
This is just `Biquad | BlockBiquad` but it's useful shorthand.
1 parent 95179be commit 4ba61d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

shared-bindings/synthio/Note.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static const mp_arg_t note_properties[] = {
4242
//| envelope: Optional[Envelope] = None,
4343
//| amplitude: BlockInput = 1.0,
4444
//| bend: BlockInput = 0.0,
45-
//| filter: Optional[Biquad] = None,
45+
//| filter: Optional[AnyBiquad] = None,
4646
//| ring_frequency: float = 0.0,
4747
//| ring_bend: float = 0.0,
4848
//| ring_waveform: Optional[ReadableBuffer] = None,
@@ -86,7 +86,7 @@ MP_PROPERTY_GETSET(synthio_note_frequency_obj,
8686
(mp_obj_t)&synthio_note_get_frequency_obj,
8787
(mp_obj_t)&synthio_note_set_frequency_obj);
8888

89-
//| filter: Optional[Biquad]
89+
//| filter: Optional[AnyBiquad]
9090
//| """If not None, the output of this Note is filtered according to the provided coefficients.
9191
//|
9292
//| Construct an appropriate filter by calling a filter-making method on the

shared-bindings/synthio/__init__.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
//|
3535
//|
3636

37+
//| AnyBiquad = Biquad | BlockBiquad
38+
//|
3739
//| class EnvelopeState:
3840
//| ATTACK: EnvelopeState
3941
//| """The note is in its attack phase"""

0 commit comments

Comments
 (0)