IFilter

Base class for filters usable in synthesis.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

SignalProcessing

Header

/Engine/Source/Runtime/SignalProcessing/Public/DSP/Filter.h

Include

#include "DSP/Filter.h"

Syntax

class IFilter

Remarks

Base class for filters usable in synthesis.

Variables

Name Description

Protected variable

float

 

BaseFrequency

The base filter cutoff frequency.

Protected variable

float

 

BaseQ

The base.

Protected variable

bool

 

bChanged

Protected variable

float

 

ExternalModFrequency

A modulatied frequency driven externally.

Protected variable

float

 

ExternalModQ

An external modulation of Q.

Protected variable

EFilter::Type

 

FilterType

The filter type of the filter.

Protected variable

float

 

Frequency

The cutoff frequency currently used by the filter (can be modulated)

Protected variable

FPatchDestinati...

 

ModCutoffFrequencyDest

Mod matrix patchable destinations.

Protected variable

float

 

ModFrequency

A modulated frequency.

Protected variable

FModulationMatr...

 

ModMatrix

Protected variable

float

 

ModQ

The modulated Q.

Protected variable

FPatchDestinati...

 

ModQDest

Protected variable

int32

 

NumChannels

Number of channels of the sound.

Protected variable

float

 

Q

The current Q.

Protected variable

float

 

SampleRate

Sample rate of the filter.

Protected variable

int32

 

VoiceId

The voice id of the owner of the filter (for use with mod matrix)

Constructors

Name Description

Public function

IFilter()

Destructors

Name Description

Public function Virtual

~IFilter()

Functions

Name Description

Protected function Const

float

 

GetGCoefficient()

Public function Const

FPatchDestin...

 

GetModDestCutoffFrequency()

Filter patch destinations.

Public function Const

FPatchDestin...

 

GetModDestQ()

Public function Virtual

void

 

Init

(
    const float InSampleRate,
    const int32 InNumChannels,
    const int32 InVoiceId,
    FModulationMatrix* InModMatrix
)

Initialize the filter.

Public function

void

 

ProcessAudio

(
    const float* InBuffer,
    const int32 InNumSamples,
    float* OutBuffer
)

Process an audio buffer.

Public function Virtual

void

 

ProcessAudioFrame

(
    const float* InFrame,
    float* OutFrame
)

Processes a single frame of audio. Number of channels MUST be what was used during filter initialization.

Public function Virtual

void

 

Reset()

Reset the filter.

Public function Virtual

void

 

SetBandStopControl

(
    const float InBandStop
)

Sets the band stop control param (not used on all filters)

Public function Virtual

void

 

SetFilterType

(
    const EFilter::Type InFilterType
)

Sets the filter type.

Public function Virtual

void

 

SetFrequency

(
    const float InCutoffFrequency
)

Sets the cutoff frequency of the filter.

Public function Virtual

void

 

SetFrequencyMod

(
    const float InModFrequency
)

Sets an external modulated frequency.

Public function Virtual

void

 

SetPassBandGainCompensation

(
    const float InPassBandGainCompensat...
)

Sets the band pass gain compensation (not used on all filters)

Public function Virtual

void

 

SetQ

(
    const float InQ
)

Sets the quality/resonance of the filter.

Public function Virtual

void

 

SetQMod

(
    const float InModQ
)

Sets an external modulated quality/resonance of the filter.

Public function Virtual

void

 

SetSaturation

(
    const float InSaturation
)

Sets the filter saturation (not used on all filters)

Public function Virtual

void

 

Update()

Updates the filter.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss