AgoraRhythmPlayerConfig
The metronome configuration.
class AgoraRhythmPlayerConfig {
const AgoraRhythmPlayerConfig({this.beatsPerMeasure, this.beatsPerMinute});
@JsonKey(name: 'beatsPerMeasure')
final int? beatsPerMeasure;
@JsonKey(name: 'beatsPerMinute')
final int? beatsPerMinute;
factory AgoraRhythmPlayerConfig.fromJson(Map<String, dynamic> json) =>
_$AgoraRhythmPlayerConfigFromJson(json);
Map<String, dynamic> toJson() => _$AgoraRhythmPlayerConfigToJson(this);
}
Attributes
- beatsPerMeasure
- The number of beats per measure, which ranges from 1 to 9. The default value is 4, which means that each measure contains one downbeat and three upbeats.
- beatsPerMinute
- The beat speed (beats/minute), which ranges from 60 to 360. The default value is 60, which means that the metronome plays 60 beats in one minute.