diff options
author | Robin Gareus <robin@gareus.org> | 2019-04-08 20:00:02 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-04-08 20:19:15 +0200 |
commit | f9e12235c3cba154a5c1a88a647bf1a1531fb1f3 (patch) | |
tree | e012595456c0d704cea76c392eea2e233645bdcf /gtk2_ardour/audio_region_view.cc | |
parent | 9f77a6f7fe204dafe60db6b91cefb25cdc0c36be (diff) |
Frame as in "picture frame", not sample
Diffstat (limited to 'gtk2_ardour/audio_region_view.cc')
-rw-r--r-- | gtk2_ardour/audio_region_view.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index 79081eb284..42e4c5a303 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -708,7 +708,7 @@ AudioRegionView::reset_fade_out_shape_width (boost::shared_ptr<AudioRegion> ar, double const pwidth = floor(trackview.editor().sample_to_pixel (width)); - /* the right edge should be right on the region sample is the pixel + /* the right edge should be right on the region frame is the pixel * width is zero. Hence the additional + 1.0 at the end. */ @@ -1339,7 +1339,7 @@ AudioRegionView::add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *ev, b return; } - /*y is in item sample */ + /* y is in item frame */ double const bx = gain_line->nth (before_p)->get_x(); double const ax = gain_line->nth (after_p)->get_x(); double const click_ratio = (ax - mx) / (ax - bx); @@ -1591,13 +1591,13 @@ AudioRegionView::set_some_waveform_colors (vector<ArdourWaveView::WaveView*>& wa } void -AudioRegionView::set_sample_color () +AudioRegionView::set_frame_color () { - if (!sample) { + if (!frame) { return; } - RegionView::set_sample_color (); + RegionView::set_frame_color (); set_waveform_colors (); } |