diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-14 20:28:37 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-14 20:28:37 +0000 |
commit | f09524b9d30115e51294edc3af4399194f8478f1 (patch) | |
tree | 7c3bb83e413f790fac39b0d7c9a7e31ae279d5d2 /gtk2_ardour/step_editor.cc | |
parent | ee5a37a306babadc81ac4a2612b260dc612a381a (diff) |
move ticks per beat from Meter to Timecode::BBT_Time, add new constructor for BBT_Time based on a double value; reduce BeatFramesConverted to 1 liners pending likely removal
git-svn-id: svn://localhost/ardour2/branches/3.0@8277 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/step_editor.cc')
-rw-r--r-- | gtk2_ardour/step_editor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/step_editor.cc b/gtk2_ardour/step_editor.cc index c4d62def90..079644eabc 100644 --- a/gtk2_ardour/step_editor.cc +++ b/gtk2_ardour/step_editor.cc @@ -273,8 +273,8 @@ StepEditor::step_add_note (uint8_t channel, uint8_t pitch, uint8_t velocity, Evo up by 1 tick from where the last note ended */ - at += 1.0/Meter::ticks_per_beat; - len -= 1.0/Meter::ticks_per_beat; + at += 1.0/Timecode::BBT_Time::ticks_per_beat; + len -= 1.0/Timecode::BBT_Time::ticks_per_beat; } step_edit_region_view->step_add_note (channel, pitch, velocity, at, len); @@ -294,7 +294,7 @@ StepEditor::step_add_note (uint8_t channel, uint8_t pitch, uint8_t velocity, Evo step_edit_beat_pos += beat_duration; step_edit_region_view->move_step_edit_cursor (step_edit_beat_pos); } else { - step_edit_beat_pos += 1.0/Meter::ticks_per_beat; // tiny, but no longer overlapping + step_edit_beat_pos += 1.0/Timecode::BBT_Time::ticks_per_beat; // tiny, but no longer overlapping _step_edit_chord_duration = max (_step_edit_chord_duration, beat_duration); } |