Table of Contents

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

bpm short
tpl short

Speed(uint)

public Speed(uint value)

Parameters

value uint

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

other Speed

Returns

bool

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.

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

left Speed
right Speed

Returns

bool

implicit operator uint(Speed)

public static implicit operator uint(Speed speed)

Parameters

speed Speed

Returns

uint

implicit operator Speed(uint)

public static implicit operator Speed(uint value)

Parameters

value uint

Returns

Speed

operator !=(Speed, Speed)

public static bool operator !=(Speed left, Speed right)

Parameters

left Speed
right Speed

Returns

bool