comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/mirhcdf.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
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)