|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabc.notation.NoteAbstract
public class 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 |
countDots()
Returns the number of dots for this note. |
byte |
getBow()
Returns the bow to be used when playing this note. |
java.lang.String |
getChordName()
Returns the name of the chord. |
byte |
getDotted()
Deprecated. replaced by countDots() |
Note[] |
getGracingNotes()
Returns the gracing notes to be played with this note. |
int |
getGracingNotesLength(short defaultNoteLength)
Needs to be reworked !! |
SlurDefinition |
getSlurDefinition()
|
Tuplet |
getTuplet()
Returns the tuplet 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()
Returns true if this note should be played with staccato. |
boolean |
isBeginingSlur()
|
boolean |
isEndingSlur()
|
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 dotsNumber)
Sets the number of dots for this note. |
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)
Sets if this note is part of a slur or not. |
void |
setSlurDefinition(SlurDefinition slurDefinition)
|
void |
setStaccato(boolean staccatoValue)
Sets the staccato playing style of this note. |
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 dotsNumber)
dotsNumber - The number of dots for this note.public byte getDotted()
countDots()public byte countDots()
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()
setStaccato(boolean)public void setStaccato(boolean staccatoValue)
staccatoValue - true if this note should be played with staccato,
false otherwise.hasStaccato()public boolean isPartOfSlur()
public boolean isPartOfTuplet()
public Tuplet getTuplet()
isPartOfTuplet()public void setPartOfSlur(boolean isPartOfSlur)
isPartOfSlur - true if this note is part of a slur,
false otherwise.public int getGracingNotesLength(short defaultNoteLength)
public SlurDefinition getSlurDefinition()
public boolean isBeginingSlur()
public boolean isEndingSlur()
public void setSlurDefinition(SlurDefinition slurDefinition)
slurDefinition - The slurDefinition to set.public java.lang.String toString()
toString in class java.lang.Object
|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||