diff options
Diffstat (limited to 'src/libs/gui/PatchView.cpp')
-rw-r--r-- | src/libs/gui/PatchView.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libs/gui/PatchView.cpp b/src/libs/gui/PatchView.cpp index 0a624dc0..c313f5ac 100644 --- a/src/libs/gui/PatchView.cpp +++ b/src/libs/gui/PatchView.cpp @@ -95,7 +95,9 @@ PatchView::set_patch(SharedPtr<PatchModel> patch) _edit_mode_but->signal_toggled().connect(sigc::mem_fun( *this, &PatchView::editable_toggled)); - + + _poly_spin->signal_value_changed().connect( + sigc::mem_fun(*this, &PatchView::poly_changed)); _canvas->grab_focus(); } @@ -154,6 +156,13 @@ PatchView::process_toggled() void +PatchView::poly_changed() +{ + App::instance().engine()->set_polyphony(_patch->path(), _poly_spin->get_value_as_int()); +} + + +void PatchView::clear_clicked() { App::instance().engine()->clear_patch(_patch->path()); |