}
sort
{
- $a->[1] <=> $b->[1]
+ $b->[1] <=> $a->[1]
or
($a->[0]->{lastuse} // -666) <=> ($b->[0]->{lastuse} // -666)
or
}
}
}
+ else
+ {
+ # better leave this one alone
+ --$q;
+ }
}
[$_, $q, rand]
}
if($midinotes{$chan}{$_->[5]})
{
--$notes_stuck;
- busybot_note_off($t - SYS_TICRATE, $chan, $_->[5]);
+ busybot_note_off($t - SYS_TICRATE - 0.001, $chan, $_->[5]);
}
busybot_note_on($t, $chan, $programs{$chan} || 1, $_->[5]);
++$notes_stuck;
if($midinotes{$chan}{$_->[5]})
{
--$notes_stuck;
- busybot_note_off($t - SYS_TICRATE, $chan, $_->[5]);
+ busybot_note_off($t - SYS_TICRATE - 0.001, $chan, $_->[5]);
}
$midinotes{$chan}{$_->[5]} = 0;
}