Class TimeSignatureAlgorithm

    • Constructor Detail

      • TimeSignatureAlgorithm

        public TimeSignatureAlgorithm()
    • Method Detail

      • getAudioPumpId

        public static String getAudioPumpId()
        Id under which to access the result.
        Returns:
        id
        See Also:
        SignalPump.pump()
      • 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