Package org.jjazz.chordleadsheet.api
Interface ChordLeadSheetFactory
public interface ChordLeadSheetFactory
-
Method Summary
Modifier and TypeMethodDescriptioncreateEmptyLeadSheet
(String sectionName, TimeSignature ts, int size, boolean addInitialChordSymbol) Create an empty leadsheet except initial section.createRamdomLeadSheet
(String sectionName, TimeSignature ts, int size) Create a leadsheet with a randomly generated content (sections and chords).createSampleLeadSheet12bars
(String sectionName, int size) Create a 12 bars (or more) leadsheet which contains sample sections and chords.getCopy
(ChordLeadSheet cls) Get a deep copy of specified chordleadsheet: individual ChordLeadSheetItems are copied.static ChordLeadSheetFactory
-
Method Details
-
getDefault
-
createEmptyLeadSheet
ChordLeadSheet createEmptyLeadSheet(String sectionName, TimeSignature ts, int size, boolean addInitialChordSymbol) Create an empty leadsheet except initial section.- Parameters:
sectionName
- The name of the initial section.ts
- The time signature of the initial sectionsize
- The size in bars (must be > 0)addInitialChordSymbol
- If true add an initial C chord symbol on first bar.- Returns:
-
createSampleLeadSheet12bars
Create a 12 bars (or more) leadsheet which contains sample sections and chords.- Parameters:
sectionName
- The name of the initial section.size
- The size in bars must be >= 12.- Returns:
-
createRamdomLeadSheet
Create a leadsheet with a randomly generated content (sections and chords).- Parameters:
sectionName
- the value of sectionNamets
- The time signature of the initial sectionsize
- The size in bars must be > 0.- Returns:
-
getCopy
Get a deep copy of specified chordleadsheet: individual ChordLeadSheetItems are copied.- Parameters:
cls
-- Returns:
-