public class StaccatoUtil
extends java.lang.Object
Constructor and Description |
---|
StaccatoUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createBarLineElement(long time) |
static java.lang.String |
createChannelPressureElement(byte pressure) |
static java.lang.String |
createChordElement(Chord chord) |
static java.lang.String |
createControllerEventElement(byte controller,
byte value) |
static java.lang.String |
createFunctionElement(java.lang.String id,
java.lang.Object message) |
static java.lang.String |
createInstrumentElement(byte instrument) |
static java.lang.String |
createKeySignatureElement(byte notePositionInOctave,
byte scale) |
static java.lang.String |
createLayerElement(byte layer) |
static java.lang.String |
createLyricElement(java.lang.String lyric) |
static java.lang.String |
createMarkerElement(java.lang.String marker) |
static java.lang.String |
createNoteElement(Note note) |
static java.lang.String |
createNoteElement(Note note,
byte track) |
static java.lang.String |
createPitchWheelElement(byte lsb,
byte msb) |
static java.lang.String |
createPolyphonicPressureElement(byte key,
byte pressure) |
static java.lang.String |
createSystemExclusiveElement(byte... bytes) |
static java.lang.String |
createTempoElement(int tempoBPM) |
static java.lang.String |
createTimeSignatureElement(byte numerator,
byte powerOfTwo) |
static java.lang.String |
createTrackBeatTimeBookmarkElement(java.lang.String timeBookmarkId) |
static java.lang.String |
createTrackBeatTimeBookmarkRequestElement(java.lang.String timeBookmarkId) |
static java.lang.String |
createTrackBeatTimeRequestElement(double time) |
static java.lang.String |
createTrackElement(byte track) |
static int |
findNextOrEnd(java.lang.String s,
char[] charsToFind,
int startIndex)
Returns the index of the first instance of any of the charsToFind
|
static int |
findNextOrEnd(java.lang.String s,
char charToFind,
int startIndex)
Returns the index of the first instance of the charToFind
|
public static int findNextOrEnd(java.lang.String s, char charToFind, int startIndex)
s
- charToFind
- startIndex
- public static int findNextOrEnd(java.lang.String s, char[] charsToFind, int startIndex)
s
- charsToFind
- startIndex
- public static java.lang.String createTrackElement(byte track)
public static java.lang.String createLayerElement(byte layer)
public static java.lang.String createInstrumentElement(byte instrument)
public static java.lang.String createTempoElement(int tempoBPM)
public static java.lang.String createKeySignatureElement(byte notePositionInOctave, byte scale)
public static java.lang.String createTimeSignatureElement(byte numerator, byte powerOfTwo)
public static java.lang.String createBarLineElement(long time)
public static java.lang.String createTrackBeatTimeBookmarkElement(java.lang.String timeBookmarkId)
public static java.lang.String createTrackBeatTimeBookmarkRequestElement(java.lang.String timeBookmarkId)
public static java.lang.String createTrackBeatTimeRequestElement(double time)
public static java.lang.String createPitchWheelElement(byte lsb, byte msb)
public static java.lang.String createChannelPressureElement(byte pressure)
public static java.lang.String createPolyphonicPressureElement(byte key, byte pressure)
public static java.lang.String createSystemExclusiveElement(byte... bytes)
public static java.lang.String createControllerEventElement(byte controller, byte value)
public static java.lang.String createLyricElement(java.lang.String lyric)
public static java.lang.String createMarkerElement(java.lang.String marker)
public static java.lang.String createFunctionElement(java.lang.String id, java.lang.Object message)
public static java.lang.String createNoteElement(Note note)
public static java.lang.String createNoteElement(Note note, byte track)
public static java.lang.String createChordElement(Chord chord)