public class KawaiK4EffectBankDriver extends AbstractBankDriver
singleSize, singleSysexID
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize
Constructor and Description |
---|
KawaiK4EffectBankDriver() |
Modifier and Type | Method and Description |
---|---|
void |
calculateChecksum(byte[] sysex,
int start,
int end,
int ofs)
Caluculate check sum of a byte array
sysex . |
void |
calculateChecksum(Patch p)
Calculate check sum of a
Patch . |
BankPatch |
createNewPatch()
Creates a new Effect Bank patch, with a predefined setting of the pan to
the center of all patches
|
Patch |
getPatch(Patch bank,
int patchNum)
Extract a K4-effect patch from a K4-effect bank
|
String |
getPatchName(Patch p,
int patchNum)
Get the name of the patch at the given number
patchNum . |
int |
getPatchStart(int patchNum) |
void |
putPatch(Patch bank,
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 |
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, deletePatch, editPatch, getNumColumns, getNumPatches, getPatchName, getSingleSize, getSingleSysexID, hasEditor, isBankDriver, isConverter, isSingleDriver, setPatchName, setSingleSize, setSingleSysexID
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
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 getPatchStart(int patchNum)
public String getPatchName(Patch p, 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(byte[] sysex, int start, int end, int ofs)
IDriver
sysex
.
The checksum calculation method of this method is used by Roland, YAMAHA, etc.
Compatibility Note: This method became 'static' method.
calculateChecksum
in interface IDriver
calculateChecksum
in class AbstractDriver
sysex
- a byte arraystart
- start offsetend
- end offsetofs
- offset of the checksum dataAbstractDriver.calculateChecksum(Patch)
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 bank, Patch p, int patchNum)
IBankDriver
single
is already checked by canHoldPatch
, although it was not.Patch#put(IPatch, int)
public Patch getPatch(Patch bank, int patchNum)
bank
- The patch containing an entire bankpatchNum
- The index of the patch to extractPatch#get(int)
public BankPatch createNewPatch()
createNewPatch
in class AbstractBankDriver
IDriver.createPatch()
,
AbstractDriver.createPatch()
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
public void storePatch(Patch p, int bankNum, int patchNum)
AbstractBankDriver
storePatch
in interface IDriver
storePatch
in class AbstractBankDriver
Patch.send(int, int)
Copyright © 2014. All Rights Reserved.