Skip to content

Commit 8a85deb

Browse files
committed
synthio: shift 19 was too much for a note with amplitude 1
1 parent 3151656 commit 8a85deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/synthio/Biquad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ mp_obj_t common_hal_synthio_new_bpf(mp_float_t w0, mp_float_t Q) {
9494
return namedtuple_make_new((const mp_obj_type_t *)&synthio_biquad_type_obj, MP_ARRAY_SIZE(out_args), 0, out_args);
9595
}
9696

97-
#define BIQUAD_SHIFT (19)
97+
#define BIQUAD_SHIFT (15)
9898
STATIC int32_t biquad_scale_arg_obj(mp_obj_t arg) {
9999
return (int32_t)MICROPY_FLOAT_C_FUN(round)(MICROPY_FLOAT_C_FUN(ldexp)(mp_obj_get_float(arg), BIQUAD_SHIFT));
100100
}

0 commit comments

Comments
 (0)