AudioStreamView::AudioStreamView (AudioTimeAxisView& tv)
: StreamView (tv)
{
- crossfades_visible = true;
+ crossfades_visible = tv.session()->config.get_xfades_visible ();
color_handler ();
_amplitude_above_axis = 1.0;
cv->set_valid (true);
crossfade->Invalidated.connect (*this, invalidator (*this), ui_bind (&AudioStreamView::remove_crossfade, this, _1), gui_context());
crossfade_views[cv->crossfade] = cv;
- if (!_trackview.session()->config.get_xfades_visible() || !crossfades_visible) {
+ if (!crossfades_visible) {
cv->hide ();
}
void
AudioStreamView::update_content_height (CrossfadeView* cv)
{
- cv->show ();
-
if (_layer_display == Overlaid) {
cv->set_y (0);
p.set_x (i + 1);
p.set_y (_height - ((_height - 2) * vec[i]));
}
-
+
fade_in->property_points() = *points;
crossfade->fade_out().curve().get_vector (0, crossfade->length(), vec, npoints);
void
CrossfadeView::show ()
{
- group->show();
_visible = true;
+ group->show();
+ redraw_curves ();
}
void