diff --git a/plugins/stk/mallets/mallets.cpp b/plugins/stk/mallets/mallets.cpp index db5d1a205b1..8819a1d5bb5 100644 --- a/plugins/stk/mallets/mallets.cpp +++ b/plugins/stk/mallets/mallets.cpp @@ -578,8 +578,9 @@ void malletsInstrumentView::modelChanged() void malletsInstrumentView::changePreset() { malletsInstrument * inst = castModel(); + 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(); - } + } }