Struct BarBeatTick
- Namespace
- NAudio.Sequencing
- Assembly
- NAudio.Core.dll
A human-readable musical position. Bar and Beat are 1-based (matching how musicians count); TickInBeat is 0-based.
public readonly record struct BarBeatTick : IEquatable<BarBeatTick>
- Implements
- Inherited Members
Remarks
This is a display / addressing type only. Storage and arithmetic happen in raw canonical ticks (CanonicalPpq). Convert via TimeSignatureMap.
Constructors
BarBeatTick(int, int, int)
A human-readable musical position. Bar and Beat are 1-based (matching how musicians count); TickInBeat is 0-based.
public BarBeatTick(int Bar, int Beat, int TickInBeat)
Parameters
Remarks
This is a display / addressing type only. Storage and arithmetic happen in raw canonical ticks (CanonicalPpq). Convert via TimeSignatureMap.
Properties
Bar
public int Bar { get; init; }
Property Value
Beat
public int Beat { get; init; }
Property Value
Start
Bar 1, beat 1, tick 0 — the start of a sequence.
public static BarBeatTick Start { get; }
Property Value
TickInBeat
public int TickInBeat { get; init; }