Table of Contents

Class SyncTrack

Namespace
ChartTools
Assembly
ChartTools.dll

Set of markers that define the time signature and tempo

public class SyncTrack : IEmptyVerifiable
Inheritance
SyncTrack
Implements
Inherited Members
Extension Methods

Properties

IsEmpty

true if containing no data

public bool IsEmpty { get; }

Property Value

bool

Tempo

Tempo markers

public TempoMap Tempo { get; }

Property Value

TempoMap

TimeSignatures

Time signature markers

public List<TimeSignature> TimeSignatures { get; }

Property Value

List<TimeSignature>

Methods

FromFile(string, ReadingConfiguration?)

Reads a SyncTrack from a file.

public static SyncTrack FromFile(string path, ReadingConfiguration? config = null)

Parameters

path string

Path of the file

config ReadingConfiguration

Returns

SyncTrack

FromFileAsync(string, ReadingConfiguration?, CancellationToken)

Reads a SyncTrack from a file asynchronously using multitasking.

public static Task<SyncTrack> FromFileAsync(string path, ReadingConfiguration? config = null, CancellationToken cancellationToken = default)

Parameters

path string
Path of the file
config ReadingConfiguration
cancellationToken CancellationToken

Token to request cancellation

Returns

Task<SyncTrack>

ToFile(string, WritingConfiguration?)

public void ToFile(string path, WritingConfiguration? config = null)

Parameters

path string
config WritingConfiguration

ToFileAsync(string, WritingConfiguration?, CancellationToken)

public Task ToFileAsync(string path, WritingConfiguration? config = null, CancellationToken cancellationToken = default)

Parameters

path string
config WritingConfiguration
cancellationToken CancellationToken

Returns

Task