public class MoppyMessageFactory extends Object
Constructor and Description |
---|
MoppyMessageFactory() |
Modifier and Type | Method and Description |
---|---|
static MoppyMessage |
devicePitchBend(byte deviceAddress,
byte subAddress,
short bendAmount) |
static MoppyMessage |
devicePlayNote(byte deviceAddress,
byte subAddress,
byte noteNumber,
byte noteVelocity) |
static MoppyMessage |
deviceReset(byte deviceAddress) |
static MoppyMessage |
deviceStopNote(byte deviceAddress,
byte subAddress,
byte noteNumber) |
static MoppyMessage |
fromBytes(byte[] bytes)
This method is not a recommended way to create well-structured MoppyMessages, but is available
primarily for NetworkBridges to take advantage of.
|
static NetworkReceivedMessage |
networkReceivedFromBytes(byte[] bytes,
String networkType,
String networkIdentifier,
String remoteIdentifier) |
static MoppyMessage |
systemPong(byte deviceAddress,
byte minSubAddress,
byte maxSubAddress) |
public static MoppyMessage systemPong(byte deviceAddress, byte minSubAddress, byte maxSubAddress)
public static MoppyMessage deviceReset(byte deviceAddress)
public static MoppyMessage devicePlayNote(byte deviceAddress, byte subAddress, byte noteNumber, byte noteVelocity)
public static MoppyMessage deviceStopNote(byte deviceAddress, byte subAddress, byte noteNumber)
public static MoppyMessage devicePitchBend(byte deviceAddress, byte subAddress, short bendAmount)
public static MoppyMessage fromBytes(byte[] bytes)
bytes
- Raw byte array for MoppyMessagepublic static NetworkReceivedMessage networkReceivedFromBytes(byte[] bytes, String networkType, String networkIdentifier, String remoteIdentifier)