mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 02:56:35 +01:00
Fix rounding errors in region/source length calculuation in import (regions appearing slightly too short).
git-svn-id: svn://localhost/ardour2/branches/3.0@3396 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
54bec37b5a
commit
f32938f38e
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue