Class SongUtilities

java.lang.Object
org.jjazz.song.api.SongUtilities

public class SongUtilities extends Object
Song utilities methods.
  • Field Details

  • Constructor Details

    • SongUtilities

      public SongUtilities()
  • Method Details

    • halfChordLeadsheet

      public static void halfChordLeadsheet(Song song) throws UnsupportedEditException
      Half the chord leadsheet of the specified song.

      Move all chord symbols and sections accordingly.

      Parameters:
      song -
      Throws:
      UnsupportedEditException
    • doubleChordLeadsheet

      public static void doubleChordLeadsheet(Song song)
      Double the chord leadsheet of the specified song.

      Move all chord symbols and sections accordingly.

      Parameters:
      song -
    • getLinearizedSong

      public static Song getLinearizedSong(Song song, boolean register)
      Get a new song with the lead sheet linearized ("unfolded") according to the song structure.

      Returns a song where each chord leadsheet Section represents only one SongPart. Linearized section name has the form "original_section_nameSECTION_COPY_DELIMITER_CHARnumber", eg "chorus#1".

      Parameters:
      song -
      register - If true register the created song
      Returns:
    • getSimplifiedLeadSheet

      public static Song getSimplifiedLeadSheet(Song song, boolean register)
      Get a new song with a simplified lead sheet.

      Created song is registered.

      Parameters:
      song -
      register - If true register the created song
      Returns:
      See Also:
      • ChordLeadSheetFactory#getSimplified(ChordLeadSheet)