Navigation
API > API/Plugins > API/Plugins/MetasoundStandardNodes
References
| Module | MetasoundStandardNodes |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundStandardNodes/Public/MetasoundGain.h |
| Include | #include "MetasoundGain.h" |
Syntax
class FGain
Remarks
FGain represents a gain value. It provides clearly defined getters and setters as well as several convenience functions for converting gain to decibels.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FGain () |
Construct gain of 1 | ||
FGain
(
float InValue |
FGain constructor used to pass in float literals from the metasound frontend. | ||
FGain
(
float InValue, |
Construct a Gain with a given value and representation. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | GetDecibels () |
Get the gain in decibels | |
| float | GetLinear () |
Return the gain in LinearScale. | |
| void | SetDecibels
(
float InDecibels |
Set the gain in decibels | |
| void | SetLinear
(
float InLinearScale |
Set the gain in LinearScale |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Implicit operator used for math operations. | |||
| FGain & | operator*=
(
const FGain& InOther |
||
| FGain & | operator/=
(
const FGain& InOther |
||
| FGain & | operator+=
(
const FGain& InOther |
||
| FGain & | operator-=
(
const FGain& InOther |
Constants
| Name | Description |
|---|---|
| DefaultGain |