Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolboxDemos/demo0grandbuffet.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 help mirtoolbox | |
2 help miraudio | |
3 a = miraudio('ragtime','Center','Sampling',11025) | |
4 mirplay(a) | |
5 mirspectrum(a) | |
6 mirgetdata(a) | |
7 get(a,'Sampling') | |
8 | |
9 a = miraudio('laksin') | |
10 a = miraudio(a,'Trim') | |
11 a = miraudio(a,'Extract',0,1) | |
12 e = mirenvelope(a) | |
13 e = mirenvelope(a,'Diff') | |
14 e = mirenvelope(a,'HalfwaveDiff') | |
15 | |
16 pause, close all | |
17 | |
18 s = mirspectrum('Amin3') | |
19 s = mirspectrum(s,'Max',3000) | |
20 s = mirspectrum(s,'dB') | |
21 s = mirspectrum('Amin3','Mel') | |
22 mirpeaks(s) | |
23 | |
24 pause, close all | |
25 | |
26 ac = mirautocor('Amin3') | |
27 ac = mirautocor(ac,'Enhanced',2:10) | |
28 ac = mirautocor(ac,'Freq') | |
29 | |
30 pause, close all | |
31 | |
32 f = mirframe('ragtime',.1,.5) | |
33 s = mirspectrum(f) | |
34 s = mirspectrum('ragtime','frame',.1,.5) | |
35 mirpeaks(s) | |
36 mirflux(s) | |
37 mirflux(mirautocor(a,'Frame')) | |
38 | |
39 pause, close all | |
40 | |
41 fb = mirfilterbank('ragtime','NbChannels',5) | |
42 e = mirenvelope(fb) | |
43 ae = mirautocor(e) | |
44 sa = mirsum(ae) | |
45 | |
46 pause, close all | |
47 | |
48 r1 = mirrms('movie1','Frame') | |
49 r2 = mirrms('movie2','Frame') | |
50 mirlowenergy(r1) | |
51 mirlowenergy(r2) | |
52 | |
53 pause, close all | |
54 | |
55 [t,ac] = mirtempo('ragtime') | |
56 [t,ac] = mirtempo('czardas','frame') | |
57 | |
58 pause, close all | |
59 | |
60 at = mirattacks('ragtime') | |
61 mirattackslope(at) | |
62 mirbrightness('ragtime','frame') | |
63 mirroughness('ragtime','frame') | |
64 | |
65 pause, close all | |
66 | |
67 [p,a] = mirpitch('ragtime','frame') | |
68 mirchromagram('ragtime','wrap','no') | |
69 mirchromagram('ragtime') | |
70 mirkey('ragtime') | |
71 k = mirkey('ragtime','frame') | |
72 mirmode('ragtime') | |
73 m = mirmode('ragtime','frame') | |
74 | |
75 pause, close all | |
76 | |
77 mirstat(m) | |
78 mirhisto(m) | |
79 mirexport('result.txt',k,m) |