NOW LOADING

MidiSequenceTimeSignature


One time signature change in a sequence
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.

Struct Fields

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

Remarks

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.

Didn't find what you were looking for?

Windows MIDI Services is an open source project with all source available on GitHub. We have a great community on Discord as well. Between GitHub and Discord, you should find the information you are looking for.