org.herac.tuxguitar.song.models
Class Note
java.lang.Object
org.herac.tuxguitar.song.models.Note
- All Implemented Interfaces:
- java.io.Serializable, Component
public class Note
- extends java.lang.Object
- implements Component, java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
Note(int value,
long start,
Duration duration,
int velocity,
int string,
boolean tiedNote,
NoteEffect effect)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Note
public Note(int value,
long start,
Duration duration,
int velocity,
int string,
boolean tiedNote,
NoteEffect effect)
getStart
public long getStart()
- Specified by:
getStart
in interface Component
setStart
public void setStart(long start)
- Specified by:
setStart
in interface Component
getValue
public int getValue()
setValue
public void setValue(int value)
getDuration
public Duration getDuration()
- Specified by:
getDuration
in interface Component
setDuration
public void setDuration(Duration duration)
- Specified by:
setDuration
in interface Component
getVelocity
public int getVelocity()
setVelocity
public void setVelocity(int velocity)
getString
public int getString()
setString
public void setString(int string)
isTiedNote
public boolean isTiedNote()
setTiedNote
public void setTiedNote(boolean tiedNote)
getEffect
public NoteEffect getEffect()
setEffect
public void setEffect(NoteEffect effect)
getStartWithRepetitions
public long getStartWithRepetitions()
setStartWithRepetitions
public void setStartWithRepetitions(long startWithRepetitions)
clone
public java.lang.Object clone()
- Specified by:
clone
in interface Component
- Overrides:
clone
in class java.lang.Object