MessageBuilder


Methods

setFirst (
firstByte Int[]
)

Set the MIDI message code for this messageBuilder.

setSecond (
secondByteStasis Int[] minValue Int[] maxValue Int[]
)

Sets a MIDI message second byte value.

For messages that are set to setFourteenBit = 0 (default), the secondByte sets the controller number and can range from 0-119 and is defined by the first setSecond value. The second and third setSecond values are not used.

For messages that are set to setFourteenBit = 1, the secondByte is the least significant byte (fine tuning). The first parameter is the start value. The second and third parameters are the minimum to maximum range and end value.

If fourteenBit = 1
secondByte = 64 and thirdByte = 0: a combined value of 8,192, no pitch bend.
secondByte = 0 and thirdByte = 0: a combined value of 0, maximum downward bend.
secondByte = 127 and thirdByte = 127: a combined value of 16,383, maximum upward bend.

setThird (
thirdByteStasis Int[] minValue Int[] maxValue Int[]
)

Sets a MIDI message third byte value.

The first value is the start value for the message. The second and third parameters are the minimum to maximum range. The value within the range is based on the color intensity.

IF FOURTEENBIT = 1 THE VALUE WILL BE A MAX OF 16,383. IT MUST BE ENTERED MANUALLY IN CODE AND WILL NOT BE SAVED IN THE SESSION.
secondByte = 64 and thirdByte = 0: no pitch bend.
secondByte = 0 and thirdByte = 0: maximum downward bend.
secondByte = 127 and thirdByte = 127: maximum upward bend.

setStartTime (
startTime Int[]
)

Sets how far in the future a message should be sent after it’s activated.

setNoteRelationship (
noteRelationship Int[]
)

Which note attached to the instrumentBuilder this messageBuilder is attached to will cause this a message in this messageBuilder to activate.

setFourteenBit (
fourteenBit Int[]
)

Sets a messageBuilder as 14-bit. Pitch bend are 14-bit. Most other messages are not 14-bit.

0: Is not 14-bit. Only the third byte is used.
1: Is 14-bit. The second byte and third bytes are used.

setResetOnLoop (
resetOnLoop Int[]
)

If the message should start at the default value (the first value for the first and second bytes) each time it’s activated or “tick-tock”, the start value equalling the end value of the last time the message as activated.

setMessageLockLength (
setMessageLockLength Int[]
)

How long the message should be locked (and not able to be activated) after it is activated.

setAllLockLength (
allLockLength Int[]
)

Stops all messages from this object from activating on a per instrument basis.
If set to -1 it will lock the length of the playing note.

setEnable (
enable Int[]
)
setColorMinMax (
min Int[] max Int[]
)

Sets the minimum and maximum color intensity that allows an object to activate.

Color intensity is calculated based on the amount of color present in RGB color segment assigned to the object, per frame.

setMessageLength (
min Int[] max Int[]
)

Sets the length of the message.

setEnableOnCount (
enableOnCount Int
)
setDisableOnCount (
disableOnCount Int
)