| 30 | const char* KeyExtractor::description = DOC("this algorithm extracts key/scale for an audio stream"); |
| 31 | |
| 32 | KeyExtractor::KeyExtractor(): _frameCutter(0), _windowing(0), _spectrum(0), _spectralPeaks(0), |
| 33 | _hpcpKey(0), _key(0) { |
| 34 | |
| 35 | declareInput(_audio, "audio", "the audio signal"); |
| 36 | declareOutput(_keyKey, "key", "see Key algorithm documentation"); |
| 37 | declareOutput(_keyScale, "scale", "see Key algorithm documentation"); |
| 38 | declareOutput(_keyStrength, "strength", "see Key algorithm documentation"); |
| 39 | |
| 40 | createInnerNetwork(); |
| 41 | } |
| 42 | |
| 43 | void KeyExtractor::createInnerNetwork() { |
| 44 | AlgorithmFactory& factory = AlgorithmFactory::instance(); |
nothing calls this directly
no outgoing calls
no test coverage detected