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
Tempo
Tempo markers
public TempoMap Tempo { get; }
Property Value
TimeSignatures
Time signature markers
public List<TimeSignature> TimeSignatures { get; }
Property Value
Methods
FromFile(string, ReadingConfiguration?)
Reads a SyncTrack from a file.
public static SyncTrack FromFile(string path, ReadingConfiguration? config = null)
Parameters
path
stringPath of the file
config
ReadingConfiguration
Returns
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
ReadingConfigurationcancellationToken
CancellationTokenToken to request cancellation
Returns
ToFile(string, WritingConfiguration?)
public void ToFile(string path, WritingConfiguration? config = null)
Parameters
path
stringconfig
WritingConfiguration
ToFileAsync(string, WritingConfiguration?, CancellationToken)
public Task ToFileAsync(string path, WritingConfiguration? config = null, CancellationToken cancellationToken = default)
Parameters
path
stringconfig
WritingConfigurationcancellationToken
CancellationToken