public class KawaiK5000BankDriver extends AbstractBankDriver
Modifier and Type | Field and Description |
---|---|
Patch |
indexedPatch |
int[] |
patchIndex |
singleSize, singleSysexID
bankNumbers, 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, setSingleSysexID
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, 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 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)
AbstractBankDriver
getPatchName
in interface IDriver
getPatchName
in class AbstractBankDriver
Patch.getName()
public String getPatchName(Patch ip, int patchNum)
IBankDriver
patchNum
.Patch#getName(int)
public void setPatchName(Patch bank, int patchNum, String name)
IBankDriver
patchNum
.Patch#setName(int, String)
public void calculateChecksum(Patch p)
AbstractDriver
Patch
.
Need to be overridden if a patch is consist from multiple SysEX messages.
calculateChecksum
in interface IDriver
calculateChecksum
in class AbstractDriver
p
- a Patch
valuepublic void putPatch(Patch b, Patch p, int patchNum)
IBankDriver
single
is already checked by canHoldPatch
, although it was not.Patch#put(IPatch, int)
public Patch getPatch(Patch b, int patchNum)
IBankDriver
Patch#get(int)
public BankPatch createNewPatch()
AbstractBankDriver
createNewPatch
in class AbstractBankDriver
IDriver.createPatch()
,
AbstractDriver.createPatch()
public void storePatch(Patch p, int bankNum, int patchNum)
AbstractBankDriver
storePatch
in interface IDriver
storePatch
in class AbstractBankDriver
Patch.send(int, int)
public void deletePatch(Patch b, int patchNum)
AbstractBankDriver
deletePatch
in interface IBankDriver
deletePatch
in class AbstractBankDriver
Patch#delete(int)
public int patchSize(Patch bank, int patchNum)
public void requestPatchDump(int bankNum, int patchNum)
AbstractDriver
sysexRequestDump
is not null
, a request dump message is sent. Otherwise a
dialog window will prompt users.requestPatchDump
in interface IDriver
requestPatchDump
in class AbstractDriver
IDriver.requestPatchDump(int, int)
,
SysexHandler
Copyright © 2014. All Rights Reserved.