getStandardPitchInfo method

FutureOr<ByteRTCStandardPitchInfo> getStandardPitchInfo(
  1. NSString midiFilepath
)

@detail api @author wangjunzheng @brief Get standard pitch. @param midiFilepath Midi file path of the song. @return ByteRTCStandardPitchInfo{@link #ByteRTCStandardPitchInfo} Standard pitch data array. @note - Please make sure the same midi file path is passed in this API and setSingScoringConfig:{@link #ByteRTCSingScoringManager#setSingScoringConfig}. @order 23

Implementation

FutureOr<ByteRTCStandardPitchInfo> getStandardPitchInfo(
    NSString midiFilepath) async {
  final result = await nativeCall('getStandardPitchInfo:', [midiFilepath]);
  return packObject(
      result,
      () => ByteRTCStandardPitchInfo(
          const NativeClassOptions([], disableInit: true)));
}