|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.geeboss.model.midi.memory.MemoryComponent
net.sourceforge.geeboss.model.midi.memory.MemoryObject
net.sourceforge.geeboss.model.midi.memory.MappedDevice
net.sourceforge.geeboss.model.midi.roland.RolandDevice
public abstract class RolandDevice
Base class for roland midi devices
Field Summary | |
---|---|
static byte |
DT1_COMMAND
Roland DT1 command |
static byte |
MANUFACTURER_ID
Roland manufacturer id |
static byte |
RQ1_COMMAND
Roland RQ1 command |
Fields inherited from class net.sourceforge.geeboss.model.midi.memory.MemoryObject |
---|
mMemoryMap |
Fields inherited from class net.sourceforge.geeboss.model.midi.memory.MemoryComponent |
---|
mAbsoluteAddress, mBaseAddress, mName, mParent, mSize |
Constructor Summary | |
---|---|
RolandDevice(GeebossContainer container)
Create a new RolandDevice |
Method Summary | |
---|---|
void |
close()
Receive a close command fromt the midi thread |
void |
dataSet1(long address,
byte[] data)
Send a data set 1 command |
abstract org.apache.avalon.framework.configuration.Configuration |
getEditorsConfiguration()
Get the implementation specific editors configuration |
MemoryEditorsManager |
getEditorsManager()
Getter for editors manager |
abstract byte[] |
getModelId()
Implmentation specific model id (3 bytes) |
StringTableManager |
getStringTableManager()
Getter for string table manager |
abstract org.apache.avalon.framework.configuration.Configuration |
getStringTablesConfiguration()
Get the implementation specific string tables configuration |
abstract Patch |
getTemporaryPatch()
Getter for temporary patch |
void |
initialize()
Initialize this component |
void |
requestData1(long address,
long size)
Send a request data 1 command |
void |
requestMemoryComponent(MemoryComponent component)
Request the data associated to a memory component from the device |
void |
send(javax.sound.midi.MidiMessage message,
long timeStamp)
Receive data from the midi thread |
void |
sendMemoryComponent(MemoryComponent component)
Send the data associated to a memory component to the device |
void |
sendMemoryMessage(SysexMemoryMessage message)
Send the provided sysex memory message to the device |
void |
sendMemoryMessages(java.util.List<SysexMemoryMessage> messages)
Send memory messages to the device |
void |
sendMemoryObject(MemoryObject object)
Send the data associated to a memory object to the device |
void |
sendMemoryValue(MemoryValue value)
Send the data associated to a memory value to the device |
void |
sendSysexMessage(byte[] message)
Send a sysex message to the device |
void |
sendSysexMessage(byte[] message,
boolean waitForAck)
Send a sysex message to the device |
void |
setDeviceId(byte deviceId)
Setter for device id |
void |
valueChanged(MemoryComponent value)
Notify the listener that the provided value (or object) has changed |
Methods inherited from class net.sourceforge.geeboss.model.midi.memory.MappedDevice |
---|
fromSysex, getComponent, getDeviceConfiguration, toSysex |
Methods inherited from class net.sourceforge.geeboss.model.midi.memory.MemoryObject |
---|
addReference, fromSysex, getComponent, handleClassCastException, isValue, setup |
Methods inherited from class net.sourceforge.geeboss.model.midi.memory.MemoryComponent |
---|
getAbsoluteAddress, getBaseAddress, getName, getParent, getSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte MANUFACTURER_ID
public static final byte RQ1_COMMAND
public static final byte DT1_COMMAND
Constructor Detail |
---|
public RolandDevice(GeebossContainer container) throws org.apache.avalon.framework.configuration.ConfigurationException
container
- the GeebossContainer
org.apache.avalon.framework.configuration.ConfigurationException
Method Detail |
---|
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
public StringTableManager getStringTableManager()
public MemoryEditorsManager getEditorsManager()
public abstract Patch getTemporaryPatch()
public abstract org.apache.avalon.framework.configuration.Configuration getStringTablesConfiguration() throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
public abstract org.apache.avalon.framework.configuration.Configuration getEditorsConfiguration() throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
public void setDeviceId(byte deviceId)
deviceId
- the device idpublic abstract byte[] getModelId()
public void sendSysexMessage(byte[] message)
message
- the message to sendpublic void sendSysexMessage(byte[] message, boolean waitForAck)
message
- the message to sendwaitForAck
- if true wait for data from the device before sending another messagepublic void dataSet1(long address, byte[] data)
address
- the addressdata
- data bytespublic void requestData1(long address, long size)
address
- the addresssize
- the sizepublic void sendMemoryComponent(MemoryComponent component)
component
- the component to sendpublic void sendMemoryObject(MemoryObject object)
object
- the object to sendpublic void sendMemoryValue(MemoryValue value)
value
- the value to sendpublic void requestMemoryComponent(MemoryComponent component)
component
- the component we want the data forpublic void sendMemoryMessages(java.util.List<SysexMemoryMessage> messages)
messages
- the messages to sendpublic void sendMemoryMessage(SysexMemoryMessage message)
message
- the message to senbpublic void send(javax.sound.midi.MidiMessage message, long timeStamp)
send
in interface javax.sound.midi.Receiver
public void close()
close
in interface javax.sound.midi.Receiver
public void valueChanged(MemoryComponent value)
valueChanged
in interface ValueChangeListener
value
- the changed value (or object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |