Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolboxDemos/demo5export.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 demo5export | |
2 % Example of use of the export function. | |
3 % For more examples, cf. mirfeatures. | |
4 | |
5 s = mirspectrum('Folder'); | |
6 if not(isempty(get(s,'Data'))) | |
7 ch = mirchromagram(s); | |
8 k = mirkeystrength(ch); | |
9 %h = mirhisto(k); | |
10 e = mirenvelope('Folder'); | |
11 d = mirenvelope(e,'Diff'); | |
12 mirexport('NoFrameNoPeaks.txt',ch,k); | |
13 | |
14 ch = mirpeaks(ch,'Total',1); | |
15 k = mirpeaks(k,'Total',1); | |
16 %h = mirpeaks(h); | |
17 e = mirpeaks(e,'Total',1); | |
18 d = mirpeaks(d,'Total',1); | |
19 mirexport('NoFrameButPeaks.txt',ch,k,e,d); | |
20 clear ch k e d | |
21 | |
22 ac = mirautocor('Folder','Frame',.5,.2); | |
23 s = mirspectrum('Folder','Frame',.5,.2); | |
24 sf = mirflux(s); | |
25 ms = mirspectrum(s,'Mel'); | |
26 m = mirmfcc(ms); | |
27 ch = mirchromagram(s); | |
28 k = mirkeystrength(ch); | |
29 %h = mirhisto(k); | |
30 e = mirenvelope('Folder','Frame',.5,.2); | |
31 d = mirenvelope(e,'Diff'); | |
32 mirexport('FrameNoPeaks.txt',ms,m,ch,k); | |
33 | |
34 ac = mirpeaks(ac,'Total',1,'NoBegin'); | |
35 s = mirpeaks(s,'Total',1); | |
36 sf = mirpeaks(sf,'Total',1); | |
37 ms = mirpeaks(ms,'Total',1); | |
38 m = mirpeaks(m,'Total',1,'Interpol',0); | |
39 ch = mirpeaks(ch,'Total',1); | |
40 k = mirpeaks(k,'Total',1); | |
41 %h = mirpeaks(h) | |
42 e = mirpeaks(e,'Total',1); | |
43 d = mirpeaks(d,'Total',1); | |
44 mirexport('FrameAndPeaks.txt',ac,s,sf,ms,m,ch,k,e,d); | |
45 end |