Skip to content

Commit

Permalink
small fix to SAFSOR
Browse files Browse the repository at this point in the history
  • Loading branch information
DixelU committed Jul 10, 2020
1 parent ab69e8c commit dec4453
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 1,736 deletions.
10 changes: 1 addition & 9 deletions SAFOR.cpp
Expand Up @@ -56,9 +56,6 @@ bool operator<(const DC &a, const DC &b){
if(a.Tick<b.Tick)return 1;
else if(a.Tick==b.Tick){
if(a.Key<b.Key)return 1;
else if(RemovingSustains && a.Key==b.Key){
return (a.TrackN < b.TrackN);
}
else return 0;
}
else return 0;
Expand All @@ -73,12 +70,7 @@ bool ShouldBReplaced(const DC &O, DC &N){//old and new//0 - save both//1 replce
else if(N.TrackN>O.TrackN && N.Len<O.Len)return 0;
else if(N.TrackN==O.TrackN && N.Len<O.Len)return 0;
else if(!RemovingSustains && O.Vol>N.Vol){//N.Vol=O.Vol;
// if(RemovingSustains){
// if(N.Tick==0)N.Vol=127;
// else N.Vol=1;
// }else{
N.Vol=O.Vol;
// }
N.Vol=O.Vol;
}
return 1;
}
Expand Down
Binary file added SAFOR.exe
Binary file not shown.

0 comments on commit dec4453

Please sign in to comment.