resthandle.m
来自「自动语音识别源码对非特定人的孤立词语音识别算法 进行研究。考虑到语音识别技术在」· M 代码 · 共 17 行
M
17 行
function outputPv=restHandle(inputPv, useRest)
% restHandle: Rest handling for melody recognition
% Usage: outputPv=restHandle(inputPv, useRest)
% inputPv: input PV (pitch vector)
% useRest: 0 ===> remove rests, 1 ===> replace a rest by its previous non-rest pitch
% Roger Jang, 20040613
outputPv=inputPv;
% ====== Cut out leading/trailing rests
while outputPv(1)==0; outputPv(1)=[]; end
while outputPv(end)==0; outputPv(end)=[]; end
% ====== Handle in-between rests
if ~useRest
outputPv(outputPv==0)=[]; %
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?