MidiTickLookup Class

Summary

This class holds all information about when MasterBars and Beats are played.
Namespace
AlphaTab.Audio
Base Types
  • object
graph TD Base0["object"]-->Type Type["MidiTickLookup"] class Type type-node

Syntax

public class MidiTickLookup

Constructors

Name Summary
MidiTickLookup() Initializes a new instance of the MidiTickLookup class.

Properties

Name Value Summary
MasterBarLookup FastDictionary<TKey, TValue>
Gets a dictionary of all master bars played. The index is the index equals to Index.
MasterBars FastList<T>
Gets a list of all MasterBarTickLookup sorted by time.

Methods

Name Value Summary
AddBeat(BeatTickLookup) void
Adds the given BeatTickLookup to the current MasterBarTickLookup.
AddMasterBar(MasterBarTickLookup) void
Adds a new MasterBarTickLookup to the lookup table.
FindBeat(Track[], int) MidiTickLookupFindBeatResult
Finds the currently played beat given a list of tracks and the current time.
Finish() void
Performs the neccessary finalization steps after all information was written.
GetMasterBar(MasterBar) MasterBarTickLookup
Gets the MasterBarTickLookup for a given masterbar at which the masterbar is played the first time.
GetMasterBarStart(MasterBar) int
Gets the start time in midi ticks for a given masterbar at which the masterbar is played the first time.