Struct Speed
- Namespace
- SunSharp
- Assembly
- SunSharp.dll
Contains beats per minute and ticks per line.
public readonly struct Speed
Constructors
Speed(short, short)
public Speed(short bpm, short tpl)
Parameters
bpmshorttplshort
Speed(uint)
public Speed(uint value)
Parameters
valueuint
Properties
Bpm
Beats per minute.
public short Bpm { get; }
Property Value
- short
Tpl
Ticks per line.
public short Tpl { get; }
Property Value
- short
Value
public uint Value { get; }
Property Value
- uint
Methods
Equals(Speed)
public bool Equals(Speed other)
Parameters
otherSpeed
Returns
- bool
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.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(Speed, Speed)
public static bool operator ==(Speed left, Speed right)
Parameters
Returns
- bool
implicit operator uint(Speed)
public static implicit operator uint(Speed speed)
Parameters
speedSpeed
Returns
- uint
implicit operator Speed(uint)
public static implicit operator Speed(uint value)
Parameters
valueuint
Returns
operator !=(Speed, Speed)
public static bool operator !=(Speed left, Speed right)
Parameters
Returns
- bool