SilenceAllNotes() on every instrument switch removes loud transient noise (#2984)

This commit is contained in:
Oskar Wallgren
2016-08-20 10:25:16 +02:00
committed by GitHub
parent d7fa8067fe
commit 8fa5afbd2a

View File

@@ -578,8 +578,9 @@ void malletsInstrumentView::modelChanged()
void malletsInstrumentView::changePreset()
{
malletsInstrument * inst = castModel<malletsInstrument>();
inst->instrumentTrack()->silenceAllNotes();
int _preset = inst->m_presetsModel.value();
if( _preset < 9 )
{
m_tubeBellWidget->hide();
@@ -597,7 +598,7 @@ void malletsInstrumentView::changePreset()
m_modalBarWidget->hide();
m_tubeBellWidget->hide();
m_bandedWGWidget->show();
}
}
}