Struct ChannelSystemParameter
- Namespace
- SpessaSharp.Synthesizer.Engine.Channel.Parameters
- Assembly
- SpessaSharp.dll
The system parameters of the channel.
public readonly record struct ChannelSystemParameter : IEquatable<ChannelSystemParameter>
- Implements
- Inherited Members
Fields
PType
public readonly ChannelSystemParameter.Type PType
Field Value
Properties
AsBool
public bool AsBool { get; }
Property Value
AsFloat
public float AsFloat { get; }
Property Value
AsInt
public int AsInt { get; }
Property Value
AsOptBool
public bool? AsOptBool { get; }
Property Value
- bool?
AsOptInterpolationType
public Synthesizer.InterpolationType? AsOptInterpolationType { get; }
Property Value
Methods
Of(Type, bool)
public static ChannelSystemParameter Of(ChannelSystemParameter.Type type, bool value)
Parameters
typeChannelSystemParameter.Typevaluebool
Returns
Of(Type, int)
public static ChannelSystemParameter Of(ChannelSystemParameter.Type type, int value)
Parameters
typeChannelSystemParameter.Typevalueint
Returns
Of(Type, float)
public static ChannelSystemParameter Of(ChannelSystemParameter.Type type, float value)
Parameters
typeChannelSystemParameter.Typevaluefloat
Returns
Of(InterpolationType)
public static ChannelSystemParameter Of(Synthesizer.InterpolationType type)
Parameters
Returns
OfNull(Type)
public static ChannelSystemParameter OfNull(ChannelSystemParameter.Type type)
Parameters
Returns
OfOpt(Type, bool)
public static ChannelSystemParameter OfOpt(ChannelSystemParameter.Type type, bool value)
Parameters
typeChannelSystemParameter.Typevaluebool
Returns
Operators
implicit operator ChannelSystemParameter(InterpolationType)
public static implicit operator ChannelSystemParameter(Synthesizer.InterpolationType param)
Parameters
paramSynthesizer.InterpolationType
Returns
implicit operator ChannelSystemParameter((Type type, bool value))
public static implicit operator ChannelSystemParameter((ChannelSystemParameter.Type type, bool value) param)
Parameters
param(ChannelSystemParameter.Type type, bool value)
Returns
implicit operator ChannelSystemParameter((Type type, int value))
public static implicit operator ChannelSystemParameter((ChannelSystemParameter.Type type, int value) param)
Parameters
param(ChannelSystemParameter.Type type, int value)
Returns
implicit operator ChannelSystemParameter((Type type, float value))
public static implicit operator ChannelSystemParameter((ChannelSystemParameter.Type type, float value) param)
Parameters
param(ChannelSystemParameter.Type type, float value)