Class TimeSignatureAlgorithm
- java.lang.Object
-
- com.tagtraum.audiokern.timesignature.TimeSignatureAlgorithm
-
- Direct Known Subclasses:
OnsetStrengthTimeSignature
public abstract class TimeSignatureAlgorithm extends Object
TimeSignatureAlgorithm.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description TimeSignatureAlgorithm()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SignalPipeline<AudioBuffer,TimeSignature>
createPipeline()
Creates a pipeline, assuming the input is 44.1Khz 16bit stereo.static String
getAudioPumpId()
Id under which to access the result.TimeSignature
guessBasedOnGenre(String genre)
Guesses a time signature based on the genre.abstract void
setSong(AudioSong song)
Attempts to configure this algorithm so that created pipelines are specifically suited to the given song (mostly its genre).
-
-
-
Method Detail
-
getAudioPumpId
public static String getAudioPumpId()
Id under which to access the result.- Returns:
- id
- See Also:
SignalPump.pump()
-
createPipeline
public abstract SignalPipeline<AudioBuffer,TimeSignature> createPipeline()
Creates a pipeline, assuming the input is 44.1Khz 16bit stereo. The result is available under the idgetAudioPumpId()
.- Returns:
- pipeline
-
setSong
public abstract void setSong(AudioSong song)
Attempts to configure this algorithm so that created pipelines are specifically suited to the given song (mostly its genre).- Parameters:
song
- song
-
guessBasedOnGenre
public TimeSignature guessBasedOnGenre(String genre)
Guesses a time signature based on the genre.- Parameters:
genre
- genre string- Returns:
- a valid time signature or
null
, if we are unsuccessful at guessing
-
-