mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +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
|
@ -116,6 +116,8 @@ constexpr int black_keys_per_octave = 5;
|
|||
constexpr int octave_min = 1;
|
||||
constexpr int octave_max = 7;
|
||||
|
||||
constexpr int horizontal_notes = 32;
|
||||
|
||||
// Equal temperament, A = 440Hz
|
||||
// We calculate note frequencies relative to A4:
|
||||
// 440.0 * pow(pow(2.0, 1.0 / 12.0), N)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue