comparison NNLSChroma.cpp @ 58:01bc078f5f61 matthiasm-plugin

updated plugin and some parameter and output descriptions. adjusted the n3 file (only skeleton so far).
author matthiasm
date Mon, 25 Oct 2010 22:57:47 +0900
parents 40b3017e8774
children d398e73b46e0
comparison
equal deleted inserted replaced
57:58a390dfba70 58:01bc078f5f61
57 57
58 string 58 string
59 NNLSChroma::getDescription() const 59 NNLSChroma::getDescription() const
60 { 60 {
61 if (debug_on) cerr << "--> getDescription" << endl; 61 if (debug_on) cerr << "--> getDescription" << endl;
62 return "This plugin provides a number of features derived from a log-frequency amplitude spectrum of the DFT: some variants of the log-frequency spectrum, including a semitone spectrum derived from approximate transcription using the NNLS algorithm; based on this semitone spectrum, chroma features and a simple chord estimate."; 62 return "This plugin provides a number of features derived from a DFT-based log-frequency amplitude spectrum: some variants of the log-frequency spectrum, including a semitone spectrum derived from approximate transcription using the NNLS algorithm; and based on this semitone spectrum, different chroma features.";
63 } 63 }
64 64
65 NNLSChroma::OutputList 65 NNLSChroma::OutputList
66 NNLSChroma::getOutputDescriptors() const 66 NNLSChroma::getOutputDescriptors() const
67 { 67 {
126 m_outputSemiSpec = index++; 126 m_outputSemiSpec = index++;
127 127
128 OutputDescriptor d4; 128 OutputDescriptor d4;
129 d4.identifier = "chroma"; 129 d4.identifier = "chroma";
130 d4.name = "Chromagram"; 130 d4.name = "Chromagram";
131 d4.description = "Tuning-adjusted chromagram from NNLS soft transcription, with an emphasis on the medium note range."; 131 d4.description = "Tuning-adjusted chromagram from NNLS approximate transcription, with an emphasis on the medium note range.";
132 d4.unit = ""; 132 d4.unit = "";
133 d4.hasFixedBinCount = true; 133 d4.hasFixedBinCount = true;
134 d4.binCount = 12; 134 d4.binCount = 12;
135 d4.binNames = chromanames; 135 d4.binNames = chromanames;
136 d4.hasKnownExtents = false; 136 d4.hasKnownExtents = false;
142 m_outputChroma = index++; 142 m_outputChroma = index++;
143 143
144 OutputDescriptor d5; 144 OutputDescriptor d5;
145 d5.identifier = "basschroma"; 145 d5.identifier = "basschroma";
146 d5.name = "Bass Chromagram"; 146 d5.name = "Bass Chromagram";
147 d5.description = "Tuning-adjusted bass chromagram from NNLS soft transcription, with an emphasis on the bass note range."; 147 d5.description = "Tuning-adjusted bass chromagram from NNLS approximate transcription, with an emphasis on the bass note range.";
148 d5.unit = ""; 148 d5.unit = "";
149 d5.hasFixedBinCount = true; 149 d5.hasFixedBinCount = true;
150 d5.binCount = 12; 150 d5.binCount = 12;
151 d5.binNames = chromanames; 151 d5.binNames = chromanames;
152 d5.hasKnownExtents = false; 152 d5.hasKnownExtents = false;
158 m_outputBassChroma = index++; 158 m_outputBassChroma = index++;
159 159
160 OutputDescriptor d6; 160 OutputDescriptor d6;
161 d6.identifier = "bothchroma"; 161 d6.identifier = "bothchroma";
162 d6.name = "Chromagram and Bass Chromagram"; 162 d6.name = "Chromagram and Bass Chromagram";
163 d6.description = "Tuning-adjusted chromagram and bass chromagram (stacked on top of each other) from NNLS soft transcription."; 163 d6.description = "Tuning-adjusted chromagram and bass chromagram (stacked on top of each other) from NNLS approximate transcription.";
164 d6.unit = ""; 164 d6.unit = "";
165 d6.hasFixedBinCount = true; 165 d6.hasFixedBinCount = true;
166 d6.binCount = 24; 166 d6.binCount = 24;
167 d6.binNames = bothchromanames; 167 d6.binNames = bothchromanames;
168 d6.hasKnownExtents = false; 168 d6.hasKnownExtents = false;