1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:37:35 +00:00

Piano: Move piano roll internals to AudioEngine

The piano roll data definitely belongs in AudioEngine along with the
note and time data. Now RollWidget only has GUI information, much like
the other widgets.

Note that this commit exacerbates issue #1158 which is caused by
RollWidget::paint_event().
This commit is contained in:
William McPherson 2020-02-06 19:13:25 +11:00 committed by Andreas Kling
parent 82d17d2c79
commit 9a05bbaace
6 changed files with 47 additions and 38 deletions

View file

@ -75,7 +75,7 @@ void MainWidget::custom_event(Core::CustomEvent&)
m_wave_widget->update();
if (m_audio_engine.time() == 0)
m_roll_widget->update_roll();
m_roll_widget->update();
}
void MainWidget::keydown_event(GUI::KeyEvent& event)