Fix bug (last value left out)
This commit is contained in:
1 parent
001884ed9d
commit
874c66d6d1
1 file changed
+1
-1
@@ -162,7 +162,7 @@ int PtAKF::_GetNote(float* restrict samples, float* restrict maxVolume, float* r
|
||||
lastWeight = curWeight;
|
||||
}
|
||||
//Set all invalid weights to 0
|
||||
for(int toneIndex = lastValidTone + 1;toneIndex < _MaxHalfTone; toneIndex++){
|
||||
for(int toneIndex = lastValidTone + 1;toneIndex <= _MaxHalfTone; toneIndex++){
|
||||
weights[toneIndex - _MinHalfTone] = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user