summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2017-01-04 00:19:31 +1100
committernick_m <mainsbridge@gmail.com>2017-01-04 00:19:31 +1100
commit9e9f99f0048e05323b91aad95425197e11290181 (patch)
tree61a48473480cd6d38a5ba44a9b2880bd25703bfc /gtk2_ardour/midi_region_view.h
parent7785389e5015933067ec636623fc91987a81e928 (diff)
note display performance.
use boost::unordered_map as a note store for ghost & midi region views. as per otiginal method, only notes within regoin bounds are stored.
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index a608ad810c..e1af49abce 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -409,9 +409,9 @@ private:
uint8_t _current_range_min;
uint8_t _current_range_max;
- typedef std::list<NoteBase*> Events;
- typedef std::map<ARDOUR::MidiModel::PatchChangePtr, boost::shared_ptr<PatchChange> > PatchChanges;
- typedef std::vector< boost::shared_ptr<SysEx> > SysExes;
+ typedef boost::unordered_map<boost::shared_ptr<NoteType>, NoteBase*> Events;
+ typedef boost::unordered_map<ARDOUR::MidiModel::PatchChangePtr, boost::shared_ptr<PatchChange> > PatchChanges;
+ typedef std::vector< boost::shared_ptr<SysEx> > SysExes;
ARDOUR::BeatsFramesConverter _region_relative_time_converter;
ARDOUR::BeatsFramesConverter _source_relative_time_converter;
@@ -438,9 +438,6 @@ private:
/** Currently selected NoteBase objects */
Selection _selection;
- bool _sort_needed;
- void time_sort_events ();
-
MidiCutBuffer* selection_as_cut_buffer () const;
/** New notes (created in the current command) which should be selected