Struct Modulator.Source.Index
- Namespace
- SpessaSharp.SoundBank
- Assembly
- SpessaSharp.dll
public readonly struct Modulator.Source.Index : IEquatable<Modulator.Source.Index>
- Implements
- Inherited Members
Constructors
Index(CC)
public Index(Midi.CC c)
Parameters
Index(ControllerSource)
public Index(Modulator.Source.ControllerSource e)
Parameters
Index(byte)
public Index(byte v)
Parameters
vbyte
Properties
AsControllerSource
public Modulator.Source.ControllerSource AsControllerSource { get; }
Property Value
AsInt
public int AsInt { get; }
Property Value
AsMidiController
public Midi.CC AsMidiController { get; }
Property Value
Methods
Equals(Index)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Modulator.Source.Index other)
Parameters
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Name(bool)
public string Name(bool isCC)
Parameters
isCCbool
Returns
Of(bool, int)
public static Modulator.Source.Index Of(bool isCC, int id)
Parameters
Returns
Operators
operator ==(Index, Index)
public static bool operator ==(Modulator.Source.Index left, Modulator.Source.Index right)
Parameters
Returns
operator !=(Index, Index)
public static bool operator !=(Modulator.Source.Index left, Modulator.Source.Index right)