summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-01-07 02:40:13 +0000
committerDavid Robillard <d@drobilla.net>2009-01-07 02:40:13 +0000
commit3f662b9f9dd317b27b273b6d796d0e72606ff346 (patch)
treee3cdb7eb6cd86b6e9cef5c2bbd02cfee24ca1aad /gtk2_ardour/midi_region_view.h
parent37bfa28cad6b56febbe67f29fe8da5ecfb945fba (diff)
Fix audible note select:
- Don't play note a bajillion times when touch selecting - Don't spawn a thread for each note off (schedule an idle handler instead) - Play notes when rect selecting git-svn-id: svn://localhost/ardour2/branches/3.0@4392 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index bffaf4ade2..9a905fad54 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -261,14 +261,15 @@ class MidiRegionView : public RegionView
void reset_width_dependent_items (double pixel_width);
private:
- /** play back the given MIDI note immediately
+ /** Play the NoteOn event of the given note immediately
+ * and schedule the playback of the corresponding NoteOff event.
*/
void play_midi_note(boost::shared_ptr<Evoral::Note> note);
- /** play back the NoteOff-Event of the given note (used by
- * @ref play_midi_note() ) after waiting the duration of the MIDI Note
+ /** Play the NoteOff-Event of the given note immediately
+ * (scheduled by @ref play_midi_note()).
*/
- void play_midi_note_off(boost::shared_ptr<Evoral::Note> note);
+ bool play_midi_note_off(boost::shared_ptr<Evoral::Note> note);
void clear_events();
void switch_source(boost::shared_ptr<ARDOUR::Source> src);