MCPcopy Create free account
hub / github.com/MTG/essentia / KeyExtractor

Method KeyExtractor

src/algorithms/extractor/keyextractor.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30const char* KeyExtractor::description = DOC("this algorithm extracts key/scale for an audio stream");
31
32KeyExtractor::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
43void KeyExtractor::createInnerNetwork() {
44 AlgorithmFactory& factory = AlgorithmFactory::instance();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected