mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +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
|
@ -85,6 +85,13 @@ void TrackManager::set_octave(Direction direction)
|
|||
}
|
||||
}
|
||||
|
||||
void TrackManager::set_octave(int octave)
|
||||
{
|
||||
if (octave <= octave_max && octave >= octave_min) {
|
||||
m_octave = octave;
|
||||
}
|
||||
}
|
||||
|
||||
void TrackManager::add_track()
|
||||
{
|
||||
m_tracks.append(make<Track>(m_time));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue