Class YamJJazzDefaultRhythms

java.lang.Object
org.jjazz.yamjjazz.rhythm.api.YamJJazzDefaultRhythms

public class YamJJazzDefaultRhythms extends Object
YamJJazz default rhythm infos.

Provide the Genre and tags of the default YamJJazz rhythms, so they become searchable by the RhythmDatabase via a simple string or RhythmFeatures. This is used for instance when we need to find a substitute rhythm for a song's rhythm which is not available on the system (see SongPartImpl serialization proxy).

  • Method Details

    • getInstance

      public static YamJJazzDefaultRhythms getInstance()
    • getDefaultRhythmNames

      public Collection<String> getDefaultRhythmNames()
      The names of the default rhythms.
      Returns:
    • getGenre

      public Genre getGenre(String styleFilename)
      Return the Genre for styleFilename, if it's a default rhythm.

      Parameters:
      styleFilename -
      Returns:
      Can be null
    • getDefaultTags

      public Collection<String> getDefaultTags(String styleFilename)
      Return the tags for styleFilename, if it's a default rhythm.

      Parameters:
      styleFilename -
      Returns:
      Can be an empty list