push2: vector, not map

This commit is contained in:
Paul Davis 2022-08-27 16:03:01 -06:00
parent 6627d24c2b
commit 06abdb4c4e
3 changed files with 10 additions and 7 deletions

View file

@ -455,7 +455,6 @@ class Push2 : public ARDOUR::ControlProtocol
typedef std::map<int,boost::shared_ptr<Pad> > PadMap;
PadMap const & nn_pad_map() const { return _nn_pad_map; }
PadMap const & xy_pad_map() const { return _xy_pad_map; }
boost::shared_ptr<Pad> pad_by_xy (int x, int y);
@ -499,9 +498,9 @@ class Push2 : public ARDOUR::ControlProtocol
*/
PadMap _nn_pad_map;
/* map of Pads by x,y duple (computed as (x*8) + y */
/* array of Pads by x,y duple (indexed as (x*8) + y */
PadMap _xy_pad_map;
std::vector<boost::shared_ptr<Pad> > _xy_pad_map;
/* map of Pads by note number they generate (their "filtered" value)
*/