From 4b35facdafe1d5a08ee4598f01a16486cafb67c3 Mon Sep 17 00:00:00 2001 From: Esa Juhani Ruoho Date: Sun, 10 Feb 2019 15:51:25 +0200 Subject: [PATCH] sort in 20, show CC127 --- src/common/gui/SurgeGUIEditor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/gui/SurgeGUIEditor.cpp b/src/common/gui/SurgeGUIEditor.cpp index 38e3d3c418e..cc80dd9fd99 100644 --- a/src/common/gui/SurgeGUIEditor.cpp +++ b/src/common/gui/SurgeGUIEditor.cpp @@ -1564,13 +1564,13 @@ int32_t SurgeGUIEditor::controlModifierClicked(CControl* control, CButtonState b // Construct submenus for expicit controller mapping COptionMenu *midiSub = new COptionMenu(menuRect, 0, 0, 0, 0, VSTGUI::COptionMenu::kNoDrawStyle); COptionMenu *currentSub; - for( int mc = 0; mc < 127; ++mc ) + for( int mc = 0; mc < 128; ++mc ) { - if( mc % 10 == 0 ) + if( mc % 20 == 0 ) { currentSub = new COptionMenu( menuRect, 0, 0, 0, 0, VSTGUI::COptionMenu::kNoDrawStyle ); char name[ 256 ]; - sprintf( name, "CC %d -> %d", mc, min( mc+10, 127 )); + sprintf( name, "CC %d -> %d", mc, min( mc+20, 127 )); midiSub->addEntry( currentSub, name ); }