public class AlesisDM5SgSetDriver extends AbstractPatchDriver
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize| Constructor and Description |
|---|
AlesisDM5SgSetDriver()
Constructs a AlesisDM5SgSetDriver.
|
AlesisDM5SgSetDriver(String patchType,
String authors)
Constructs a AlesisDM5SgSetDriver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateChecksum(byte[] sysex,
int start,
int end,
int offset)
Calculates the checksum for the DM5.
|
protected Patch |
createNewPatch()
Creates a new single drumset patch with default values.
|
JSLFrame |
editPatch(Patch p)
Opens an edit window on the specified patch.
|
void |
requestPatchDump(int bankNum,
int patchNum)
Requests a dump of the system info message.
|
void |
sendPatch(Patch p)
Sends a patch to the edit buffer on the DM5.
|
protected void |
setBankNum(int bankNum)
Send Control Change (Bank Select) MIDI message.
|
protected void |
setPatchNum(int patchNum)
Send Program Change MIDI message.
|
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Sends a single drumset patch to a set location on the DM5.
|
getFullPatchName, getPatchName, getPatchNumbersForStore, hasEditor, isBankDriver, isConverter, isSingleDriver, setPatchNamecalculateChecksum, 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, send, send, send, send, sendPatchWorker, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcalculateChecksum, canCreatePatch, createPatch, createPatch, createPatches, getAuthors, getBankNumbers, getChannel, getChecksumEnd, getChecksumOffset, getChecksumStart, getDevice, getDeviceID, getDeviceIDoffset, getPatchNameSize, getPatchNameStart, getPatchNumbers, getPatchSize, getPatchType, getSysexID, getSysexRequestDump, getTrimSize, playPatch, send, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysexpublic AlesisDM5SgSetDriver()
public void storePatch(Patch p, int bankNum, int patchNum)
Overrides the Driver.storePatch method to embed the program number in the patch. The input bankNum parameter is not used. The input patch number specifies the location (0 thru 20). Location numbers in the DM5 are are represented as binary 0010 0000 through 0011 0100 (32 plus patch number 0-20).
storePatch in interface IDriverstorePatch in class AbstractPatchDriverPatch.send(int, int)protected void setPatchNum(int patchNum)
setPatchNum in class AbstractDriverIDriver.storePatch(Patch, int, int)protected void setBankNum(int bankNum)
setBankNum in class AbstractDriverIDriver.storePatch(Patch, int, int)public void sendPatch(Patch p)
Overrides the Driver.sendPatch method to embed the program number in the patch, in this case the value is 1.
sendPatch in interface IDriversendPatch in class AbstractDriverPatch.send(),
ISinglePatch#send()public void calculateChecksum(byte[] sysex,
int start,
int end,
int offset)
calculateChecksum in interface IDrivercalculateChecksum in class AbstractDriversysex - a byte arraystart - start offsetend - end offsetoffset - offset of the checksum dataAbstractDriver.calculateChecksum(Patch)public void requestPatchDump(int bankNum,
int patchNum)
requestPatchDump in interface IDriverrequestPatchDump in class AbstractDriverIDriver.requestPatchDump(int, int),
SysexHandlerprotected Patch createNewPatch()
createNewPatch in class AbstractDriverIDriver.createPatch(),
AbstractDriver.createPatch()public JSLFrame editPatch(Patch p)
editPatch in interface IDrivereditPatch in class AbstractPatchDriverPatch.edit()Copyright © 2014. All Rights Reserved.