Wrap MusicalTime in a class.

This lets us get a more explicit handle on time conversions, and is the main
step towards using actual beat:tick time and getting away from floating point
precision problems.
This commit is contained in:
David Robillard 2014-11-22 04:05:42 -05:00
parent cae74309a5
commit c1cfa12d6e
44 changed files with 519 additions and 326 deletions

View file

@ -143,7 +143,7 @@ PatchChangeDialog::instrument_info_changed ()
Evoral::PatchChange<Evoral::MusicalTime>
PatchChangeDialog::patch () const
{
Evoral::MusicalTime t = 0;
Evoral::MusicalTime t = Evoral::MusicalTime();
if (_time_converter) {
t = _time_converter->from (_time.current_time ());