com.virtuosotechnologies.asaph.model.notation
Interface Chord


public interface Chord

An object that represents a single chord.


Field Summary
static FragmentedString.FragmentType BASS_NOTE_FRAGMENTTYPE
          FragmentedString.FragmentType for bass note
static FragmentedString.FragmentType BASS_TYPESTR_FRAGMENTTYPE
          FragmentedString.FragmentType for bass type string
static FragmentedString.FragmentType BRACKET_FRAGMENTTYPE
          FragmentedString.FragmentType for brackets
static FragmentedString.FragmentType MAIN_NOTE_FRAGMENTTYPE
          FragmentedString.FragmentType for main note
static FragmentedString.FragmentType MAIN_TYPESTR_FRAGMENTTYPE
          FragmentedString.FragmentType for main type string
static FragmentedString.FragmentType NONNOTE_FRAGMENTTYPE
          FragmentedString.FragmentType for non-note material
static FragmentedString.FragmentType NOTE_FRAGMENTTYPE
          FragmentedString.FragmentType for notes
static FragmentedString.FragmentType SEPARATOR_FRAGMENTTYPE
          FragmentedString.FragmentType for bass separator
static FragmentedString.FragmentType TYPESTR_FRAGMENTTYPE
          FragmentedString.FragmentType for type string
 
Method Summary
 FragmentedString generateFragmentedString()
          Generate the string as a set of fragments
 String generateString()
          Generate the string
 String getAuxType()
          Get the auxiliary type string.
 Note getBass()
          Get the bass Note.
 String getBassType()
          Get the bass type string.
 Chord getLowered(Interval interval)
          Lower by an interval
 NotationFactory getNotationFactory()
          Get the NotationFactory that created this object
 Note getNote()
          Get the primary Note
 Chord getRaised(Interval interval)
          Raise by an interval
 String getType()
          Get the type string (e.g.
 boolean isEmpty()
          Is the chord empty (i.e. does it generate the empty string?)
 

Field Detail

NOTE_FRAGMENTTYPE

public static final FragmentedString.FragmentType NOTE_FRAGMENTTYPE
FragmentedString.FragmentType for notes


MAIN_NOTE_FRAGMENTTYPE

public static final FragmentedString.FragmentType MAIN_NOTE_FRAGMENTTYPE
FragmentedString.FragmentType for main note


BASS_NOTE_FRAGMENTTYPE

public static final FragmentedString.FragmentType BASS_NOTE_FRAGMENTTYPE
FragmentedString.FragmentType for bass note


NONNOTE_FRAGMENTTYPE

public static final FragmentedString.FragmentType NONNOTE_FRAGMENTTYPE
FragmentedString.FragmentType for non-note material


TYPESTR_FRAGMENTTYPE

public static final FragmentedString.FragmentType TYPESTR_FRAGMENTTYPE
FragmentedString.FragmentType for type string


MAIN_TYPESTR_FRAGMENTTYPE

public static final FragmentedString.FragmentType MAIN_TYPESTR_FRAGMENTTYPE
FragmentedString.FragmentType for main type string


BASS_TYPESTR_FRAGMENTTYPE

public static final FragmentedString.FragmentType BASS_TYPESTR_FRAGMENTTYPE
FragmentedString.FragmentType for bass type string


SEPARATOR_FRAGMENTTYPE

public static final FragmentedString.FragmentType SEPARATOR_FRAGMENTTYPE
FragmentedString.FragmentType for bass separator


BRACKET_FRAGMENTTYPE

public static final FragmentedString.FragmentType BRACKET_FRAGMENTTYPE
FragmentedString.FragmentType for brackets

Method Detail

getNotationFactory

public NotationFactory getNotationFactory()
Get the NotationFactory that created this object

Returns:
the NotationFactory

isEmpty

public boolean isEmpty()
Is the chord empty (i.e. does it generate the empty string?)

Returns:
true if the chord is empty, false if not

getNote

public Note getNote()
Get the primary Note

Returns:
Note

getType

public String getType()
Get the type string (e.g. "m" for minor, or "dim" or "-" for diminished)

Returns:
String

getBass

public Note getBass()
Get the bass Note.

Returns:
Note

getBassType

public String getBassType()
Get the bass type string. (Usually blank).

Returns:
String

getAuxType

public String getAuxType()
Get the auxiliary type string. (Usually blank).

Returns:
String

generateString

public String generateString()
Generate the string

Returns:
String

generateFragmentedString

public FragmentedString generateFragmentedString()
Generate the string as a set of fragments

Returns:
FragmentedString

getRaised

public Chord getRaised(Interval interval)
Raise by an interval

Parameters:
interval - interval to raise by
Returns:
new Chord

getLowered

public Chord getLowered(Interval interval)
Lower by an interval

Parameters:
interval - interval to lower by
Returns:
new Chord