My Project
Instance Methods | Class Methods | Properties | List of all members
NEPitchSongScore Class Reference

打分Engine More...

#import <NEPitchSongScore.h>

Inheritance diagram for NEPitchSongScore:

Instance Methods

(void) - initialize:
 
(void) - start
 
(void) - pause
 
(void) - destroy
 
(NEPitchRecordItemModel *) - lastRecord
 
(NEPitchRecordSingMarkModel *) - lastMark
 
(void) - pushAudioData:
 
(void) - seekTime:
 
(void) - resetPitch
 
(void) - getFinalScoreComplete:
 

Class Methods

(instancetype) + getInstance
 

Properties

NEPitchRecordSingInfoinfo
 录制信息 More...
 
NSInteger pitchShift
 变调 More...
 
NSUInteger(^ getCurrentPlayingTime )(void)
 根据时间戳获取当前播放时间,必须实现,计算总分使用 More...
 
void(^ onNote )(NEPitchRecordItemModel *item)
 实时音高回调 More...
 
void(^ onGrade )(NEPitchRecordSingMarkModel *markModel)
 实时打分回调 More...
 

Detailed Description

打分Engine

Method Documentation

◆ destroy

- (void) destroy

结束,销毁

◆ getFinalScoreComplete:

- (void) getFinalScoreComplete: (void(^)(NSError *_Nullable error, NEPitchRecordSingInfo *_Nullable pitchRecordSingInfo))  callback

获取最终打分

Parameters
callback打分回调

◆ getInstance

+ (instancetype) getInstance

单例模式

Returns
单例对象

◆ initialize:

- (void) initialize: (NEPitchRecordSingInfo *)  info

初始化方法

Parameters
info录制信息

◆ lastMark

最新分数

◆ lastRecord

- (NEPitchRecordItemModel *) lastRecord

最新音高

◆ pause

- (void) pause

暂停打分

◆ pushAudioData:

- (void) pushAudioData: (NEPitchAudioData *)  audioData

推送流数据

Parameters
audioData音频数据

◆ resetPitch

- (void) resetPitch

录唱过程中seek,就是跳过一些句子或者重新从某个句子开始唱,需要刷新一下打分库。

◆ seekTime:

- (void) seekTime: (NSInteger)  startTime

确保在主线程调用

Parameters
startTimeseekTime

◆ start

- (void) start

开始打分

Property Documentation

◆ getCurrentPlayingTime

- (NSUInteger(^ getCurrentPlayingTime) (void))
readwritenonatomiccopy

根据时间戳获取当前播放时间,必须实现,计算总分使用

◆ info

- (NEPitchRecordSingInfo*) info
readwritenonatomicstrong

录制信息

◆ onGrade

- (void(^ onGrade) (NEPitchRecordSingMarkModel *markModel))
readwritenonatomiccopy

实时打分回调

◆ onNote

- (void(^ onNote) (NEPitchRecordItemModel *item))
readwritenonatomiccopy

实时音高回调

◆ pitchShift

- (NSInteger) pitchShift
readwritenonatomicassign

变调


The documentation for this class was generated from the following file: