My Project
|
打分Engine More...
#import <NEPitchSongScore.h>
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 | |
NEPitchRecordSingInfo * | info |
录制信息 More... | |
NSInteger | pitchShift |
变调 More... | |
NSUInteger(^ | getCurrentPlayingTime )(void) |
根据时间戳获取当前播放时间,必须实现,计算总分使用 More... | |
void(^ | onNote )(NEPitchRecordItemModel *item) |
实时音高回调 More... | |
void(^ | onGrade )(NEPitchRecordSingMarkModel *markModel) |
实时打分回调 More... | |
打分Engine
- (void) destroy |
结束,销毁
- (void) getFinalScoreComplete: | (void(^)(NSError *_Nullable error, NEPitchRecordSingInfo *_Nullable pitchRecordSingInfo)) | callback |
获取最终打分
callback | 打分回调 |
+ (instancetype) getInstance |
单例模式
- (void) initialize: | (NEPitchRecordSingInfo *) | info |
初始化方法
info | 录制信息 |
- (NEPitchRecordSingMarkModel *) lastMark |
最新分数
- (NEPitchRecordItemModel *) lastRecord |
最新音高
- (void) pause |
暂停打分
- (void) pushAudioData: | (NEPitchAudioData *) | audioData |
推送流数据
audioData | 音频数据 |
- (void) resetPitch |
录唱过程中seek,就是跳过一些句子或者重新从某个句子开始唱,需要刷新一下打分库。
- (void) seekTime: | (NSInteger) | startTime |
确保在主线程调用
startTime | seekTime |
- (void) start |
开始打分
|
readwritenonatomiccopy |
根据时间戳获取当前播放时间,必须实现,计算总分使用
|
readwritenonatomicstrong |
录制信息
|
readwritenonatomiccopy |
实时打分回调
|
readwritenonatomiccopy |
实时音高回调
|
readwritenonatomicassign |
变调