abc.parser
Class PositionableNote
java.lang.Object
abc.notation.NoteAbstract
abc.notation.Note
abc.parser.PositionableNote
- All Implemented Interfaces:
- MusicElement, PositionableInCharStream
public class PositionableNote
- extends Note
- implements PositionableInCharStream
A note that encapsulates the information needed to locate where the abc
information describing this note was positioned in the parsed stream.
| Fields inherited from class abc.notation.Note |
a, A, b, B, c, C, d, D, DOTTED_EIGHTH, DOTTED_HALF, DOTTED_QUARTER, DOTTED_SIXTEENTH, DOTTED_SIXTY_FOURTH, DOTTED_THIRTY_SECOND, DOTTED_WHOLE, e, E, EIGHTH, f, F, g, G, HALF, QUARTER, REST, SIXTEENTH, SIXTY_FOURTH, THIRTY_SECOND, WHOLE |
|
Constructor Summary |
PositionableNote(byte heigthValue,
byte accidentalValue)
|
PositionableNote(byte heigthValue,
byte accidentalValue,
byte octaveTranspositionValue)
|
| Methods inherited from class abc.notation.Note |
convertToAccidentalType, convertToNoteLengthStrict, convertToNoteType, getAccidental, getDuration, getHeight, getHeigth, getHighestNote, getHighestNoteIndex, getLowestNote, getOctaveTransposition, getOctaveTransposition, getStrictDuration, getStrictHeight, getStrictHeight, getTieDefinition, hasAccidental, isBeginningTie, isEndingTie, isHigherThan, isLowerThan, isRest, isStrictDuration, isTied, setAccidental, setDotted, setDuration, setHeight, setHeigth, setLength, setOctaveTransposition, setStrictDuration, setTieDefinition, toRootOctaveHeigth |
| Methods inherited from class abc.notation.NoteAbstract |
countDots, getBow, getChordName, getDotted, getGracingNotes, getGracingNotesLength, getSlurDefinition, getTuplet, hasGeneralGracing, hasGracingNotes, hasStaccato, isBeginingSlur, isEndingSlur, isPartOfSlur, isPartOfTuplet, setBow, setChordName, setGeneralGracing, setGracingNotes, setPartOfSlur, setSlurDefinition, setStaccato |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PositionableNote
public PositionableNote(byte heigthValue,
byte accidentalValue)
PositionableNote
public PositionableNote(byte heigthValue,
byte accidentalValue,
byte octaveTranspositionValue)
getPosition
public CharStreamPosition getPosition()
- Description copied from interface:
PositionableInCharStream
- Returns the start position.
- Specified by:
getPosition in interface PositionableInCharStream
- Returns:
- The start position.
setBeginPosition
public void setBeginPosition(CharStreamPosition position)
setLength
public void setLength(int length)
getLength
public int getLength()
- Description copied from interface:
PositionableInCharStream
- Returns the length of this positionable object.
- Specified by:
getLength in interface PositionableInCharStream
- Returns:
- The length of this positionable object.
toString
public java.lang.String toString()
- Description copied from class:
NoteAbstract
- Returns a String representation of this Object.
- Overrides:
toString in class Note
- Returns:
- a String representation of this Object.
Submit a bug or feature