Class TGChordCreatorUtil
java.lang.Object
org.jjazz.instrumentcomponents.guitardiagram.api.TGChordCreatorUtil
Class that helps to create a chord from information put in ChordSelector dialog.
Also contains ChordDatabase static field.
- Author:
- Nikola Kolarovic, julian
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Maximum fret distance for a chordstatic final int
Maximum number of strings variable - has twin in TrackPropertiesAction class -
Constructor Summary
-
Method Summary
-
Field Details
-
MAX_STRINGS
public static final int MAX_STRINGSMaximum number of strings variable - has twin in TrackPropertiesAction class- See Also:
-
MAX_FRET_SPAN
public static final int MAX_FRET_SPANMaximum fret distance for a chord- See Also:
-
-
Constructor Details
-
TGChordCreatorUtil
public TGChordCreatorUtil() -
TGChordCreatorUtil
public TGChordCreatorUtil(int maxFretSpan)
-
-
Method Details
-
getChords
-
getChords
public List<TGChord> getChords(int[] tuning, int chordIndex, int alteration, int plusMinus, boolean add, int add5, int add9, int add11, int bassTonic, int chordTonic, boolean sharp) - Parameters:
tuning
-chordIndex
- Index of TGChordDatabasealteration
- 0="", 1="9", 2="11", 3="13", 11 implies 7+9+11, etc.plusMinus
- 0="", 1="+", 2="-" : change the alterationadd
- If true just add the alteration, e.g. C11 is C7 +11 (no 9)add5
- 0="", 1="+", 2="-"add9
-add11
-bassTonic
-chordTonic
-sharp
- True/false- Returns:
-