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