FAgoraRhythmPlayerConfig
The metronome configuration.
USTRUCT(BlueprintType) struct FAgoraRhythmPlayerConfig { GENERATED_BODY() public: UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AgoraRhythmPlayerConfig") int beatsPerMeasure = 4; UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|AgoraRhythmPlayerConfig") int beatsPerMinute = 60; FAgoraRhythmPlayerConfig(){} FAgoraRhythmPlayerConfig(const agora::rtc::AgoraRhythmPlayerConfig & AgoraData){ beatsPerMeasure = AgoraData.beatsPerMeasure; beatsPerMinute = AgoraData.beatsPerMinute; } agora::rtc::AgoraRhythmPlayerConfig CreateAgoraData() const { agora::rtc::AgoraRhythmPlayerConfig AgoraData; AgoraData.beatsPerMeasure = beatsPerMeasure; AgoraData.beatsPerMinute = beatsPerMinute; return AgoraData; } void FreeAgoraData(agora::rtc::AgoraRhythmPlayerConfig & AgoraData) const { } };
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.