comparison toolboxes/MIRtoolbox1.3.2/MIRToolboxDemos/mirdemo.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 %%%% SEGMENTATION
2
3 m = mirmfcc('valse_triste_happy','Rank',2:10,'Frame',0.05,1)
4 sim = mirsimatrix(m)
5 n = mirnovelty(sim,'KernelSize',150)
6 p = mirpeaks(n,'Contrast',.1,'Total',Inf,'NoBegin','NoEnd')
7 seg = mirsegment('valse_triste_happy',p)
8 mirplay(seg)
9
10 display('Strike any key to continue...');
11 pause
12 close all
13
14 [seg p m a] = mirsegment('valse_triste_happy','MFCC',2:10,...
15 'KernelSize',150,'Contrast',.1)
16
17 display('Strike any key to continue...');
18 pause
19 close all
20
21 %%%% TEMPO
22
23 fb = mirfilterbank('czardas')
24 %mirplay(fb)
25 e = mirenvelope(fb)
26 de = mirenvelope(e,'Diff','Halfwave')
27 s = mirsum(de,'Centered')
28 f = mirframe(s,3,.2);
29 ac = mirautocor(s,'Resonance','Enhanced')
30 p = mirpeaks(ac,'Total',1)
31 t = mirtempo(p)
32
33 display('Strike any key to continue...');
34 pause
35 close all
36
37 [t,p] = mirtempo('czardas','Periodicity','Frame')
38 h = mirhisto(t)
39
40 display('Strike any key to continue...');
41 pause
42 close all
43
44 %%%% TONALITY
45
46 c = mirchromagram('vivaldi','Frame',2)
47 k = mirkeystrength(c)
48 p = mirpeaks(k,'Total',1)
49
50 [k,p] = mirkey('vivaldi','Frame',1)