Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/mirhcdf.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function varargout = mirhcdf(orig,varargin) | |
2 % df = mirhcdf(x) calculates the Harmonic Change Detection Function | |
3 % related to x. | |
4 % | |
5 % C. A. Harte and M. B. Sandler, Detecting harmonic change in musical | |
6 % audio, in Proceedings of Audio and Music Computing for Multimedia | |
7 % Workshop, Santa Barbara, CA, 2006. | |
8 | |
9 specif.defaultframelength = .743; | |
10 specif.defaultframehop = .1; | |
11 varargout = mirfunction(@mirhcdf,orig,varargin,nargout,specif,@init,@main); | |
12 | |
13 | |
14 function [df type] = init(orig,option) | |
15 if isamir(orig,'mirscalar') | |
16 df = orig; | |
17 else | |
18 if isframed(orig) | |
19 tc = mirtonalcentroid(orig); | |
20 else | |
21 tc = mirtonalcentroid(orig,'Frame'); | |
22 end | |
23 df = mirflux(tc); | |
24 end | |
25 type = 'mirscalar'; | |
26 | |
27 | |
28 function df = main(df,option,postoption) |