public abstract class MoppyDevice extends Object
Constructor and Description |
---|
MoppyDevice() |
Modifier and Type | Method and Description |
---|---|
void |
deviceBendPitch(byte deviceAddress,
byte subAddress,
short bendAmount)
Override to provide pitch bending functionality
|
void |
devicePlayNote(byte deviceAddress,
byte subAddress,
byte noteNumber)
Override to provide play note functionality
|
void |
deviceReset(byte deviceAddress,
byte subAddress)
Override to provide reset functionality
|
void |
deviceStopNote(byte deviceAddress,
byte subAddress,
byte noteNumber)
Override to provide stop note functionality
|
void |
gotSystemPing()
Override to respond to system pings
|
void |
handleMessage(MoppyMessage incommingMessage) |
abstract boolean |
matchesAddress(byte deviceAddress,
byte subAddress)
Returns true if this device is listening for the specified address.
|
void |
systemReset()
Override to provide system reset functionality
|
public abstract boolean matchesAddress(byte deviceAddress, byte subAddress)
deviceAddress
- subAddress
- public void handleMessage(MoppyMessage incommingMessage)
public void gotSystemPing()
public void systemReset()
public void deviceReset(byte deviceAddress, byte subAddress)
public void devicePlayNote(byte deviceAddress, byte subAddress, byte noteNumber)
public void deviceStopNote(byte deviceAddress, byte subAddress, byte noteNumber)
public void deviceBendPitch(byte deviceAddress, byte subAddress, short bendAmount)