diff --git a/misc/tools/midi2cfg-ng.pl b/misc/tools/midi2cfg-ng.pl index 52dbd3a..00c826f 100755 --- a/misc/tools/midi2cfg-ng.pl +++ b/misc/tools/midi2cfg-ng.pl @@ -548,7 +548,7 @@ sub botsort($$$$@) else { # better leave this one alone - --$q; + $q -= $_->{lastchannelsequence}; } } [$_, $q, rand]