abc.parser
Class AbcToolkit
java.lang.Object
abc.parser.AbcToolkit
public class AbcToolkit
- extends java.lang.Object
A class that provides convenience methods to manipulate abc related
strings and their representation using objects from the abc.notation
package.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbcToolkit
public AbcToolkit()
convertToRepeatBarLine
public static byte convertToRepeatBarLine(java.lang.String barLine)
convertBrokenRhythm
public static byte convertBrokenRhythm(java.lang.String brokenRhythm)
convertToOctaveTransposition
public static byte convertToOctaveTransposition(java.lang.String octave)
getAbsoluteDurationFor
public static AbcToolkit.DurationDescription getAbsoluteDurationFor(Fraction relativeDuration,
short defaultDuration)
throws java.lang.IllegalArgumentException
- Returns the absolute note duration for the specified relative note
with taking into account the default note length.
- Returns:
- The absolute note duration for the specified relative note
with taking into account the default note length.
ONLY Possible values are Note.WHOLE, Note.HALF,
Note.QUARTER, Note.EIGHTH, Note.SIXTEENTH,
Note.THIRTY_SECOND, Note.SIXTY_FOURTH.
Usefull to convert notes such as :
- Throws:
java.lang.IllegalArgumentException - Thrown if the computing of the
absolute note duration is impossible.
Submit a bug or feature