mid2agb fix: compare whole note details before compression
This commit is contained in:
parent
250a451377
commit
c13d2b567c
1 changed files with 6 additions and 0 deletions
|
@ -852,6 +852,12 @@ int CalculateCompressionScore(std::vector<Event>& events, int index)
|
||||||
|
|
||||||
bool IsCompressionMatch(std::vector<Event>& events, int index1, int index2)
|
bool IsCompressionMatch(std::vector<Event>& events, int index1, int index2)
|
||||||
{
|
{
|
||||||
|
if (events[index1].type != events[index2].type ||
|
||||||
|
events[index1].note != events[index2].note ||
|
||||||
|
events[index1].param1 != events[index2].param1 ||
|
||||||
|
events[index1].time != events[index2].time)
|
||||||
|
return false;
|
||||||
|
|
||||||
index1++;
|
index1++;
|
||||||
index2++;
|
index2++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue