Skip to content

Commit

Permalink
sort in 20, show CC127
Browse files Browse the repository at this point in the history
  • Loading branch information
esaruoho authored Feb 10, 2019
1 parent 95996a3 commit 4b35fac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/gui/SurgeGUIEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 4b35fac

Please sign in to comment.