|
@@ -599,11 +599,9 @@ public class UserChannelContext {
|
|
|
noteAnalysis.setTempoScore(tempoScore);
|
|
|
}
|
|
|
|
|
|
- double durationPercent = playDurationTime / noteAnalysis.getDurationTime();
|
|
|
- if (durationPercent >= 0.7) {
|
|
|
+ integrityScore = (int) (playDurationTime / noteAnalysis.getDurationTime() / hardLevel.getTempoEffectiveRange(musicXmlNote.getDenominator()));
|
|
|
+ if (integrityScore > 100) {
|
|
|
integrityScore = 100;
|
|
|
- } else if (durationPercent < 0.7 && durationPercent >= 0.5) {
|
|
|
- integrityScore = 50;
|
|
|
}
|
|
|
noteAnalysis.setIntegrityScore(integrityScore);
|
|
|
}
|