Class TGChordCreatorUtil

java.lang.Object
org.jjazz.instrumentcomponents.guitardiagram.api.TGChordCreatorUtil

public class TGChordCreatorUtil extends Object
Class that helps to create a chord from information put in ChordSelector dialog.

Also contains ChordDatabase static field.

Author:
Nikola Kolarovic, julian
  • Field Details

    • MAX_STRINGS

      public static final int MAX_STRINGS
      Maximum number of strings variable - has twin in TrackPropertiesAction class
      See Also:
    • MAX_FRET_SPAN

      public static final int MAX_FRET_SPAN
      Maximum fret distance for a chord
      See Also:
  • Constructor Details

    • TGChordCreatorUtil

      public TGChordCreatorUtil()
    • TGChordCreatorUtil

      public TGChordCreatorUtil(int maxFretSpan)
  • Method Details

    • getChords

      public List<TGChord> getChords(ChordSymbol chordSymbol)
    • 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 TGChordDatabase
      alteration - 0="", 1="9", 2="11", 3="13", 11 implies 7+9+11, etc.
      plusMinus - 0="", 1="+", 2="-" : change the alteration
      add - 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: