Package org.staccato
Class StaccatoUtil
java.lang.Object
org.staccato.StaccatoUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createBarLineElement
(long time) static String
createChannelPressureElement
(byte pressure) static String
createChordElement
(Chord chord) static String
createControllerEventElement
(byte controller, byte value) static String
createFunctionElement
(String id, Object message) static String
createInstrumentElement
(byte instrument) static String
createKeySignatureElement
(byte notePositionInOctave, byte scale) static String
createLayerElement
(byte layer) static String
createLyricElement
(String lyric) static String
createMarkerElement
(String marker) static String
createNoteElement
(Note note) static String
createNoteElement
(Note note, byte track) static String
createPitchWheelElement
(byte lsb, byte msb) static String
createPolyphonicPressureElement
(byte key, byte pressure) static String
createSystemExclusiveElement
(byte... bytes) static String
createTempoElement
(int tempoBPM) static String
createTimeSignatureElement
(byte numerator, byte powerOfTwo) static String
createTrackBeatTimeBookmarkElement
(String timeBookmarkId) static String
createTrackBeatTimeBookmarkRequestElement
(String timeBookmarkId) static String
createTrackBeatTimeRequestElement
(double time) static String
createTrackElement
(byte track) static int
findNextOrEnd
(String s, char[] charsToFind, int startIndex) Returns the index of the first instance of any of the charsToFindstatic int
findNextOrEnd
(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
-