Package com.tagtraum.audiokern.key
Class KeyAlgorithm
- java.lang.Object
-
- com.tagtraum.audiokern.key.KeyAlgorithm
-
- Direct Known Subclasses:
ForestBasedKey,PitchProfileKey2
public abstract class KeyAlgorithm extends Object
Key detection algorithm.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description KeyAlgorithm()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SignalProcessor<AudioBuffer,Key>createPipeline(AudioFileFormat audioFileFormat)static StringgetAudioPumpId()abstract AudioClipgetRequiredClip(AudioFileFormat audioFileFormat)AudioSonggetSong()Metadata regarding the song that is supposed to be analyzed.voidsetSong(AudioSong song)Allow the algorithm to access meta data to the songs it is supposed to analyze.
-
-
-
Method Detail
-
getAudioPumpId
public static String getAudioPumpId()
-
setSong
public void setSong(AudioSong song)
Allow the algorithm to access meta data to the songs it is supposed to analyze.- Parameters:
song- song
-
getSong
public AudioSong getSong()
Metadata regarding the song that is supposed to be analyzed.- Returns:
- song
-
createPipeline
public abstract SignalProcessor<AudioBuffer,Key> createPipeline(AudioFileFormat audioFileFormat)
-
getRequiredClip
public abstract AudioClip getRequiredClip(AudioFileFormat audioFileFormat)
-
-