public class OberheimMatrixSingleDriver extends AbstractPatchDriver
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize
Constructor and Description |
---|
OberheimMatrixSingleDriver() |
Modifier and Type | Method and Description |
---|---|
void |
calculateChecksum(byte[] sysex,
int start,
int end,
int ofs)
Caluculate check sum of a byte array
sysex . |
void |
calculateChecksum(Patch p)
Calculate check sum of a
Patch . |
Patch |
createNewPatch()
Create a new Patch.
|
JSLFrame |
editPatch(Patch p)
Override this if your driver implement Patch Editor.
|
String |
getPatchName(Patch p)
Gets the name of the patch from the sysex.
|
void |
sendPatch(Patch p)
Sends a patch to the synth's edit buffer.
|
void |
setBankNum(int bankNum)
Send Control Change (Bank Select) MIDI message.
|
void |
setPatchName(Patch p,
String name)
Set the name of the patch in the sysex.
|
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Sends a patch to a set location on a synth.
|
getFullPatchName, getPatchNumbersForStore, hasEditor, isBankDriver, isConverter, isSingleDriver
calculateChecksum, canCreatePatch, createPatch, createPatch, createPatches, generateNumbers, getAuthors, getBankNumbers, getChannel, getChecksumEnd, getChecksumOffset, getChecksumStart, getDevice, getDeviceID, getDeviceIDoffset, getManufacturerName, getModelName, getPatchFactory, getPatchNameSize, getPatchNameStart, getPatchNumbers, getPatchSize, getPatchType, getSynthName, getSysexID, getSysexRequestDump, getTrimSize, playPatch, requestPatchDump, send, send, send, send, sendPatchWorker, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNum, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canCreatePatch, createPatch, createPatch, createPatches, getAuthors, getBankNumbers, getChannel, getChecksumEnd, getChecksumOffset, getChecksumStart, getDevice, getDeviceID, getDeviceIDoffset, getPatchNameSize, getPatchNameStart, getPatchNumbers, getPatchSize, getPatchType, getSysexID, getSysexRequestDump, getTrimSize, playPatch, requestPatchDump, send, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysex
public void calculateChecksum(Patch p)
AbstractDriver
Patch
.
Need to be overridden if a patch is consist from multiple SysEX messages.
calculateChecksum
in interface IDriver
calculateChecksum
in class AbstractDriver
p
- a Patch
valuepublic void calculateChecksum(byte[] sysex, int start, int end, int ofs)
IDriver
sysex
.
The checksum calculation method of this method is used by Roland, YAMAHA, etc.
Compatibility Note: This method became 'static' method.
calculateChecksum
in interface IDriver
calculateChecksum
in class AbstractDriver
sysex
- a byte arraystart
- start offsetend
- end offsetofs
- offset of the checksum dataAbstractDriver.calculateChecksum(Patch)
public void setBankNum(int bankNum)
AbstractDriver
setBankNum
in class AbstractDriver
IDriver.storePatch(Patch, int, int)
public void storePatch(Patch p, int bankNum, int patchNum)
AbstractPatchDriver
Override this if required.
storePatch
in interface IDriver
storePatch
in class AbstractPatchDriver
Patch.send(int, int)
public void sendPatch(Patch p)
AbstractDriver
Override this in the subclass if parameters or warnings need to be sent to the user (aka if the particular synth does not have a edit buffer or it is not MIDI accessable).
sendPatch
in interface IDriver
sendPatch
in class AbstractDriver
Patch.send()
,
ISinglePatch#send()
public String getPatchName(Patch p)
AbstractPatchDriver
getPatchName
in interface IDriver
getPatchName
in class AbstractPatchDriver
Patch.getName()
public void setPatchName(Patch p, String name)
AbstractPatchDriver
setPatchName
in interface IDriver
setPatchName
in class AbstractPatchDriver
Patch.setName(String)
public Patch createNewPatch()
AbstractDriver
createNewPatch
in class AbstractDriver
IDriver.createPatch()
,
AbstractDriver.createPatch()
public JSLFrame editPatch(Patch p)
AbstractPatchDriver
editPatch
in interface IDriver
editPatch
in class AbstractPatchDriver
Patch.edit()
Copyright © 2014. All Rights Reserved.