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:
parent
ab9475a3f3
commit
59bde64ba6
5 changed files with 47 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue