Navigation
API > API/Plugins > API/Plugins/Synthesis
References
| Module | Synthesis |
| Header | /Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Public/EpicSynth1.h |
| Include | #include "EpicSynth1.h" |
Syntax
class FEpicSynth1
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | BaseFilterFreq | Filter data. | |
| float | BaseFilterQ | ||
| bool: 1 | bIsChorusEnabled | ||
| bool: 1 | bIsStereoEnabled | ||
| bool: 1 | bIsUnison | ||
| FChorus | Chorus | ||
| int32 | ControlSamplePeriod | The number of real samples per control rate tick. | |
| float | ControlSampleRate | Control sample rate (LFOs, etc) | |
| ESynthFilterAlgorithm | FilterAlgorithm | ||
| float | FilterFreqMod | ||
| float | FilterQMod | ||
| EFilter::Type | FilterType | ||
| TArray< int32 > | FreeVoices | List of free voice indices. | |
| uint32 | LastMidiNote | Last midi note played, used for portamento. | |
| FEpicSynth1Voice * | LastVoice | The last played voice. | |
| int32 | MaxNumVoices | The max number of voices allowed in the synth. | |
| FModulationMatrix | ModMatrix | Mod matrix object (used to route connections) | |
| int32 | NumActiveVoices | Count of number of voices in flight. Should not be greater than NumVoices. | |
| int32 | NumStoppingVoices | Number of buffer voices used for stopping voices. | |
| int32 | NumVoices | The current number of voices, may be less than MaxNumVoices. | |
| float | Portamento | Time to pitch shift up or down to target notes. | |
| float | SampleRate | Sample rate of the synth. | |
| FDelayStereo | StereoDelay | Stereo delay effect. | |
| uint32 | VoiceGeneration | An incremented number used to track voice age. Older voices have smaller generation counts. | |
| TArray< FEpicSynth1Voice * > | Voices | The allocated voice pool. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEpicSynth1 () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FEpicSynth1 () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ClearPatches () |
||
| FPatchId | CreatePatch
(
const ESynth1PatchSource PatchSource, |
||
| void | GenerateFrame
(
float* OutFrame |
Generate the next frame of audio. | |
| uint32 | |||
| void | Init
(
const float InSampleRate, |
||
| void | NoteOff
(
const uint32 InMidiNote, |
Turns the note off (triggers release envelope) | |
| void | NoteOn
(
const uint32 InMidiNote, |
Plays a note with the given midi note and midi velocity. | |
| void | SetChorusDepth
(
const EChorusDelays::Type InType, |
||
| void | SetChorusEnabled
(
const bool bInIsChorusEnabled |
Chorus parameters. | |
| void | SetChorusFeedback
(
const EChorusDelays::Type InType, |
||
| void | SetChorusFrequency
(
const EChorusDelays::Type InType, |
||
| bool | SetEnablePatch
(
const FPatchId PatchId, |
||
| void | SetEnvAttackTime
(
const float InAttackTimeMsec |
Envelope setting. | |
| void | SetEnvDecayTime
(
const float InDecayTimeMsec |
||
| void | SetEnvLegatoEnabled
(
const bool bIsLegatoEnabled |
||
| void | SetEnvReleaseTime
(
const float InReleaseTimeMsec |
||
| void | SetEnvRetriggerMode
(
const bool bIsRetriggerMode |
||
| void | SetEnvSustainGain
(
const float InSustainGain |
||
| void | SetFilterAlgorithm
(
const ESynthFilterAlgorithm FilterAlgorithm |
Filter setting. | |
| void | SetFilterFrequency
(
const float InFilterFrequency |
||
| void | SetFilterFrequencyMod
(
const float InFilterFrequencyModulation |
||
| void | SetFilterQ
(
const float InFilterQ |
||
| void | SetFilterQMod
(
const float InFilterQModulation |
||
| void | SetFilterType
(
const EFilter::Type FilterType |
||
| void | SetGainDb
(
const float InGainDb |
||
| void | SetLFOFrequency
(
const int32 LFOIndex, |
||
| void | SetLFOFrequencyMod
(
const int32 LFOIndex, |
||
| void | SetLFOGain
(
const int32 LFOIndex, |
||
| void | SetLFOGainMod
(
const int32 LFOIndex, |
||
| void | SetLFOMode
(
const int32 LFOIndex, |
||
| void | SetLFOPatch
(
const int32 LFOIndex, |
||
| void | SetLFOPulseWidth
(
const int32 LFOIndex, |
||
| void | SetLFOType
(
const int32 LFOIndex, |
LFO setting. | |
| void | SetModEnvAttackTime
(
const float InAttackTimeMsec |
||
| void | SetModEnvBiasInvert
(
const bool bInInvert |
||
| void | SetModEnvBiasPatch
(
const ESynthModEnvBiasPatch InPatchType |
||
| void | SetModEnvDecayTime
(
const float InDecayTimeMsec |
||
| void | SetModEnvDepth
(
const float InDepth |
||
| void | SetModEnvInvert
(
const bool bInInvert |
||
| void | SetModEnvPatch
(
const ESynthModEnvPatch InPatchType |
Modulation Envelope Setting. | |
| void | SetModEnvReleaseTime
(
const float InReleaseTimeMsec |
||
| void | SetModEnvSustainGain
(
const float InSustainGain |
||
| void | SetMonoMode
(
const bool bIsMono |
Set the synth to be in mono mode. | |
| void | SetOscCents
(
const int32 InOscIndex, |
||
| void | SetOscDetune
(
const int32 InOscIndex, |
||
| void | SetOscGain
(
const int32 InOscIndex, |
||
| void | SetOscGainMod
(
const int32 InOscIndex, |
||
| void | SetOscOctave
(
const int32 InOscIndex, |
||
| void | SetOscPitchBend
(
const int32 InOscIndex, |
||
| void | SetOscPortamento
(
const float InPortamento |
||
| void | SetOscPulseWidth
(
const int32 InOscIndex, |
||
| void | SetOscSemitones
(
const int32 InOscIndex, |
||
| void | SetOscSpread
(
const float InSpread |
||
| void | SetOscSync
(
const bool bIsSync |
||
| void | SetOscType
(
const int32 InOscIndex, |
Oscillator setting. | |
| void | SetOscUnison
(
const bool bInUnison |
||
| void | SetPan
(
const float InPan |
Pan and gain setting. | |
| void | SetStereoDelayFeedback
(
const float InDelayFeedback |
||
| void | SetStereoDelayIsEnabled
(
const bool bInIsStereoEnabled |
Stereo Delay parameters. | |
| void | SetStereoDelayMode
(
EStereoDelayMode::Type InStereoDelayMode |
||
| void | SetStereoDelayRatio
(
const float InDelayRatio |
||
| void | SetStereoDelayTimeMsec
(
const float InDelayTimeMsec |
||
| void | SetStereoDelayWetLevel
(
const float InDelayWetLevel |
||
| void | |||
| void | SwitchFilter () |