org.herac.tuxguitar.song.models
Class Measure
java.lang.Object
org.herac.tuxguitar.song.models.Measure
- All Implemented Interfaces:
- java.io.Serializable
public class Measure
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
Measure(MeasureHeader header,
java.util.List notes,
java.util.List silences,
int clef,
int keySignature)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLEF_TREBLE
public static final int CLEF_TREBLE
- See Also:
- Constant Field Values
CLEF_BASS
public static final int CLEF_BASS
- See Also:
- Constant Field Values
CLEF_TENOR
public static final int CLEF_TENOR
- See Also:
- Constant Field Values
CLEF_ALTO
public static final int CLEF_ALTO
- See Also:
- Constant Field Values
Measure
public Measure(MeasureHeader header,
java.util.List notes,
java.util.List silences,
int clef,
int keySignature)
getClef
public int getClef()
setClef
public void setClef(int clef)
getKeySignature
public int getKeySignature()
setKeySignature
public void setKeySignature(int keySignature)
getNotes
public java.util.List getNotes()
setNotes
public void setNotes(java.util.List notes)
removeNote
public void removeNote(Note note)
addNote
public void addNote(Note note)
getSilences
public java.util.List getSilences()
setSilences
public void setSilences(java.util.List silences)
removeSilence
public void removeSilence(Silence silence)
addSilence
public void addSilence(Silence silence)
getHeader
public MeasureHeader getHeader()
setHeader
public void setHeader(MeasureHeader header)
getNumber
public int getNumber()
getNumberOfRepetitions
public int getNumberOfRepetitions()
getStart
public long getStart()
getStartWidthRepetitions
public long getStartWidthRepetitions()
getTempo
public Tempo getTempo()
getTimeSignature
public TimeSignature getTimeSignature()
isRepeatStart
public boolean isRepeatStart()
getTripletFeel
public int getTripletFeel()
getLength
public long getLength()
hasMarker
public boolean hasMarker()
getMarker
public Marker getMarker()
makeEqual
public void makeEqual(Measure measure)
clone
public java.lang.Object clone(MeasureHeader header)