public class SPD11PatchDriver extends AbstractBankDriver
Modifier and Type | Field and Description |
---|---|
int |
numCols |
int |
numPatches |
singleSize, singleSysexID
bankNumbers, 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, setSingleSysexID
calculateChecksum, 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, trimSysex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
calculateChecksum, 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, trimSysex
public final int numPatches
public final int numCols
public SPD11PatchDriver(SPD11PadDriver padDriver, SPD11SettingsDriver settingsDriver)
padDriver
- settingsDriver
- public BankPatch createNewPatch()
AbstractBankDriver
createNewPatch
in class AbstractBankDriver
IDriver.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 IDriver
getPatchName
in class AbstractBankDriver
Patch.getName()
public void putPatch(Patch bank, Patch single, int patchNum)
IBankDriver
single
is already checked by canHoldPatch
, although it was not.Patch#put(IPatch, int)
public void setPatchName(Patch bank, int patchNum, String name)
IBankDriver
patchNum
.Patch#setName(int, String)
public void requestPatchDump(int bankNum, int patchNum)
requestPatchDump
in interface IDriver
requestPatchDump
in class AbstractDriver
bankNum
- is the SPD-11 patch we request (0~63 = patch1~64)patchNum
- IDriver.requestPatchDump(int, int)
,
SysexHandler
public void storePatch(Patch p, int bankNum, int patchNum)
storePatch
in interface IDriver
storePatch
in class AbstractBankDriver
p
- bankNum
- is the SPD11 patchpatchNum
- is ignoredPatch.send(int, int)
Copyright © 2014. All Rights Reserved.