public class SPD11PatchDriver extends AbstractBankDriver
| Modifier and Type | Field and Description |
|---|---|
int |
numCols |
int |
numPatches |
singleSize, singleSysexIDbankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize| Constructor and Description |
|---|
SPD11PatchDriver(SPD11PadDriver padDriver,
SPD11SettingsDriver settingsDriver) |
| Modifier and Type | Method and Description |
|---|---|
BankPatch |
createNewPatch()
Create a new Patch.
|
Patch |
getPatch(Patch patch,
int patchNum)
getPatch gets a "Settings" or a "Pad" patch from the bank (known as
SPD11patch)
|
String |
getPatchName(Patch bank)
Get name of the bank i.e.
|
String |
getPatchName(Patch patch,
int patchNum)
Get the name of the patch at the given number patchNum.
|
void |
putPatch(Patch bank,
Patch single,
int patchNum)
Puts a patch into the bank, converting it as needed.
|
void |
requestPatchDump(int bankNum,
int patchNum)
request a full SPD11patch -> this is a bank of pads + settings so
patchNum is ignored
|
void |
setPatchName(Patch bank,
int patchNum,
String name)
Set the name of the patch at the given number
patchNum. |
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Sends an SPD11Patch to a new location, calculating the new
checksums with the new value in the addresses of each pad or the settings. |
canHoldPatch, deletePatch, editPatch, getNumColumns, getNumPatches, getSingleSize, getSingleSysexID, hasEditor, isBankDriver, isConverter, isSingleDriver, setPatchName, setSingleSize, setSingleSysexIDcalculateChecksum, calculateChecksum, 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, 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, calculateChecksum, canCreatePatch, createPatch, 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, trimSysexpublic final int numPatches
public final int numCols
public SPD11PatchDriver(SPD11PadDriver padDriver, SPD11SettingsDriver settingsDriver)
padDriver - settingsDriver - public BankPatch createNewPatch()
AbstractBankDrivercreateNewPatch in class AbstractBankDriverIDriver.createPatch(),
AbstractDriver.createPatch()public Patch getPatch(Patch patch, int patchNum)
patch - patchNum - Patch#get(int)public String getPatchName(Patch patch, int patchNum)
patch - the Patch of the drumkit aka bankpatchNum - the given pad or the settings if patchNum is 0.Patch#getName(int)public String getPatchName(Patch bank)
getPatchName in interface IDrivergetPatchName in class AbstractBankDriverPatch.getName()public void putPatch(Patch bank, Patch single, int patchNum)
IBankDriversingle
is already checked by canHoldPatch, although it was not.Patch#put(IPatch, int)public void setPatchName(Patch bank, int patchNum, String name)
IBankDriverpatchNum.Patch#setName(int, String)public void requestPatchDump(int bankNum,
int patchNum)
requestPatchDump in interface IDriverrequestPatchDump in class AbstractDriverbankNum - is the SPD-11 patch we request (0~63 = patch1~64)patchNum - IDriver.requestPatchDump(int, int),
SysexHandlerpublic void storePatch(Patch p, int bankNum, int patchNum)
storePatch in interface IDriverstorePatch in class AbstractBankDriverp - bankNum - is the SPD11 patchpatchNum - is ignoredPatch.send(int, int)Copyright © 2014. All Rights Reserved.