mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-30 18:37:40 +01:00
fix up marshall/unmarshall of note data for MidiModel::DiffCommand
git-svn-id: svn://localhost/ardour2/branches/3.0@5662 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3023d53d7d
commit
bf0a99f0c0
10 changed files with 90 additions and 37 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#define __STDC_LIMIT_MACROS 1
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <iostream>
|
||||
#include <stdint.h>
|
||||
#include "libsmf/smf.h"
|
||||
|
|
@ -262,5 +263,13 @@ SMF::end_write() THROW_FILE_ERROR
|
|||
throw FileError();
|
||||
}
|
||||
|
||||
double
|
||||
SMF::round_to_file_precision (double val) const
|
||||
{
|
||||
double div = ppqn();
|
||||
|
||||
return round (val * div) / div;
|
||||
}
|
||||
|
||||
|
||||
} // namespace Evoral
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue