mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
Piano: Handle octave slider jumps of greater than 1
The previous slider handler relied on the new value being 1 different than the previous. fixes #1163.
This commit is contained in:
parent
0fd31ef598
commit
b8cf07166f
5 changed files with 20 additions and 1 deletions
|
@ -160,6 +160,16 @@ void MainWidget::turn_on_pressed_keys()
|
|||
}
|
||||
}
|
||||
|
||||
void MainWidget::set_octave_and_ensure_note_change(int octave)
|
||||
{
|
||||
turn_off_pressed_keys();
|
||||
m_track_manager.set_octave(octave);
|
||||
turn_on_pressed_keys();
|
||||
|
||||
m_knobs_widget->update_knobs();
|
||||
m_keys_widget->update();
|
||||
}
|
||||
|
||||
void MainWidget::set_octave_and_ensure_note_change(Direction direction)
|
||||
{
|
||||
turn_off_pressed_keys();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue