Mercurial > hg > nnls-chroma
comparison Tuning.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 | 0bf1486dc674 |
children | 1ccb883b585f |
comparison
equal
deleted
inserted
replaced
57:58a390dfba70 | 58:01bc078f5f61 |
---|---|
65 string | 65 string |
66 Tuning::getDescription() const | 66 Tuning::getDescription() const |
67 { | 67 { |
68 // Return something helpful here! | 68 // Return something helpful here! |
69 if (debug_on) cerr << "--> getDescription" << endl; | 69 if (debug_on) cerr << "--> getDescription" << endl; |
70 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."; | 70 return "The tuning plugin can estimate the local and global tuning of piece. The same tuning method is used for the NNLS Chroma and Chordino plugins."; |
71 } | 71 } |
72 | 72 |
73 Tuning::ParameterList | 73 Tuning::ParameterList |
74 Tuning::getParameterDescriptors() const | 74 Tuning::getParameterDescriptors() const |
75 { | 75 { |
77 ParameterList list; | 77 ParameterList list; |
78 | 78 |
79 ParameterDescriptor d0; | 79 ParameterDescriptor d0; |
80 d0.identifier = "rollon"; | 80 d0.identifier = "rollon"; |
81 d0.name = "spectral roll-on"; | 81 d0.name = "spectral roll-on"; |
82 d0.description = "The bins below the spectral roll-on quantile will be set to 0."; | 82 d0.description = "Consider the cumulative energy spectrum (from low to high frequencies). All bins below the first bin whose cumulative energy exceeds the quantile [spectral roll on] x [total energy] will be set to 0. A value of 0 means that no bins will be changed."; |
83 d0.unit = ""; | 83 d0.unit = ""; |
84 d0.minValue = 0; | 84 d0.minValue = 0; |
85 d0.maxValue = 0.05; | 85 d0.maxValue = 0.05; |
86 d0.defaultValue = 0; | 86 d0.defaultValue = 0; |
87 d0.isQuantized = true; | 87 d0.isQuantized = true; |
101 int index = 0; | 101 int index = 0; |
102 | 102 |
103 OutputDescriptor d0; | 103 OutputDescriptor d0; |
104 d0.identifier = "tuning"; | 104 d0.identifier = "tuning"; |
105 d0.name = "Tuning"; | 105 d0.name = "Tuning"; |
106 d0.description = "The concert pitch."; | 106 d0.description = "Returns a single label (at time 0 seconds) containing an estimate of the concert pitch in Hz."; |
107 d0.unit = "Hz"; | 107 d0.unit = "Hz"; |
108 d0.hasFixedBinCount = true; | 108 d0.hasFixedBinCount = true; |
109 d0.binCount = 0; | 109 d0.binCount = 0; |
110 d0.hasKnownExtents = true; | 110 d0.hasKnownExtents = true; |
111 d0.minValue = 427.47; | 111 d0.minValue = 427.47; |
117 m_outputTuning = index++; | 117 m_outputTuning = index++; |
118 | 118 |
119 OutputDescriptor d10; | 119 OutputDescriptor d10; |
120 d10.identifier = "localtuning"; | 120 d10.identifier = "localtuning"; |
121 d10.name = "Local Tuning"; | 121 d10.name = "Local Tuning"; |
122 d10.description = "Tuning based on the history up to this timestamp."; | 122 d10.description = "Returns a tuning estimate at every analysis frame, an average of the (recent) previous frame-wise estimates of the concert pitch in Hz."; |
123 d10.unit = "Hz"; | 123 d10.unit = "Hz"; |
124 d10.hasFixedBinCount = true; | 124 d10.hasFixedBinCount = true; |
125 d10.binCount = 1; | 125 d10.binCount = 1; |
126 d10.hasKnownExtents = true; | 126 d10.hasKnownExtents = true; |
127 d10.minValue = 427.47; | 127 d10.minValue = 427.47; |