AgoraRhythmPlayerConfig
虚拟节拍器配置。
Java
public class AgoraRhythmPlayerConfig {
public int beatsPerMeasure;
public int beatsPerMinute;
public AgoraRhythmPlayerConfig() {
this.beatsPerMeasure = 4;
this.beatsPerMinute = 60;
}
@CalledByNative
public int getBeatsPerMeasure() {
return beatsPerMeasure;
}
@CalledByNative
public int getBeatsPerMinute() {
return beatsPerMinute;
}
}
beatsPerMeasure
每小节的拍数,取值范围为 [1,9]。默认值为 4,即每小节包含 1 个强拍和 3 个弱拍。
beatsPerMinute
节拍速度(拍/分钟),取值范围为 [60,360]。默认值为 60,即 1 分钟有 60 拍。