Package org.jjazz.song.api
Class SongUtilities
java.lang.Object
org.jjazz.song.api.SongUtilities
Song utilities methods.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
doubleChordLeadsheet
(Song song) Double the chord leadsheet of the specified song.static Song
getLinearizedSong
(Song song, boolean register) Get a new song with the lead sheet linearized ("unfolded") according to the song structure.static Song
getSimplifiedLeadSheet
(Song song, boolean register) Get a new song with a simplified lead sheet.static void
halfChordLeadsheet
(Song song) Half the chord leadsheet of the specified song.
-
Field Details
-
SECTION_COPY_DELIMITER_CHAR
-
-
Constructor Details
-
SongUtilities
public SongUtilities()
-
-
Method Details
-
halfChordLeadsheet
Half the chord leadsheet of the specified song.Move all chord symbols and sections accordingly.
- Parameters:
song
-- Throws:
UnsupportedEditException
-
doubleChordLeadsheet
Double the chord leadsheet of the specified song.Move all chord symbols and sections accordingly.
- Parameters:
song
-
-
getLinearizedSong
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
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)
-