You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
948 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.example.musicwork.freeModel;
/**
* Created by dell on 2021/1/2.
*/
public class MusicNote {
private int note;//音符0为休止符1-7为低音音符8-14为正常音符15-21为高音音符
private float beat;//节拍1对应四分音符1/2对应八分音符
private boolean dectimeFlag = false;//音符是否设置了减时线
public int getNote() {
return note;
}
public float getBeat() {
return beat;
}
public boolean isDectimeFlag() {
return dectimeFlag;
}
public void setNote(int note) {
this.note = note;
}
public void setBeat(float beat) {
this.beat = beat;
}
public void setDectimeFlag(boolean dectimeFlag) {
this.dectimeFlag = dectimeFlag;
}
public MusicNote(int note, float beat) {
this.note = note;
this.beat = beat;
}
}