projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54bec37
)
Fix rounding errors in region/source length calculuation in import (regions appearing...
author
David Robillard
<d@drobilla.net>
Thu, 22 May 2008 21:46:44 +0000
(21:46 +0000)
committer
David Robillard
<d@drobilla.net>
Thu, 22 May 2008 21:46:44 +0000
(21:46 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@3396
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/import.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/import.cc
b/libs/ardour/import.cc
index c9d287c29207ed2a0c06bd03ba259e0a731fb7ca..d79c930e6dd8f3186b317303e2e44808833d81a2 100644
(file)
--- a/
libs/ardour/import.cc
+++ b/
libs/ardour/import.cc
@@
-343,7
+343,7
@@
write_midi_data_to_new_files (SMFReader* source, Session::import_status& status,
smfs->session().engine().frame_rate(),
smfs->session().tempo_map().meter_at(timeline_position));
- smfs->update_length(0, (nframes_t)
floor ((t /
source->ppqn()) * frames_per_beat));
+ smfs->update_length(0, (nframes_t)
ceil ((t / (double)
source->ppqn()) * frames_per_beat));
smfs->flush_header();
smfs->flush_footer();