|
@@ -4,33 +4,31 @@ import com.ym.mec.common.enums.BaseEnum;
|
|
|
|
|
|
public enum HardLevelEnum implements BaseEnum<String, HardLevelEnum> {
|
|
public enum HardLevelEnum implements BaseEnum<String, HardLevelEnum> {
|
|
/**
|
|
/**
|
|
- * 入门级, 振幅阈值, 频率阈值 <br>
|
|
|
|
|
|
+ * 入门级, 振幅阈值 <br>
|
|
* 节奏有效范围(1分音符), 节奏有效范围(2分音符), 节奏有效范围(4分音符), 节奏有效范围(8分音符), 节奏有效范围(16分音符), 节奏有效范围(32分音符)<br>
|
|
* 节奏有效范围(1分音符), 节奏有效范围(2分音符), 节奏有效范围(4分音符), 节奏有效范围(8分音符), 节奏有效范围(16分音符), 节奏有效范围(32分音符)<br>
|
|
* 完成度范围, 未演奏的范围
|
|
* 完成度范围, 未演奏的范围
|
|
*/
|
|
*/
|
|
//BEGINNER("入门级", 3, 5, 5, 5, 10, 10, 13, 15, 60, 10),
|
|
//BEGINNER("入门级", 3, 5, 5, 5, 10, 10, 13, 15, 60, 10),
|
|
- BEGINNER("入门级", 3, 5, 10, 10, 15, 15, 22, 22, 75, 10),
|
|
|
|
|
|
+ BEGINNER("入门级", 3, 10, 10, 15, 15, 22, 22, 75, 10),
|
|
/**
|
|
/**
|
|
- * 进阶级, 振幅阈值, 频率阈值 <br>
|
|
|
|
|
|
+ * 进阶级, 振幅阈值 <br>
|
|
* 节奏有效范围(1分音符), 节奏有效范围(2分音符), 节奏有效范围(4分音符), 节奏有效范围(8分音符), 节奏有效范围(16分音符), 节奏有效范围(32分音符)<br>
|
|
* 节奏有效范围(1分音符), 节奏有效范围(2分音符), 节奏有效范围(4分音符), 节奏有效范围(8分音符), 节奏有效范围(16分音符), 节奏有效范围(32分音符)<br>
|
|
* 完成度范围, 未演奏的范围
|
|
* 完成度范围, 未演奏的范围
|
|
*/
|
|
*/
|
|
- ADVANCED("进阶级", 3, 5, 8, 8, 12, 12, 20, 20, 85, 15),
|
|
|
|
|
|
+ ADVANCED("进阶级", 3, 8, 8, 12, 12, 20, 20, 85, 15),
|
|
//ADVANCED("进阶级", 3, 5, 50, 50, 50, 50, 50, 5, 80, 10),
|
|
//ADVANCED("进阶级", 3, 5, 50, 50, 50, 50, 50, 5, 80, 10),
|
|
/**
|
|
/**
|
|
- * 大师级, 振幅阈值, 频率阈值 <br>
|
|
|
|
|
|
+ * 大师级, 振幅阈值 <br>
|
|
* 节奏有效范围(1分音符), 节奏有效范围(2分音符), 节奏有效范围(4分音符), 节奏有效范围(8分音符), 节奏有效范围(16分音符), 节奏有效范围(32分音符)<br>
|
|
* 节奏有效范围(1分音符), 节奏有效范围(2分音符), 节奏有效范围(4分音符), 节奏有效范围(8分音符), 节奏有效范围(16分音符), 节奏有效范围(32分音符)<br>
|
|
* 完成度范围, 未演奏的范围
|
|
* 完成度范围, 未演奏的范围
|
|
*/
|
|
*/
|
|
//PERFORMER("大师级", 3, 3, 3, 5, 10, 10, 13, 15, 95, 10);
|
|
//PERFORMER("大师级", 3, 3, 3, 5, 10, 10, 13, 15, 95, 10);
|
|
- PERFORMER("大师级", 3, 3, 3, 3, 6, 8, 13, 15, 95, 10);
|
|
|
|
|
|
+ PERFORMER("大师级", 3, 3, 3, 6, 8, 13, 15, 95, 10);
|
|
|
|
|
|
private String msg;
|
|
private String msg;
|
|
|
|
|
|
private int amplitudeThreshold;
|
|
private int amplitudeThreshold;
|
|
|
|
|
|
- private int frequencyThreshold;
|
|
|
|
-
|
|
|
|
private int tempoEffectiveRangeOf1;
|
|
private int tempoEffectiveRangeOf1;
|
|
|
|
|
|
private int tempoEffectiveRangeOf2;
|
|
private int tempoEffectiveRangeOf2;
|
|
@@ -61,12 +59,11 @@ public enum HardLevelEnum implements BaseEnum<String, HardLevelEnum> {
|
|
* @param integrityRange 完成度范围
|
|
* @param integrityRange 完成度范围
|
|
* @param notPlayRange 未演奏的范围
|
|
* @param notPlayRange 未演奏的范围
|
|
*/
|
|
*/
|
|
- HardLevelEnum(String msg, int amplitudeThreshold, int frequencyThreshold, int tempoEffectiveRangeOf1, int tempoEffectiveRangeOf2,
|
|
|
|
|
|
+ HardLevelEnum(String msg, int amplitudeThreshold, int tempoEffectiveRangeOf1, int tempoEffectiveRangeOf2,
|
|
int tempoEffectiveRangeOf4, int tempoEffectiveRangeOf8, int tempoEffectiveRangeOf16, int tempoEffectiveRangeOf32, int integrityRange,
|
|
int tempoEffectiveRangeOf4, int tempoEffectiveRangeOf8, int tempoEffectiveRangeOf16, int tempoEffectiveRangeOf32, int integrityRange,
|
|
int notPlayRange) {
|
|
int notPlayRange) {
|
|
this.msg = msg;
|
|
this.msg = msg;
|
|
this.amplitudeThreshold = amplitudeThreshold;
|
|
this.amplitudeThreshold = amplitudeThreshold;
|
|
- this.frequencyThreshold = frequencyThreshold;
|
|
|
|
this.tempoEffectiveRangeOf1 = tempoEffectiveRangeOf1;
|
|
this.tempoEffectiveRangeOf1 = tempoEffectiveRangeOf1;
|
|
this.tempoEffectiveRangeOf2 = tempoEffectiveRangeOf2;
|
|
this.tempoEffectiveRangeOf2 = tempoEffectiveRangeOf2;
|
|
this.tempoEffectiveRangeOf4 = tempoEffectiveRangeOf4;
|
|
this.tempoEffectiveRangeOf4 = tempoEffectiveRangeOf4;
|
|
@@ -85,10 +82,6 @@ public enum HardLevelEnum implements BaseEnum<String, HardLevelEnum> {
|
|
return amplitudeThreshold;
|
|
return amplitudeThreshold;
|
|
}
|
|
}
|
|
|
|
|
|
- public int getFrequencyThreshold() {
|
|
|
|
- return frequencyThreshold;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public int getTempoEffectiveRange(int denominator, double duration) {
|
|
public int getTempoEffectiveRange(int denominator, double duration) {
|
|
|
|
|
|
int tempoEffectiveRange = 0;
|
|
int tempoEffectiveRange = 0;
|