class RemiAudio::DSP::ParaEQStereo

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(numBands, newSampleRate) #

Creates a new Para5EQ instance with the default settings.


[View source]

Instance Method Detail

def active=(value : Bool) : Bool #

When true, this equalizer will process audio, otherwise it will pass any audio through unmodified.


[View source]
def active? : Bool #

When true, this equalizer will process audio, otherwise it will pass any audio through unmodified.


[View source]
def eqL : ParaEQ #

Direct access to the underlying ParaEQ for the left channel.


[View source]
def eqR : ParaEQ #

Direct access to the underlying ParaEQ for the right channel.


[View source]
def plot(pt : PlotType) : String #

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.


[View source]
def postGain : Float64 #

The amount of gain to apply after the EQ, in decibels.


[View source]
def postGain=(value : Float64) : Float64 #

The amount of gain to apply after the EQ, in decibels.


[View source]
def 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.


[View source]
def process(blockL : Array(Float32), blockR : Array(Float32)) : Nil #

Processes two channels of stereo audio with the equalizer.


[View source]
def process(blockL : Slice(Float32), blockR : Slice(Float32)) : Nil #

Processes two channels of stereo audio with the equalizer.


[View source]
def 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.


[View source]
def process(blockL : Array(Float64), blockR : Array(Float64)) : Nil #

Processes two channels of stereo audio with the equalizer.


[View source]
def process(blockL : Slice(Float64), blockR : Slice(Float64)) : Nil #

Processes two channels of stereo audio with the equalizer.


[View source]
def process(block : Array(Float32)) : Nil #

Processes a block of audio with the equalizer. The block is assumed to hold interleaved stereo audio data.


[View source]
def process(block : Slice(Float32)) : Nil #

Processes a block of audio with the equalizer. The block is assumed to hold interleaved stereo audio data.


[View source]
def process(block : Array(Float64)) : Nil #

Processes a block of audio with the equalizer. The block is assumed to hold interleaved stereo audio data.


[View source]
def process(block : Slice(Float64)) : Nil #

Processes a block of audio with the equalizer. The block is assumed to hold interleaved stereo audio data.


[View source]
def reset : Nil #

Resets all bands in the equalizer.


[View source]
def sampleRate : Float64 #

The sample rate of the equalizer.


[View source]
def setBand(band : Int, freq : Float64, gain : Float64, width : Float64) : Nil #

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.


[View source]