changeset 173:223f2a8c4f65

Parameter documentation
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 06 Feb 2015 09:01:15 +0000
parents 76b70af3a563
children 5ed6e970541b aa57e80b6af8
files cq/Chromagram.h
diffstat 1 files changed, 44 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cq/Chromagram.h	Thu Feb 05 09:53:06 2015 +0000
+++ b/cq/Chromagram.h	Fri Feb 06 09:01:15 2015 +0000
@@ -52,16 +52,59 @@
             threshold(0.0005),         // sparsity threshold for resulting kernel
             window(CQParameters::SqrtBlackmanHarris) // window shape
         { }
-        
+
+        /**
+         * Sampling rate of input signal.
+         */
 	double sampleRate;
+
+        /**
+         * Octave number of lowest octave to include in the
+         * chromagram. Numbering is per ASA standard with -1 as the
+         * first octave in the MIDI range and middle-C being C4. The
+         * octave starts at C.
+         */
 	int lowestOctave;
+
+        /**
+         * Number of source constant-Q octaves to wrap around into the
+         * single-octave chroma output.
+         */
 	int octaveCount;
+
+        /**
+         * Number of constant-Q transform bins per octave and the
+         * number of bins in the chroma output.
+         */
 	int binsPerOctave;
 
+        /**
+         * Frequency of concert A, used when mapping the note-based
+         * octave extents into frequency extents for the constant-Q
+         * transform.
+         */
 	double tuningFrequency;
+
+        /**
+         * Spectral atom bandwidth scaling factor.
+         */
         double q;
+        
+        /**
+         * Hop size between temporal atoms, where 1 == no overlap and
+         * smaller values indicate overlapping atoms.
+         */
         double atomHopFactor;
+        
+        /**
+         * Sparsity threshold for Constant-Q kernel: values with
+         * magnitude smaller than this are truncated to zero.
+         */
         double threshold;
+
+        /**
+         * Window shape to use for the Constant-Q kernel atoms.
+         */
         CQParameters::WindowType window;
     };