Mercurial > hg > silvet
comparison src/Silvet.cpp @ 271:10d8bd634a77
Docs, fix to temporary file removal in test script
author | Chris Cannam |
---|---|
date | Sat, 26 Jul 2014 10:18:01 +0100 |
parents | 34e69544691b |
children | e5f897b2d5e8 |
comparison
equal
deleted
inserted
replaced
270:62b92d9b566a | 271:10d8bd634a77 |
---|---|
131 | 131 |
132 ParameterDescriptor desc; | 132 ParameterDescriptor desc; |
133 desc.identifier = "mode"; | 133 desc.identifier = "mode"; |
134 desc.name = "Processing mode"; | 134 desc.name = "Processing mode"; |
135 desc.unit = ""; | 135 desc.unit = ""; |
136 desc.description = "Determines the tradeoff of processing speed against transcription quality"; | 136 desc.description = "Sets the tradeoff of processing speed against transcription quality. Draft mode modifies a number of internal parameters in favour of speed. Intensive mode (the default) will almost always produce better results."; |
137 desc.minValue = 0; | 137 desc.minValue = 0; |
138 desc.maxValue = 1; | 138 desc.maxValue = 1; |
139 desc.defaultValue = 1; | 139 desc.defaultValue = 1; |
140 desc.isQuantized = true; | 140 desc.isQuantized = true; |
141 desc.quantizeStep = 1; | 141 desc.quantizeStep = 1; |
144 list.push_back(desc); | 144 list.push_back(desc); |
145 | 145 |
146 desc.identifier = "instrument"; | 146 desc.identifier = "instrument"; |
147 desc.name = "Instrument"; | 147 desc.name = "Instrument"; |
148 desc.unit = ""; | 148 desc.unit = ""; |
149 desc.description = "The instrument known to be present in the recording, if there is only one"; | 149 desc.description = "The instrument or instruments known to be present in the recording. This affects the set of instrument templates used, as well as the expected level of polyphony in the output. Using a more limited set of instruments than the default will also make the plugin run faster.\nNote that this plugin cannot isolate instruments: you can't use this setting to request notes from only one instrument in a recording with several. Instead, use this as a hint to the plugin about which instruments are actually present."; |
150 desc.minValue = 0; | 150 desc.minValue = 0; |
151 desc.maxValue = m_instruments.size()-1; | 151 desc.maxValue = m_instruments.size()-1; |
152 desc.defaultValue = 0; | 152 desc.defaultValue = 0; |
153 desc.isQuantized = true; | 153 desc.isQuantized = true; |
154 desc.quantizeStep = 1; | 154 desc.quantizeStep = 1; |
159 list.push_back(desc); | 159 list.push_back(desc); |
160 | 160 |
161 desc.identifier = "finetune"; | 161 desc.identifier = "finetune"; |
162 desc.name = "Return fine pitch estimates"; | 162 desc.name = "Return fine pitch estimates"; |
163 desc.unit = ""; | 163 desc.unit = ""; |
164 desc.description = "Return pitch estimates at finer than semitone resolution (works only in Intensive mode)"; | 164 desc.description = "Return pitch estimates at finer than semitone resolution. This works only in Intensive mode. Notes that appear to drift in pitch will be split up into shorter notes with individually finer pitches."; |
165 desc.minValue = 0; | 165 desc.minValue = 0; |
166 desc.maxValue = 1; | 166 desc.maxValue = 1; |
167 desc.defaultValue = 0; | 167 desc.defaultValue = 0; |
168 desc.isQuantized = true; | 168 desc.isQuantized = true; |
169 desc.quantizeStep = 1; | 169 desc.quantizeStep = 1; |
222 OutputList list; | 222 OutputList list; |
223 | 223 |
224 OutputDescriptor d; | 224 OutputDescriptor d; |
225 d.identifier = "notes"; | 225 d.identifier = "notes"; |
226 d.name = "Note transcription"; | 226 d.name = "Note transcription"; |
227 d.description = "Overall note transcription across selected instruments"; | 227 d.description = "Overall note transcription. Each note has time, duration, estimated pitch, and a synthetic MIDI velocity (1-127) estimated from the strength of the pitch in the mixture."; |
228 d.unit = "Hz"; | 228 d.unit = "Hz"; |
229 d.hasFixedBinCount = true; | 229 d.hasFixedBinCount = true; |
230 d.binCount = 2; | 230 d.binCount = 2; |
231 d.binNames.push_back("Frequency"); | 231 d.binNames.push_back("Frequency"); |
232 d.binNames.push_back("Velocity"); | 232 d.binNames.push_back("Velocity"); |
238 m_notesOutputNo = list.size(); | 238 m_notesOutputNo = list.size(); |
239 list.push_back(d); | 239 list.push_back(d); |
240 | 240 |
241 d.identifier = "timefreq"; | 241 d.identifier = "timefreq"; |
242 d.name = "Time-frequency distribution"; | 242 d.name = "Time-frequency distribution"; |
243 d.description = "Filtered constant-Q time-frequency distribution used as input to the expectation-maximisation algorithm"; | 243 d.description = "Filtered constant-Q time-frequency distribution as used as input to the expectation-maximisation algorithm."; |
244 d.unit = ""; | 244 d.unit = ""; |
245 d.hasFixedBinCount = true; | 245 d.hasFixedBinCount = true; |
246 d.binCount = m_instruments[0].templateHeight; | 246 d.binCount = m_instruments[0].templateHeight; |
247 d.binNames.clear(); | 247 d.binNames.clear(); |
248 if (m_cq) { | 248 if (m_cq) { |