class RemiAudio::DSP::ParaEQStereo
- RemiAudio::DSP::ParaEQStereo
- Reference
- Object
Overview
A stereo parametric EQ. This is identical to using two ParaEQ
instances,
and is provided simply as a convenience wrapper.
Defined in:
remiaudio/dsp/paraeqstereo.crConstructors
-
.new(numBands, newSampleRate)
Creates a new
Para5EQ
instance with the default settings.
Instance Method Summary
-
#active=(value : Bool) : Bool
When true, this equalizer will process audio, otherwise it will pass any audio through unmodified.
-
#active? : Bool
When true, this equalizer will process audio, otherwise it will pass any audio through unmodified.
-
#eqL : ParaEQ
Direct access to the underlying
ParaEQ
for the left channel. -
#eqR : ParaEQ
Direct access to the underlying
ParaEQ
for the right channel. -
#plot(pt : PlotType) : String
Generates a string that can be passed to a program to plot this equalizer on a graph.
-
#postGain : Float64
The amount of gain to apply after the EQ, in decibels.
-
#postGain=(value : Float64) : Float64
The amount of gain to apply after the EQ, in decibels.
-
#process(sampleL : Float32, sampleR : Float32) : Tuple(Float32, Float32)
Processes a single left-channel sample and a single right-channel sample of audio with the equalizer, returning two processed samples where the 0th is the new left sample.
-
#process(blockL : Array(Float32), blockR : Array(Float32)) : Nil
Processes two channels of stereo audio with the equalizer.
-
#process(blockL : Slice(Float32), blockR : Slice(Float32)) : Nil
Processes two channels of stereo audio with the equalizer.
-
#process(sampleL : Float64, sampleR : Float64) : Tuple(Float64, Float64)
Processes a single left-channel sample and a single right-channel sample of audio with the equalizer, returning two processed samples where the 0th is the new left sample.
-
#process(blockL : Array(Float64), blockR : Array(Float64)) : Nil
Processes two channels of stereo audio with the equalizer.
-
#process(blockL : Slice(Float64), blockR : Slice(Float64)) : Nil
Processes two channels of stereo audio with the equalizer.
-
#process(block : Array(Float32)) : Nil
Processes a block of audio with the equalizer.
-
#process(block : Slice(Float32)) : Nil
Processes a block of audio with the equalizer.
-
#process(block : Array(Float64)) : Nil
Processes a block of audio with the equalizer.
-
#process(block : Slice(Float64)) : Nil
Processes a block of audio with the equalizer.
-
#reset : Nil
Resets all bands in the equalizer.
-
#sampleRate : Float64
The sample rate of the equalizer.
-
#setBand(band : Int, freq : Float64, gain : Float64, width : Float64) : Nil
Sets the frequency/band/width for the given band.
Constructor Detail
Instance Method Detail
When true, this equalizer will process audio, otherwise it will pass any audio through unmodified.
When true, this equalizer will process audio, otherwise it will pass any audio through unmodified.
Generates a string that can be passed to a program to plot this equalizer
on a graph. The PlotType
dictates what kind of script is generated.
Processes a single left-channel sample and a single right-channel sample of audio with the equalizer, returning two processed samples where the 0th is the new left sample.
Processes two channels of stereo audio with the equalizer.
Processes two channels of stereo audio with the equalizer.
Processes a single left-channel sample and a single right-channel sample of audio with the equalizer, returning two processed samples where the 0th is the new left sample.
Processes two channels of stereo audio with the equalizer.
Processes two channels of stereo audio with the equalizer.
Processes a block of audio with the equalizer. The block is assumed to hold interleaved stereo audio data.
Processes a block of audio with the equalizer. The block is assumed to hold interleaved stereo audio data.
Processes a block of audio with the equalizer. The block is assumed to hold interleaved stereo audio data.
Processes a block of audio with the equalizer. The block is assumed to hold interleaved stereo audio data.
Sets the frequency/band/width for the given band. band
must be between
0 and 4, inclusive.
If freq
is greater than 49.9% of the sampling frequency, that band will
be disabled.