Contents

timeResolution

The time resolution value for the sequence, in ticks (pulses) per quarter note.

Declaration

var timeResolution: Int { get }

Discussion

If you use a MIDI file to construct the containing sequence, the resolution is the contents of the file. If you want to keep a time resolution when writing a new file, retrieve this value and then specify it when writing to an audio sequencer. It doesn’t affect the rendering or notion of time of the sequence — only it’s MIDI file representation.

By default, the framework sets this value to 480 when creating the sequence manually, or to a value from a MIDI file if you use it to create the sequence.

You can only retrieve this value from the tempo track.

See Also

Configuring Music Track Properties