def compute_biquad_coeffs(): b, a = peaking( f0=state.get("c{}/f0/freq".format(chan)), dBgain=state.get("c{}/f0/gain".format(chan)), q=state.get("c{}/f0/q".format(chan)), ) b, a = normalize(b, a) return b, a
def set_bus_biquad(self, bus, biquad, typ, freq, gain, q): bus_core, bus_idx = bus_map[bus] b, a = filter_types[typ](f0=freq, dBgain=gain, q=q) b, a = normalize(b, a) self._set_parameter_memory( core=bus_core, addr=parameter_base_addr_for_bus_biquad(bus=bus, biquad=biquad), data=pack_biquad_coeffs(b, a), )
def set_channel_biquad(self, channel, biquad, typ, freq, gain, q): core, ch = channel_map[channel] b, a = filter_types[typ](f0=freq, dBgain=gain, q=q) b, a = normalize(b, a) self._set_parameter_memory( core=core, addr=parameter_base_addr_for_channel_biquad(channel=channel, biquad=biquad), data=pack_biquad_coeffs(b, a), )