Table of Contents

Class TempoMap

Namespace
ChartTools
Assembly
ChartTools.dll

Set of tempo markers that handles synchronism of anchored tempos

public class TempoMap : IList<Tempo>, ICollection<Tempo>, IEnumerable<Tempo>, IEnumerable
Inheritance
TempoMap
Implements
Inherited Members
Extension Methods

Constructors

TempoMap()

public TempoMap()

Properties

Count

public int Count { get; }

Property Value

int

this[int]

public Tempo this[int index] { get; set; }

Parameters

index int

Property Value

Tempo

Synchronized

Indicates if all anchored markers are synchronized.

public bool Synchronized { get; }

Property Value

bool

Methods

Add(Tempo)

public void Add(Tempo item)

Parameters

item Tempo

AddRange(IEnumerable<Tempo>)

public void AddRange(IEnumerable<Tempo> items)

Parameters

items IEnumerable<Tempo>

Clear()

public void Clear()

Clear(bool)

public void Clear(bool detachMap)

Parameters

detachMap bool

Contains(Tempo)

public bool Contains(Tempo item)

Parameters

item Tempo

Returns

bool

CopyTo(Tempo[], int)

public void CopyTo(Tempo[] array, int arrayIndex)

Parameters

array Tempo[]
arrayIndex int

GetEnumerator()

public IEnumerator<Tempo> GetEnumerator()

Returns

IEnumerator<Tempo>

IndexOf(Tempo)

public int IndexOf(Tempo item)

Parameters

item Tempo

Returns

int

Insert(int, Tempo)

public void Insert(int index, Tempo item)

Parameters

index int
item Tempo

InsertRange(int, IEnumerable<Tempo>)

public void InsertRange(int index, IEnumerable<Tempo> items)

Parameters

index int
items IEnumerable<Tempo>

Remove(Tempo)

public bool Remove(Tempo item)

Parameters

item Tempo

Returns

bool

Remove(Tempo, bool)

public bool Remove(Tempo item, bool detachMap)

Parameters

item Tempo
detachMap bool

Returns

bool

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int

RemoveAt(int, bool)

public void RemoveAt(int index, bool detachMap)

Parameters

index int
detachMap bool

Synchronize(uint, bool)

Synchronizes anchored markers by calculating their tick position.

public void Synchronize(uint resolution, bool desyncedPreOrdered = false)

Parameters

resolution uint
desyncedPreOrdered bool

Exceptions

Exception