MCPcopy Create free account
hub / github.com/LMMS/lmms / ExternalFilter

Method ExternalFilter

plugins/sid/extfilt.cc:27–40  ·  view source on GitHub ↗

---------------------------------------------------------------------------- Constructor. ----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

25// Constructor.
26// ----------------------------------------------------------------------------
27ExternalFilter::ExternalFilter()
28{
29 reset();
30 enable_filter(true);
31 set_chip_model(MOS6581);
32
33 // Low-pass: R = 10kOhm, C = 1000pF; w0l = 1/RC = 1/(1e4*1e-9) = 100000
34 // High-pass: R = 1kOhm, C = 10uF; w0h = 1/RC = 1/(1e3*1e-5) = 100
35 // Multiply with 1.048576 to facilitate division by 1 000 000 by right-
36 // shifting 20 times (2 ^ 20 = 1048576).
37
38 w0lp = 104858;
39 w0hp = 105;
40}
41
42
43// ----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

resetFunction · 0.85

Tested by

no test coverage detected