Musical Time Model

 

The MidiShare time model is based on a continuous model of millisecond real-time. Although this basic model is suitable for a lot of applications like real-time Midi treatments, it is not well suited with a sequencer model. Sequencers usually use a musical time model where dates in the score are expressed in ticks values to be converted in real-time using a tempo information. The Player library contains a musical time component used to convert between the different notion of time: time in Bar, Beat, Unit, time in ticks, and time in millisecond.

BBU <====> TimeSign <====> Ticks <====> Tempo <===> Millisecond

Several classes are provided to deal with time conversion :