Navigation
API > API/Plugins > API/Plugins/Synthesis > API/Plugins/Synthesis/SynthComponents
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- USynthComponent
- USynthComponentMonoWaveTable
References
| Module | Synthesis |
| Header | /Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Classes/SynthComponents/SynthComponentMonoWaveTable.h |
| Include | #include "SynthComponents/SynthComponentMonoWaveTable.h" |
Syntax
UCLASS&40;ClassGroup&61;Synth, Meta&61;&40;BlueprintSpawnableComponent&41;&41;
class USynthComponentMonoWaveTable : public USynthComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| UMonoWaveTableSynthPreset * | CachedPreset | ||
| TObjectPtr< UMonoWaveTableSynthPreset > | CurrentPreset | The settings asset to use for this synth | |
| FNumTablesChanged | OnNumTablesChanged | Curve array altered. | |
| FOnTableAltered | OnTableAltered | Wave Table curve was edited. | |
| Audio::DefaultWaveTableIndexType | SampleRate | ||
| Audio::FMonoWaveTable | Synth | Underlying wavetable synth |
Constructors
No constructors are accessible with public or protected access.
Destructors
No destructors are accessible with public or protected access.
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | GetCurveTangent
(
int32 TableIndex |
TODO: Enable this functionality when Curve bug is fixed. | |
| TArray< float > | GetKeyFrameValuesForTable
(
float TableIndex |
Get an array of floats that represent the key frames in the requested curve. | |
| int32 | Get the number of curves in the wave table. (returns -1 if there is no asset) | ||
| int32 | Get the number of table elements from Blueprint. | ||
| void | InitSynth () |
Initializes the underlying synthesizer. | |
| void | NoteOff
(
const float InMidiNote |
Starts a new note (retrigs modulators, etc.) | |
| void | NoteOn
(
const float InMidiNote, |
Starts a new note (retrigs modulators, etc.) | |
| void | ReactToAssetChange
(
const AssetChangeInfo& ChangeInfo |
Callback for the UAsset this synth component is subscribed to Compares cached data to current UAsset data and makes updates | |
| void | Refresh all wavetables (from Game Thread data) | ||
| void | RefreshWaveTable
(
int32 Index |
Refresh a particular wavetable (from Game Thread data) | |
| void | ResetCurve
(
int32 Index |
Helper function that resets a curve to a default saw-tooth (so a curve is always immediately audible without user effort) | |
| void | SetAmpEnvelopeAttackTime
(
const float InAttackTimeMsec |
Set Amp envelope attack time (msec) | |
| void | SetAmpEnvelopeBiasDepth
(
const float InDepth |
Set the bias depth of the the Amp envelope. | |
| void | SetAmpEnvelopeBiasInvert
(
const bool bInBiasInvert |
Set whether or not the Amp envelope's bias is inverted. | |
| void | SetAmpEnvelopeDecayTime
(
const float InDecayTimeMsec |
Set Amp envelope decay time (msec) | |
| void | SetAmpEnvelopeDepth
(
const float InDepth |
Set the overall depth of the Amp envelope. | |
| void | SetAmpEnvelopeInvert
(
const bool bInInvert |
Set whether or not the Amp envelope is inverted. | |
| void | SetAmpEnvelopeReleaseTime
(
const float InReleaseTimeMsec |
Set Amp envelope release time (msec) | |
| void | SetAmpEnvelopeSustainGain
(
const float InSustainGain |
Set Amp envelope sustain gain [0.0, 1.0]. | |
| bool | SetCurveInterpolationType
(
CurveInterpolationType InterpolationType, |
Set the curve interpolation type (What the curve is doing between keyframes) This should only be used for live-editing features! (changing the curves at runtime is expensive) | |
| bool | SetCurveTangent
(
int32 TableIndex, |
Set the curve tangent ("Curve depth" between keyframes) This should only be used for live-editing features! (changing the curves at runtime is expensive) | |
| bool | SetCurveValue
(
int32 TableIndex, |
Set a Keyframe value given a Table number and Keyframe number. | |
| void | SetFilterEnvelopeAttackTime
(
const float InAttackTimeMsec |
Set Low-Pass Filter envelope attack time (msec) | |
| void | SetFilterEnvelopeBiasDepth
(
const float InDepth |
Set Low-Pass Filter envelope bias depth. | |
| void | SetFilterEnvelopeBiasInvert
(
const bool bInBiasInvert |
Set Low-Pass Filter envelope bias inversion. | |
| void | SetFilterEnvelopeDepth
(
const float InDepth |
Set Low-Pass Filter envelope depth. | |
| void | SetFilterEnvelopeInvert
(
const bool bInInvert |
Set Low-Pass Filter envelope inversion. | |
| void | SetFilterEnvelopenDecayTime
(
const float InDecayTimeMsec |
Set Low-Pass Filter envelope decay time (msec) | |
| void | SetFilterEnvelopeReleaseTime
(
const float InReleaseTimeMsec |
Set Low-Pass Filter envelope release time (msec) | |
| void | SetFilterEnvelopeSustainGain
(
const float InSustainGain |
Set Low-Pass Filter envelope sustain gain. | |
| void | SetFrequency
(
const float FrequencyHz |
Sets the oscillator's frequency. | |
| void | SetFrequencyPitchBend
(
const float FrequencyOffsetCents |
Set a frequency offset in cents (for pitch modulation such as the Pitch Bend Wheel) | |
| void | SetFrequencyWithMidiNote
(
const float InMidiNote |
Set the oscillator's frequency via midi note number. | |
| void | SetLowPassFilterResonance
(
float InNewQ |
Set the Cut-off frequency of the low-pass filter. | |
| void | SetPositionEnvelopeAttackTime
(
const float InAttackTimeMsec |
Set Position envelope attack time (msec) | |
| void | SetPositionEnvelopeBiasDepth
(
const float InDepth |
Set Position envelope bias depth. | |
| void | SetPositionEnvelopeBiasInvert
(
const bool bInBiasInvert |
Set Position envelope bias inversion. | |
| void | SetPositionEnvelopeDecayTime
(
const float InDecayTimeMsec |
Set Position envelope decay time (msec) | |
| void | SetPositionEnvelopeDepth
(
const float InDepth |
Set Position envelope envelope depth. | |
| void | SetPositionEnvelopeInvert
(
const bool bInInvert |
Set Position envelope envelope inversion. | |
| void | SetPositionEnvelopeReleaseTime
(
const float InReleaseTimeMsec |
Set Position envelope release time (msec) | |
| void | SetPositionEnvelopeSustainGain
(
const float InSustainGain |
Set Position envelope sustain gain. | |
| void | SetPosLfoDepth
(
const float InLfoDepth |
Set the Modulation depth of the Lfo controlling the Table Position around the current position value 0.0 = no modulation, 1.0 = current position +/- 0.5 (Lfo + Position result will clamp [0.0, 1.0]) | |
| void | SetPosLfoFrequency
(
const float InLfoFrequency |
Set frequency of LFO controlling Table Position (in Hz) | |
| void | SetPosLfoType
(
const ESynthLFOType InLfoType |
Set the shape of the Lfo controlling the position. | |
| void | SetSustainPedalState
(
bool InSustainPedalState |
Inform the synth if the sustain pedal is pressed or not. | |
| void | SetSynthPreset
(
UMonoWaveTableSynthPreset* SynthPreset |
Switch to another preset (STOPS SYNTH FROM PLAYING) | |
| void | SetWaveTablePosition
(
float InPosition |
Sets the wavetable position. Expects a percentage between 0.0 and 1.0. |
Overridden from USynthComponent
| Type | Name | Description | |
|---|---|---|---|
| void | SetLowPassFilterFrequency
(
float InLowPassFilterFrequency |
Sets lowpass filter frequency of the audio component. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Override on Post property change thing here (see if we got a new preset) |