Mercurial > hg > constant-q-cpp
comparison yeti/test.yeti @ 43:f5bd00c97de3
Update to revised api
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 20 Nov 2013 21:39:42 +0000 |
parents | ae7d2e558ed1 |
children | 337d3b324c75 |
comparison
equal
deleted
inserted
replaced
42:53d1e0d59ac5 | 43:f5bd00c97de3 |
---|---|
14 //testStream = manipulate.withDuration 96000 (syn.sinusoid 48000 500); | 14 //testStream = manipulate.withDuration 96000 (syn.sinusoid 48000 500); |
15 //testStream = manipulate.withDuration 96000 (syn.pulseTrain 48000 4); | 15 //testStream = manipulate.withDuration 96000 (syn.pulseTrain 48000 4); |
16 //testStream = af.open "sweep-48000.wav"; | 16 //testStream = af.open "sweep-48000.wav"; |
17 //testStream = af.open "sweep.wav"; | 17 //testStream = af.open "sweep.wav"; |
18 | 18 |
19 //testStream = manipulate.withDuration 64 (syn.sinusoid 8 2); | 19 // So the stream is [ 0, 1, 0, -1, 0, 1, 0, -1, ... ] : |
20 // So the stream is [ 0, 1, 0, -1, 0, 1, 0, -1, ... ] | 20 testStream = manipulate.withDuration 64 (syn.sinusoid 8 2); |
21 | 21 |
22 testStream = manipulate.withDuration 32 (syn.pulseTrain 8 0.001); | 22 //testStream = manipulate.withDuration 32 (syn.pulseTrain 8 0.001); |
23 | 23 |
24 eprintln "have test stream"; | 24 eprintln "have test stream"; |
25 | 25 |
26 cq = cqt { maxFreq = testStream.sampleRate/2, minFreq = 1, binsPerOctave = 4 } testStream; | 26 cq = cqt { maxFreq = testStream.sampleRate/2, minFreq = 1, binsPerOctave = 4 } testStream; |
27 | 27 |