} else {
- add_note (note, visible);
+ cne = add_note (note, visible);
}
set<boost::shared_ptr<NoteType> >::iterator it;
* notes, and resolve_note should be called when the corresponding note off
* event arrives, to properly display the note.
*/
-void
+NoteBase*
MidiRegionView::add_note(const boost::shared_ptr<NoteType> note, bool visible)
{
NoteBase* event = 0;
MidiStreamView* const view = mtv->midi_view();
view->update_note_range (note->note());
+ return event;
}
void
GhostRegion* add_ghost (TimeAxisView&);
- void add_note(const boost::shared_ptr<NoteType> note, bool visible);
+ NoteBase* add_note(const boost::shared_ptr<NoteType> note, bool visible);
void resolve_note(uint8_t note_num, Evoral::Beats end_time);
void cut_copy_clear (Editing::CutCopyOp);