Contents

class

SushiDSP::WdfCapacitor

A linear capacitor one-port, discretized via the bilinear transform.

Declared in
include/SushiDSP/math/Wdf.hpp

Public member functions

WdfCapacitor(double sample_rate, float capacitance_farads)

Parameters

sample_rate

The sample rate in Hz.

capacitance_farads

The capacitance in farads.

float port_resistance() const

The port resistance R = T / (2C), where T is the sample period.

Returns

The port resistance in ohms.

float reflect(float incident_wave)

Computes the reflected wave: b[n] = a[n-1] (the bilinear-transform result).

Parameters

incident_wave

The incident wave a[n].

Returns

The reflected wave b[n] = the previous call's incident wave.

void reset()

Clears the stored previous incident wave.