public class KawaiK5000BankDriver extends AbstractBankDriver
| Modifier and Type | Field and Description |
|---|---|
Patch |
indexedPatch |
int[] |
patchIndex |
singleSize, singleSysexIDbankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize| Constructor and Description |
|---|
KawaiK5000BankDriver() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateChecksum(Patch p)
Calculate check sum of a
Patch. |
BankPatch |
createNewPatch()
Create a new Patch.
|
void |
deletePatch(Patch b,
int patchNum)
Delete a patch.
|
void |
generateIndex(Patch p) |
Patch |
getPatch(Patch b,
int patchNum)
Gets a patch from the bank, converting it as needed.
|
String |
getPatchName(Patch ip)
Get name of the bank.
|
String |
getPatchName(Patch ip,
int patchNum)
Get the name of the patch at the given number
patchNum. |
int |
getPatchStart(int patchNum) |
int |
getPatchStart(Patch p,
int patchNum) |
int |
numPatchesinBank(Patch p) |
boolean |
patchExists(Patch p,
int num) |
int |
patchSize(Patch bank,
int patchNum) |
void |
putPatch(Patch b,
Patch p,
int patchNum)
Puts a patch into the bank, converting it as needed.
|
void |
requestPatchDump(int bankNum,
int patchNum)
Request the synth to send a patch dump.
|
void |
setPatchExists(Patch p,
int num,
boolean exists) |
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)
Store the bank to a given bank on the synth.
|
canHoldPatch, editPatch, getNumColumns, getNumPatches, getSingleSize, getSingleSysexID, hasEditor, isBankDriver, isConverter, isSingleDriver, setPatchName, setSingleSize, setSingleSysexIDcalculateChecksum, 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, 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 int[] patchIndex
public Patch indexedPatch
public int numPatchesinBank(Patch p)
public boolean patchExists(Patch p, int num)
public void setPatchExists(Patch p, int num, boolean exists)
public void generateIndex(Patch p)
public int getPatchStart(int patchNum)
public int getPatchStart(Patch p, int patchNum)
public String getPatchName(Patch ip)
AbstractBankDrivergetPatchName in interface IDrivergetPatchName in class AbstractBankDriverPatch.getName()public String getPatchName(Patch ip, int patchNum)
IBankDriverpatchNum.Patch#getName(int)public void setPatchName(Patch bank, int patchNum, String name)
IBankDriverpatchNum.Patch#setName(int, String)public void calculateChecksum(Patch p)
AbstractDriverPatch.
Need to be overridden if a patch is consist from multiple SysEX messages.
calculateChecksum in interface IDrivercalculateChecksum in class AbstractDriverp - a Patch valuepublic void putPatch(Patch b, Patch p, int patchNum)
IBankDriversingle
is already checked by canHoldPatch, although it was not.Patch#put(IPatch, int)public Patch getPatch(Patch b, int patchNum)
IBankDriverPatch#get(int)public BankPatch createNewPatch()
AbstractBankDrivercreateNewPatch in class AbstractBankDriverIDriver.createPatch(),
AbstractDriver.createPatch()public void storePatch(Patch p, int bankNum, int patchNum)
AbstractBankDriverstorePatch in interface IDriverstorePatch in class AbstractBankDriverPatch.send(int, int)public void deletePatch(Patch b, int patchNum)
AbstractBankDriverdeletePatch in interface IBankDriverdeletePatch in class AbstractBankDriverPatch#delete(int)public int patchSize(Patch bank, int patchNum)
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 AbstractDriverIDriver.requestPatchDump(int, int),
SysexHandlerCopyright © 2014. All Rights Reserved.