public class SPD11PadDriver extends AbstractPatchDriver
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
SPD11_PATCHES1
all drumkits: 01~64
|
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize| Constructor and Description |
|---|
SPD11PadDriver() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateChecksum(byte[] sysex,
int start,
int end,
int offset)
SPD11PadDriver CheckSum calculation replaces the offset byte
with the result of the formula 128 -(sum % 128) |
Patch |
createNewPatch()
Create a new Patch.
|
Patch |
createNewPatch(byte[] sysex) |
Patch |
createPatch(byte[] sysex)
Create a patch from a byte array for the driver.
|
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 |
requestPatchDump(int bankNum,
int patchNum)
Request the synth to send a patch dump.
|
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Sends a pad to a set location on a synth.
|
getFullPatchName, getPatchNumbersForStore, hasEditor, isBankDriver, isConverter, isSingleDriver, setPatchNamecalculateChecksum, calculateChecksum, canCreatePatch, 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, sendPatch, sendPatchWorker, setBankNum, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNum, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcalculateChecksum, canCreatePatch, createPatch, createPatches, getAuthors, getBankNumbers, getChannel, getChecksumEnd, getChecksumOffset, getChecksumStart, getDevice, getDeviceID, getDeviceIDoffset, getPatchNameSize, getPatchNameStart, getPatchNumbers, getPatchSize, getPatchType, getSysexID, getSysexRequestDump, getTrimSize, playPatch, send, sendPatch, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysexprotected final String[] SPD11_PATCHES1
public void calculateChecksum(byte[] sysex,
int start,
int end,
int offset)
calculateChecksum in interface IDrivercalculateChecksum in class AbstractDriverp - the patch we work withstart - is where the values start adding to the sumend - is where the values stops adding to the sumoffset - is where the checksum value is replacedAbstractDriver.calculateChecksum(Patch)public void requestPatchDump(int bankNum,
int patchNum)
AbstractDriversysexRequestDump
is not null, a request dump message is sent. Otherwise a
dialog window will prompt users.requestPatchDump in interface IDriverrequestPatchDump in class AbstractDriverbankNum - is the SPD-11 patch (0~63)patchNum - is increased with +1 because patchNum 0 is "settings"AbstractDriver.requestPatchDump(int,
int),
SPD11SettingsDriver.requestPatchDump(int, int)public Patch createNewPatch()
AbstractDrivercreateNewPatch in class AbstractDriverIDriver.createPatch(),
AbstractDriver.createPatch()public Patch createNewPatch(byte[] sysex)
public Patch createPatch(byte[] sysex)
IDriverIDriver.supportsPatch() returns true.createPatch in interface IDrivercreatePatch in class AbstractDriversysex - a byte array of sysex data.IPatch object.IDriver.supportsPatch(String, byte[]),
DriverUtil#createPatch(byte[])public void storePatch(Patch p, int bankNum, int patchNum)
Override this if required.
storePatch in interface IDriverstorePatch in class AbstractPatchDriverp - bankNum - patchNum - Patch.send(int, int)public String getPatchName(Patch p)
AbstractPatchDrivergetPatchName in interface IDrivergetPatchName in class AbstractPatchDriverp - the patch with pad dataPatch.getName()public JSLFrame editPatch(Patch p)
AbstractPatchDrivereditPatch in interface IDrivereditPatch in class AbstractPatchDriverPatch.edit()Copyright © 2014. All Rights Reserved.