diff yeti/cqtkernel.yeti @ 16:310435497b76

Print out results (to go to file to load into e.g. SV)
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 30 Oct 2013 09:06:52 +0000
parents e2372a642b45
children b54bd1d0dc1e
line wrap: on
line diff
--- a/yeti/cqtkernel.yeti	Tue Oct 29 16:55:55 2013 +0000
+++ b/yeti/cqtkernel.yeti	Wed Oct 30 09:06:52 2013 +0000
@@ -28,8 +28,8 @@
     
     fftSize = nextPowerOfTwo (firstCentre + ceil (maxNK/2));
     
-    println "sampleRate = \(sampleRate), maxFreq = \(maxFreq), binsPerOctave = \(binsPerOctave), q = \(q), atomHopFactor = \(atomHopFactor), thresh = \(thresh)";
-    println "minFreq = \(minFreq), bigQ = \(bigQ), maxNK = \(maxNK), minNK = \(minNK), atomHop = \(atomHop), firstCentre = \(firstCentre), fftSize = \(fftSize)";
+    eprintln "sampleRate = \(sampleRate), maxFreq = \(maxFreq), binsPerOctave = \(binsPerOctave), q = \(q), atomHopFactor = \(atomHopFactor), thresh = \(thresh)";
+    eprintln "minFreq = \(minFreq), bigQ = \(bigQ), maxNK = \(maxNK), minNK = \(minNK), atomHop = \(atomHop), firstCentre = \(firstCentre), fftSize = \(fftSize)";
     
     winNr = floor((fftSize - ceil(maxNK/2) - firstCentre) / atomHop) + 1;
     
@@ -37,7 +37,7 @@
     
     fftHop = (lastCentre + atomHop) - firstCentre;
     
-    println "winNr = \(winNr), lastCentre = \(lastCentre), fftHop = \(fftHop)";
+    eprintln "winNr = \(winNr), lastCentre = \(lastCentre), fftHop = \(fftHop)";
     
     fftFunc = fft.forward fftSize;
     
@@ -88,7 +88,7 @@
        (cm.scaled (1/fftSize)
            (cm.newComplexMatrix (RowMajor()) (concat kernels)));
     
-    println "density = \(cm.density kmat)";
+    eprintln "density = \(cm.density kmat)";
     
     // Normalisation