Package org.staccato
Class StaccatoUtil
- java.lang.Object
-
- org.staccato.StaccatoUtil
-
public class StaccatoUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StaccatoUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcreateBarLineElement(long time)static java.lang.StringcreateChannelPressureElement(byte pressure)static java.lang.StringcreateChordElement(Chord chord)static java.lang.StringcreateControllerEventElement(byte controller, byte value)static java.lang.StringcreateFunctionElement(java.lang.String id, java.lang.Object message)static java.lang.StringcreateInstrumentElement(byte instrument)static java.lang.StringcreateKeySignatureElement(byte notePositionInOctave, byte scale)static java.lang.StringcreateLayerElement(byte layer)static java.lang.StringcreateLyricElement(java.lang.String lyric)static java.lang.StringcreateMarkerElement(java.lang.String marker)static java.lang.StringcreateNoteElement(Note note)static java.lang.StringcreateNoteElement(Note note, byte track)static java.lang.StringcreatePitchWheelElement(byte lsb, byte msb)static java.lang.StringcreatePolyphonicPressureElement(byte key, byte pressure)static java.lang.StringcreateSystemExclusiveElement(byte... bytes)static java.lang.StringcreateTempoElement(int tempoBPM)static java.lang.StringcreateTimeSignatureElement(byte numerator, byte powerOfTwo)static java.lang.StringcreateTrackBeatTimeBookmarkElement(java.lang.String timeBookmarkId)static java.lang.StringcreateTrackBeatTimeBookmarkRequestElement(java.lang.String timeBookmarkId)static java.lang.StringcreateTrackBeatTimeRequestElement(double time)static java.lang.StringcreateTrackElement(byte track)static intfindNextOrEnd(java.lang.String s, char[] charsToFind, int startIndex)Returns the index of the first instance of any of the charsToFindstatic intfindNextOrEnd(java.lang.String s, char charToFind, int startIndex)Returns the index of the first instance of the charToFind
-
-
-
Method Detail
-
findNextOrEnd
public static int findNextOrEnd(java.lang.String s, char charToFind, int startIndex)Returns the index of the first instance of the charToFind- Parameters:
s-charToFind-startIndex-- Returns:
-
findNextOrEnd
public static int findNextOrEnd(java.lang.String s, char[] charsToFind, int startIndex)Returns the index of the first instance of any of the charsToFind- Parameters:
s-charsToFind-startIndex-- Returns:
-
createTrackElement
public static java.lang.String createTrackElement(byte track)
-
createLayerElement
public static java.lang.String createLayerElement(byte layer)
-
createInstrumentElement
public static java.lang.String createInstrumentElement(byte instrument)
-
createTempoElement
public static java.lang.String createTempoElement(int tempoBPM)
-
createKeySignatureElement
public static java.lang.String createKeySignatureElement(byte notePositionInOctave, byte scale)
-
createTimeSignatureElement
public static java.lang.String createTimeSignatureElement(byte numerator, byte powerOfTwo)
-
createBarLineElement
public static java.lang.String createBarLineElement(long time)
-
createTrackBeatTimeBookmarkElement
public static java.lang.String createTrackBeatTimeBookmarkElement(java.lang.String timeBookmarkId)
-
createTrackBeatTimeBookmarkRequestElement
public static java.lang.String createTrackBeatTimeBookmarkRequestElement(java.lang.String timeBookmarkId)
-
createTrackBeatTimeRequestElement
public static java.lang.String createTrackBeatTimeRequestElement(double time)
-
createPitchWheelElement
public static java.lang.String createPitchWheelElement(byte lsb, byte msb)
-
createChannelPressureElement
public static java.lang.String createChannelPressureElement(byte pressure)
-
createPolyphonicPressureElement
public static java.lang.String createPolyphonicPressureElement(byte key, byte pressure)
-
createSystemExclusiveElement
public static java.lang.String createSystemExclusiveElement(byte... bytes)
-
createControllerEventElement
public static java.lang.String createControllerEventElement(byte controller, byte value)
-
createLyricElement
public static java.lang.String createLyricElement(java.lang.String lyric)
-
createMarkerElement
public static java.lang.String createMarkerElement(java.lang.String marker)
-
createFunctionElement
public static java.lang.String createFunctionElement(java.lang.String id, java.lang.Object message)
-
createNoteElement
public static java.lang.String createNoteElement(Note note)
-
createNoteElement
public static java.lang.String createNoteElement(Note note, byte track)
-
createChordElement
public static java.lang.String createChordElement(Chord chord)
-
-