Class OnsetStrengthTimeSignature
- java.lang.Object
-
- com.tagtraum.audiokern.timesignature.TimeSignatureAlgorithm
-
- com.tagtraum.audiokern.timesignature.OnsetStrengthTimeSignature
-
public class OnsetStrengthTimeSignature extends TimeSignatureAlgorithm
OnsetStrength- and BPM-based TimeSignature algorithm.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description OnsetStrengthTimeSignature(float bpm)
OnsetStrengthTimeSignature(int startTime, int analysisDuration, SignalProcessor<?,com.tagtraum.audiokern.bpm.Tempo> tempoProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignalPipeline<AudioBuffer,TimeSignature>
createPipeline()
Creates a pipeline, assuming the input is 44.1Khz 16bit stereo.void
setSong(AudioSong song)
Attempts to configure this algorithm so that created pipelines are specifically suited to the given song (mostly its genre).-
Methods inherited from class com.tagtraum.audiokern.timesignature.TimeSignatureAlgorithm
getAudioPumpId, guessBasedOnGenre
-
-
-
-
Constructor Detail
-
OnsetStrengthTimeSignature
public OnsetStrengthTimeSignature(int startTime, int analysisDuration, SignalProcessor<?,com.tagtraum.audiokern.bpm.Tempo> tempoProcessor)
- Parameters:
startTime
- start time in secondsanalysisDuration
- duration in seconds
-
OnsetStrengthTimeSignature
public OnsetStrengthTimeSignature(float bpm)
-
-
Method Detail
-
createPipeline
public SignalPipeline<AudioBuffer,TimeSignature> createPipeline()
Description copied from class:TimeSignatureAlgorithm
Creates a pipeline, assuming the input is 44.1Khz 16bit stereo. The result is available under the idTimeSignatureAlgorithm.getAudioPumpId()
.- Specified by:
createPipeline
in classTimeSignatureAlgorithm
- Returns:
- pipeline
-
setSong
public void setSong(AudioSong song)
Description copied from class:TimeSignatureAlgorithm
Attempts to configure this algorithm so that created pipelines are specifically suited to the given song (mostly its genre).- Specified by:
setSong
in classTimeSignatureAlgorithm
- Parameters:
song
- song
-
-