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:
parent
82d17d2c79
commit
9a05bbaace
6 changed files with 47 additions and 38 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue