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

c Midi.CC

Index(ControllerSource)

public Index(Modulator.Source.ControllerSource e)

Parameters

e Modulator.Source.ControllerSource

Index(byte)

public Index(byte v)

Parameters

v byte

Properties

AsControllerSource

public Modulator.Source.ControllerSource AsControllerSource { get; }

Property Value

Modulator.Source.ControllerSource

AsInt

public int AsInt { get; }

Property Value

int

AsMidiController

public Midi.CC AsMidiController { get; }

Property Value

Midi.CC

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

other Modulator.Source.Index

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

isCC bool

Returns

string

Of(bool, int)

public static Modulator.Source.Index Of(bool isCC, int id)

Parameters

isCC bool
id int

Returns

Modulator.Source.Index

Operators

operator ==(Index, Index)

public static bool operator ==(Modulator.Source.Index left, Modulator.Source.Index right)

Parameters

left Modulator.Source.Index
right Modulator.Source.Index

Returns

bool

operator !=(Index, Index)

public static bool operator !=(Modulator.Source.Index left, Modulator.Source.Index right)

Parameters

left Modulator.Source.Index
right Modulator.Source.Index

Returns

bool