MCPcopy Create free account
hub / github.com/LabSound/LabSound / initializeParameters

Method initializeParameters

src/internal/src/DynamicsCompressor.cpp:39–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void DynamicsCompressor::initializeParameters()
40{
41 // Initializes compressor to default values.
42
43 m_parameters[ParamThreshold] = -24; // dB
44 m_parameters[ParamKnee] = 30; // dB
45 m_parameters[ParamRatio] = 12; // unit-less
46 m_parameters[ParamAttack] = 0.003f; // seconds
47 m_parameters[ParamRelease] = 0.250f; // seconds
48 m_parameters[ParamPreDelay] = 0.006f; // seconds
49
50 // Release zone values 0 -> 1.
51 m_parameters[ParamReleaseZone1] = 0.09f;
52 m_parameters[ParamReleaseZone2] = 0.16f;
53 m_parameters[ParamReleaseZone3] = 0.42f;
54 m_parameters[ParamReleaseZone4] = 0.98f;
55
56 m_parameters[ParamFilterStageGain] = 4.4f; // dB
57 m_parameters[ParamFilterStageRatio] = 2;
58 m_parameters[ParamFilterAnchor] = 15000.f / 22500.f; // dimitri sample rate
59
60 m_parameters[ParamPostGain] = 0; // dB
61 m_parameters[ParamReduction] = 0; // dB
62
63 // Linear crossfade (0 -> 1).
64 m_parameters[ParamEffectBlend] = 1;
65}
66
67float DynamicsCompressor::parameterValue(unsigned parameterID)
68{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected