| Hi Luca, the "tick" is the standard time unit for MIDI files, according to the SMF format. A tick is a division of a beat. The default division is 1024, meaning 1024 ticks == 1 beat (quarter note), but imported MIDI files can have different division values (for example Sibelius outputs MIDI files with 960 division if I remember correctly). So the actual start / end / duration times of notes of a file in timeMode == 'ticks' depends on the tempo (which is stored in the metaEvents if there are tempo changes in the file, and otherwise in the <midifile>.tempo ). The timeMode_( \seconds ) option is a convenience mode which makes things within SC a lot easier. Setting the timeMode to seconds internally converts the ticks to whole seconds, using the tempo information in the file, for easier manipulation in SC. When a MIDI file is written to disk however, information will be converted back to ticks, and the timing resolution will be dictated by the division setting (ticks are stored as integers). Hope that helps to understand, cheers, Wouter
|