|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.notation.NoteAbstract
This is the abstract class to define notes or multi notes.
Field Summary | |
static byte |
DOWN
The down bow type. |
static byte |
NONE
The none bow type. |
static byte |
UP
The up bow type. |
Constructor Summary | |
NoteAbstract()
|
Method Summary | |
byte |
getBow()
Returns the bow to be used when playing this note. |
java.lang.String |
getChordName()
Returns the name of the chord. |
byte |
getDotted()
Returns the dotted value of this note. |
Note[] |
getGracingNotes()
Returns the gracing notes to be played with this note. |
int |
getGracingNotesLength(short defaultNoteLength)
|
Tuplet |
getTuplet()
Returns the tupelt this note is part of. |
boolean |
hasGeneralGracing()
Returns true if this note has a general gracing, false otherwise. |
boolean |
hasGracingNotes()
Returns true if this note has gracings, false otherwise. |
boolean |
hasStaccato()
|
boolean |
isPartOfSlur()
Returns true if this Note is part of a slur. |
boolean |
isPartOfTuplet()
Return true if this note is part of a tuplet. |
void |
setBow(byte bowValue)
Sets the bow to be used when playing this note. |
void |
setChordName(java.lang.String chordName)
Sets the name of the chord. |
void |
setDotted(byte dotted)
|
void |
setGeneralGracing(boolean hasGeneralGracing)
Specifies if this note should be played with a general gracing or not. |
void |
setGracingNotes(Note[] notes)
|
void |
setPartOfSlur(boolean isPartOfSlur)
|
void |
setStaccato(boolean staccatoValue)
|
java.lang.String |
toString()
Returns a String representation of this Object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte NONE
public static final byte DOWN
public static final byte UP
Constructor Detail |
public NoteAbstract()
Method Detail |
public void setChordName(java.lang.String chordName)
chordName
- The name of the chord, ex: Gm6.public java.lang.String getChordName()
public byte getBow()
setBow(byte)
public void setBow(byte bowValue)
bowValue
- The bow to be used when playing this note. Possible values
are NONE (the default value when not specified), UP or
DOWN.public Note[] getGracingNotes()
hasGracingNotes()
public void setGracingNotes(Note[] notes)
public boolean hasGracingNotes()
public void setDotted(byte dotted)
public byte getDotted()
public boolean hasGeneralGracing()
public void setGeneralGracing(boolean hasGeneralGracing)
hasGeneralGracing
- true if this note should be played with
a general gracing, false otherwise.public boolean hasStaccato()
public void setStaccato(boolean staccatoValue)
public boolean isPartOfSlur()
public boolean isPartOfTuplet()
public Tuplet getTuplet()
isPartOfTuplet()
public void setPartOfSlur(boolean isPartOfSlur)
public int getGracingNotesLength(short defaultNoteLength)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |