SyntheticTest » History » Version 3

Chris Cannam, 2013-11-07 04:56 PM

1 1 Chris Cannam
h1. Synthetic test material
2 1 Chris Cannam
3 1 Chris Cannam
h2. Sinusoid at fs/4
4 1 Chris Cannam
5 1 Chris Cannam
In Yeti terms:
6 1 Chris Cannam
7 1 Chris Cannam
<pre>
8 1 Chris Cannam
testStream = manipulate.withDuration 64 (syn.sinusoid 8 2);
9 1 Chris Cannam
cq = cqt { maxFreq = testStream.sampleRate/2, minFreq = 1, binsPerOctave = 4 } testStream;
10 1 Chris Cannam
</pre>
11 2 Chris Cannam
12 2 Chris Cannam
Or to put it another way (in MATLAB this time):
13 2 Chris Cannam
14 2 Chris Cannam
<pre>
15 2 Chris Cannam
test = [0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1 ];
16 2 Chris Cannam
out = cqt(test,1,4,4,8)
17 2 Chris Cannam
</pre>
18 2 Chris Cannam
19 2 Chris Cannam
That is, a 64-sample input of 8Hz sample rate containing a sinusoid at fs/4, transformed using CQ parameters fmin = 1, fmax = 4 (or fs/2), and bpo = 4.
20 3 Chris Cannam
21 3 Chris Cannam
h3. Data from MATLAB implementation
22 3 Chris Cannam
23 3 Chris Cannam
<pre>
24 3 Chris Cannam
actual fmin = 1.1892
25 3 Chris Cannam
octaves = 2
26 3 Chris Cannam
weight = 16.3452
27 3 Chris Cannam
drop = 3
28 3 Chris Cannam
kernel size = 32x20
29 3 Chris Cannam
output size = 8x59
30 3 Chris Cannam
</pre>