diff options
author | William McPherson <willmcpherson2@gmail.com> | 2020-02-05 18:00:16 +1100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-05 17:52:10 +0100 |
commit | 59bde64ba6c7c78695da78cbe925b3a4d38fc5b2 (patch) | |
tree | e604a6db12df74c7331c58959dcecb6c265551fe /Applications/Piano/MainWidget.cpp | |
parent | ab9475a3f319cb6281da15adfde42432c5bf69bd (diff) | |
download | serenity-59bde64ba6c7c78695da78cbe925b3a4d38fc5b2.zip |
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.
Diffstat (limited to 'Applications/Piano/MainWidget.cpp')
-rw-r--r-- | Applications/Piano/MainWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Piano/MainWidget.cpp b/Applications/Piano/MainWidget.cpp index 9d2003763d..2e25ef543b 100644 --- a/Applications/Piano/MainWidget.cpp +++ b/Applications/Piano/MainWidget.cpp @@ -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() |