mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
push2: reset pad colors when necessary
This commit is contained in:
parent
a4cd0d7dae
commit
33713d6f68
1 changed files with 8 additions and 0 deletions
|
|
@ -1248,6 +1248,12 @@ Push2::pad_note (int row, int col) const
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Push2::reset_pad_colors ()
|
||||||
|
{
|
||||||
|
set_pad_scale (_scale_root, _root_octave, _mode, _in_key);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Push2::set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey)
|
Push2::set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey)
|
||||||
{
|
{
|
||||||
|
|
@ -1333,6 +1339,7 @@ Push2::set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey)
|
||||||
pad->filtered = -1;
|
pad->filtered = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pad->set_state (LED::OneShot24th);
|
||||||
write (pad->state_msg());
|
write (pad->state_msg());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1372,6 +1379,7 @@ Push2::set_pad_scale (int root, int octave, MusicalMode::Type mode, bool inkey)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pad->set_state (LED::OneShot24th);
|
||||||
write (pad->state_msg());
|
write (pad->state_msg());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue