| Namespace | Windows.Devices.Midi2.Utilities.Sequencing |
|---|---|
| Type Name | MidiSequenceTimeSignature |
| Type | WinRT Struct |
| IDL | MidiSequenceTimeSignature.idl |
MidiSequenceTimeSignature is one entry in the time signature map of a MidiSequence. Get them from the sequence’s TimeSignatureMap collection.
| Field | Description |
|---|---|
Tick |
Where the change takes effect |
Numerator |
Beats per bar |
Denominator |
The note value that gets the beat. 4 means a quarter note, 8 an eighth note, and so on |
TicksPerBar |
How long a bar is with this time signature |
BarNumberAtTick |
The bar number at Tick, counted from one |
TicksPerBar and BarNumberAtTick are worked out while reading, so finding where a tick falls in the music doesn’t mean going through the whole file. That’s also what makes GetBarPositionAtTick on the sequence fast enough to call while drawing.
