public class SysexSender extends Object implements ISender
ISender
Modifier and Type | Field and Description |
---|---|
protected byte |
channel
Device ID [1-128].
|
Constructor and Description |
---|
SysexSender()
Creates a new
SysexSender instance. |
SysexSender(String sysex)
Creates a new
SysexSender instance which uses default
generate method. |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
generate(int value)
Return a Sysex data for
value . |
void |
send(IDriver driver,
int value)
Send MIDI message[s] for
value . |
protected byte channel
public SysexSender()
SysexSender
instance. A subclass which uses
this constructor does not use sysex field. The subclass has to override
generate
method. It implies that the subclass does not have
to extend this class and can simply implement SysexWidget.ISender.public SysexSender(String sysex)
SysexSender
instance which uses default
generate
method.sysex
- A String
value like "F041##0123**"
.
Each two letters replesents a hex byte data.
"**"
value
passed to the
generate
method.
"@@"
(channel - 1)
.
"##"
(channel - 1 + 16)
.
Copyright © 2014. All Rights Reserved.