Components
Components are audio-processing nodes for dynamics, filtering, and routing.
Compressor
1let comp = Compressor.make()2let comp2 = Compressor.makeWithThreshold(-24.0)3let comp3 = Compressor.makeWithOptions({4 threshold: -24.0,5 ratio: 4.0,6 attack: 0.003,7 release: 0.25,8 knee: 30.0,9})1011comp->Compressor.threshold // Param.t12comp->Compressor.ratio // Param.t13comp->Compressor.attack // Param.t14comp->Compressor.release // Param.t15comp->Compressor.knee // Param.t16comp->Compressor.reduction // decibelsLimiter
1let limiter = Limiter.make()2let limiter2 = Limiter.makeWithThreshold(-6.0)34limiter->Limiter.threshold // Param.t5limiter->Limiter.reduction // decibelsGate
1let gate = Gate.make()2let gate2 = Gate.makeWithOptions({3 threshold: -40.0,4 smoothing: 0.1,5})67gate->Gate.threshold // decibels8gate->Gate.smoothing // floatFilter
1let filter = Filter.make()2let filter2 = Filter.makeWithOptions({3 frequency: 1000.0,4 "type": "lowpass",5 rolloff: -12,6 q: 1.0,7})89filter->Filter.frequency // Param.t10filter->Filter.detune // Param.t11filter->Filter.gain // Param.t12filter->Filter.q // Param.t13filter->Filter.getType() // filterType14filter->Filter.setType("highpass")15filter->Filter.rolloff // intEQ3
1let eq = EQ3.make()2let eq2 = EQ3.makeWithOptions({3 low: -6.0,4 mid: 0.0,5 high: 3.0,6 lowFrequency: 400.0,7 highFrequency: 2500.0,8})910eq->EQ3.low // Param.t11eq->EQ3.mid // Param.t12eq->EQ3.high // Param.tPanner
1let panner = Panner.make()2let panner2 = Panner.makeWithPan(0.5)34panner->Panner.pan // Param.t