13
0

sort of no-op: change variable name for slightly better legibility

This commit is contained in:
Paul Davis 2023-01-15 15:37:42 -07:00
parent 4b155cb946
commit 2a8f275174

View File

@ -71,22 +71,22 @@ VelocityGhostRegion::lollevent (GdkEvent* ev, MidiGhostRegion::GhostEvent* gev)
} }
void void
VelocityGhostRegion::add_note (NoteBase* n) VelocityGhostRegion::add_note (NoteBase* nb)
{ {
ArdourCanvas::Lollipop* l = new ArdourCanvas::Lollipop (_note_group); ArdourCanvas::Lollipop* l = new ArdourCanvas::Lollipop (_note_group);
GhostEvent* event = new GhostEvent (n, _note_group, l); GhostEvent* event = new GhostEvent (nb, _note_group, l);
events.insert (std::make_pair (n->note(), event)); events.insert (std::make_pair (nb->note(), event));
l->Event.connect (sigc::bind (sigc::mem_fun (*this, &VelocityGhostRegion::lollevent), event)); l->Event.connect (sigc::bind (sigc::mem_fun (*this, &VelocityGhostRegion::lollevent), event));
l->raise_to_top (); l->raise_to_top ();
event->item->set_fill_color (UIConfiguration::instance().color_mod(n->base_color(), "ghost track midi fill")); event->item->set_fill_color (UIConfiguration::instance().color_mod(nb->base_color(), "ghost track midi fill"));
event->item->set_outline_color (_outline); event->item->set_outline_color (_outline);
MidiStreamView* mv = midi_view(); MidiStreamView* mv = midi_view();
if (mv) { if (mv) {
if (!n->item()->visible()) { if (!nb->item()->visible()) {
l->hide(); l->hide();
} else { } else {
set_size_and_position (*event); set_size_and_position (*event);