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

Piano: Add release

Notice that we are calculating release time according to the level when
the note is turned off rather than the sustain level. Naively using the
sustain level gives very long release times if you turn the note off
during attack, whereas this deterministically gives the same release
time.
This commit is contained in:
William McPherson 2020-02-05 18:00:16 +11:00 committed by Andreas Kling
parent ab9475a3f3
commit 59bde64ba6
5 changed files with 47 additions and 14 deletions

View file

@ -60,7 +60,7 @@ MainWidget::MainWidget(AudioEngine& audio_engine)
m_knobs_widget = KnobsWidget::construct(m_keys_and_knobs_container, audio_engine, *this);
m_knobs_widget->set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fill);
m_knobs_widget->set_preferred_size(300, 0);
m_knobs_widget->set_preferred_size(350, 0);
}
MainWidget::~MainWidget()