13
0

Fix source/region length on MIDI import.

git-svn-id: svn://localhost/ardour2/branches/3.0@3391 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2008-05-22 20:00:54 +00:00
parent f360ef94da
commit fdebcfb838
2 changed files with 1 additions and 3 deletions

View File

@ -343,7 +343,7 @@ write_midi_data_to_new_files (SMFReader* source, Session::import_status& status,
smfs->session().engine().frame_rate(), smfs->session().engine().frame_rate(),
smfs->session().tempo_map().meter_at(timeline_position)); 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) floor ((t / source->ppqn()) * frames_per_beat));
smfs->flush_header(); smfs->flush_header();
smfs->flush_footer(); smfs->flush_footer();

View File

@ -71,8 +71,6 @@ SMFSource::SMFSource (Session& s, std::string path, Flag flags)
throw failed_constructor (); throw failed_constructor ();
} }
cerr << "SMF Source path: " << path << endl;
assert(_name.find("/") == string::npos); assert(_name.find("/") == string::npos);
} }