13
0

Fix whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@13935 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2013-01-21 01:08:43 +00:00
parent e34470b7bd
commit 58d0fa7240
2 changed files with 6 additions and 7 deletions

View File

@ -3701,10 +3701,8 @@ MidiRegionView::data_recorded (boost::weak_ptr<MidiSource> w)
Evoral::MusicalTime const time_beats = converter.from (ev.time () - converter.origin_b ()); Evoral::MusicalTime const time_beats = converter.from (ev.time () - converter.origin_b ());
if (ev.type() == MIDI_CMD_NOTE_ON) { if (ev.type() == MIDI_CMD_NOTE_ON) {
boost::shared_ptr<NoteType> note ( boost::shared_ptr<NoteType> note (
new NoteType (ev.channel(), time_beats, 0, ev.note(), ev.velocity()) new NoteType (ev.channel(), time_beats, 0, ev.note(), ev.velocity()));
);
add_note (note, true); add_note (note, true);

View File

@ -420,7 +420,8 @@ write_midi_data_to_new_files (Evoral::SMF* source, ImportStatus& status,
first = false; first = false;
} }
smfs->append_event_unlocked_beats(Evoral::Event<double>(0, smfs->append_event_unlocked_beats(
Evoral::Event<double>(0,
(double)t / (double)source->ppqn(), (double)t / (double)source->ppqn(),
size, size,
buf)); buf));