+ use_rec_regions = tv.editor().show_waveforms_recording ();
+
+ /* use a group dedicated to MIDI underlays. Audio underlays are not in this group. */
+ midi_underlay_group = new ArdourCanvas::Group (*canvas_group);
+ midi_underlay_group->lower_to_bottom();
+
+ /* put the note lines in the timeaxisview's group, so it
+ can be put below ghost regions from MIDI underlays*/
+ _note_lines = new ArdourCanvas::LineSet(*canvas_group, ArdourCanvas::LineSet::Horizontal);
+
+ _note_lines->property_x1() = 0;
+ _note_lines->property_y1() = 0;
+ _note_lines->property_x2() = trackview().editor().frame_to_pixel (max_frames);
+ _note_lines->property_y2() = 0;
+
+ _note_lines->signal_event().connect (bind (mem_fun (_trackview.editor(), &PublicEditor::canvas_stream_view_event), _note_lines, &_trackview));
+ _note_lines->lower_to_bottom();
+
+ ColorsChanged.connect(mem_fun(*this, &MidiStreamView::draw_note_lines));
+
+ note_range_adjustment.set_page_size(_highest_note - _lowest_note);
+ note_range_adjustment.set_value(_lowest_note);
+
+ note_range_adjustment.signal_value_changed().connect (mem_fun (*this, &MidiStreamView::note_range_adjustment_changed));