Home > melodyRecognition > setParam.m

setParam

PURPOSE ^

setParam: 砞﹚ pitch tracking ㎝ melody recognition 把计

SYNOPSIS ^

function [PP, CP]=setParam

DESCRIPTION ^

 setParam: 砞﹚ pitch tracking ㎝ melody recognition 把计
    Usage: [PP, CP]=setParam
        PP: pitch parameter
        CP: comparison parameter
    Parameters used in this function are primarily for melody recognition on 16-bit SPCE061A

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [PP, CP]=setParam
0002 % setParam: 砞﹚ pitch tracking ㎝ melody recognition 把计
0003 %    Usage: [PP, CP]=setParam
0004 %        PP: pitch parameter
0005 %        CP: comparison parameter
0006 %    Parameters used in this function are primarily for melody recognition on 16-bit SPCE061A
0007 
0008 %    Roger Jang, 20040320
0009 
0010 % ====== Pitch tracking parameters (Used only in wave2pitch.m and midi2mid.m)
0011 PP.fs = 8000;
0012 PP.frameSize = 256;
0013 PP.overlap = -256;            % 0 for 粂-256 for 簈羘
0014 PP.maxShift=128;
0015 PP.minPitch = 35;
0016 PP.maxPitch = 84;
0017 PP.duration = 5;            %Comparison seconds
0018 PP.frame2pitchFcn='frame2pitchMex';
0019 
0020 % ====== Comparison parameters (Used only in compSong.m)
0021 CP.a = 8;
0022 CP.b = 12;
0023 CP.lengthRatio = 1.4;        % MIDILENGTH = lengthRatio*duration
0024 CP.useRest = 1;            % Use rest or not
0025 CP.fromStart = 1;        % Search the start of a song
0026 CP.keyTransposition = 0;

Generated on Tue 01-Jun-2010 09:49:37 by m2html © 2003