|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dguitar.codecs.guitarPro.GPBeat
This class describes a Beat read from a Guitar Pro file.
A beat can contain several notes, and can hold information about a chord
diagram, a mix table change event, a text marker and effects.
Field Summary | |
private GPDuration |
_duration
This beat's duration. |
private boolean |
_emptyBeat
Whether this beat is empty. |
private java.util.List |
_notes
Notes possibly associated with this beat. |
private int |
_nTuplet
When the beat is a n-tuplet. |
private boolean |
_restBeat
Whether this beat is a rest. |
private boolean[] |
_strings
The strings played in this beat. |
GPChordDiagram |
chordDiagram
Chord diagram possibly associated with this beat. |
boolean |
dottedNotes
Whether the notes contained in this beat are dotted notes. |
GPEffectsOnBeat |
effects
Effects possibly associated with this beat. |
GPMixTableChange |
mixTableChange
Mix table change possibly associated with this beat. |
java.lang.String |
text
Text possibly associated with this beat. |
Constructor Summary | |
GPBeat()
Creates a new Beat. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Returns true if the given object is equals to this Beat. |
GPDuration |
getDuration()
Returns this beat's duration. |
java.util.List |
getNotes()
Returns the notes contained in this beat. |
int |
getNTuplet()
Returns the number of the n-tuplet (3, 5, 7...). |
boolean |
isEmptyBeat()
Returns true if this beat is empty. |
boolean |
isNoteBeat()
Returns true if this beat contains at least one note. |
boolean |
isRestBeat()
Returns true if this beat is a rest beat. |
boolean |
isStringPlayed(int i)
Returns true if the string i is played. |
void |
setDuration(GPDuration duration)
Sets this beat's duration. |
void |
setEmptyBeat(boolean emptyBeat)
Sets if this beat is empty or not (according to emptyBeat). |
void |
setNTuplet(int tuplet)
Sets the number of the n-tuplet (3, 5, 7...). |
void |
setRestBeat(boolean restBeat)
Sets this beat to be a rest or not according to restBeat. |
void |
setString(int i,
boolean string)
Changes the status of the string i. |
java.lang.String |
toString()
Returns a string representation of the Beat. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean _emptyBeat
private boolean _restBeat
private GPDuration _duration
GPDuration
private java.util.List _notes
private int _nTuplet
private boolean[] _strings
public GPChordDiagram chordDiagram
GPChordDiagram
public boolean dottedNotes
public GPEffectsOnBeat effects
GPEffectsOnBeat
public GPMixTableChange mixTableChange
GPMixTableChange
public java.lang.String text
Constructor Detail |
public GPBeat()
Method Detail |
public boolean equals(java.lang.Object o)
public GPDuration getDuration()
GPDuration
public java.util.List getNotes()
public int getNTuplet()
public boolean isEmptyBeat()
public boolean isNoteBeat()
public boolean isRestBeat()
public boolean isStringPlayed(int i)
public void setDuration(GPDuration duration)
duration
- the duration to set.GPDuration
public void setEmptyBeat(boolean emptyBeat)
emptyBeat
- the boolean value.public void setNTuplet(int tuplet)
tuplet
- the number of the n-tupletpublic void setRestBeat(boolean restBeat)
restBeat
- the boolean value indicating if the beat is a rest beat.public void setString(int i, boolean string)
i
- the index of the string.string
- true if this string is played.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |