abc4j API Specification

abc.parser
Class AbcToolkit

java.lang.Object
  extended by 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.


Nested Class Summary
static class AbcToolkit.DurationDescription
           
 
Constructor Summary
AbcToolkit()
           
 
Method Summary
static byte convertBrokenRhythm(java.lang.String brokenRhythm)
           
static byte convertToOctaveTransposition(java.lang.String octave)
           
static byte convertToRepeatBarLine(java.lang.String barLine)
           
static AbcToolkit.DurationDescription getAbsoluteDurationFor(Fraction relativeDuration, short defaultDuration)
          Returns the absolute note duration for the specified relative note with taking into account the default note length.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbcToolkit

public AbcToolkit()
Method Detail

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.

abc4j API Specification

Submit a bug or feature