From 166ef64e3db4ab72b7b1e7455234e2b9ceddf6d8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 2 Feb 2009 02:36:05 +0000 Subject: Make (MIDI) event time stamp type a template parameter. git-svn-id: svn://localhost/ardour2/branches/3.0@4473 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_region_view.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gtk2_ardour/midi_region_view.h') diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index 6dc8e67565..16b11e176b 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -58,6 +58,8 @@ class AutomationRegionView; class MidiRegionView : public RegionView { public: + typedef Evoral::Note NoteType; + MidiRegionView (ArdourCanvas::Group *, RouteTimeAxisView&, boost::shared_ptr, @@ -91,7 +93,7 @@ class MidiRegionView : public RegionView GhostRegion* add_ghost (TimeAxisView&); - void add_note(const boost::shared_ptr note); + void add_note(const boost::shared_ptr note); void resolve_note(uint8_t note_num, double end_time); struct ControlEvent @@ -159,7 +161,7 @@ class MidiRegionView : public RegionView void display_model(boost::shared_ptr model); void start_delta_command(string name = "midi edit"); - void command_add_note(const boost::shared_ptr note, bool selected); + void command_add_note(const boost::shared_ptr note, bool selected); void command_remove_note(ArdourCanvas::CanvasNoteEvent* ev); void apply_command(); @@ -264,12 +266,12 @@ class MidiRegionView : public RegionView /** 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 note); + void play_midi_note(boost::shared_ptr note); /** Play the NoteOff-Event of the given note immediately * (scheduled by @ref play_midi_note()). */ - bool play_midi_note_off(boost::shared_ptr note); + bool play_midi_note_off(boost::shared_ptr note); void clear_events(); void switch_source(boost::shared_ptr src); @@ -317,7 +319,7 @@ class MidiRegionView : public RegionView /** New notes (created in the current command) which should be selected * when they appear after the command is applied. */ - std::set< boost::shared_ptr > _marked_for_selection; + std::set< boost::shared_ptr > _marked_for_selection; std::vector _resize_data; }; -- cgit v1.2.3