Table of Contents

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

Bar int
Beat int
TickInBeat int

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

int

Beat

public int Beat { get; init; }

Property Value

int

Start

Bar 1, beat 1, tick 0 — the start of a sequence.

public static BarBeatTick Start { get; }

Property Value

BarBeatTick

TickInBeat

public int TickInBeat { get; init; }

Property Value

int