public class YamahaCS2xBankDriver extends AbstractBankDriver
singleSize, singleSysexIDbankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize| Constructor and Description |
|---|
YamahaCS2xBankDriver(YamahaCS2xCommonDriver commonDriver,
YamahaCS2xLayersDriver layersDriver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHoldPatch(Patch p)
Compares the header & size of a Single Patch to this driver to see if
this bank can hold the patch.
|
Patch[] |
createPatches(SysexMessage[] msgs)
Create an array of patches from an array of SysexMessage for the driver.
|
Patch |
getPatch(Patch bank,
int patchNum)
Gets a patch from the bank, converting it as needed.
|
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 single,
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. |
createNewPatch, deletePatch, editPatch, getNumColumns, getNumPatches, getPatchName, getSingleSize, getSingleSysexID, hasEditor, isBankDriver, isConverter, isSingleDriver, setPatchName, setSingleSize, setSingleSysexID, storePatchcalculateChecksum, calculateChecksum, calculateChecksum, canCreatePatch, createPatch, createPatch, 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, 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 YamahaCS2xBankDriver(YamahaCS2xCommonDriver commonDriver, YamahaCS2xLayersDriver layersDriver)
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),
SysexHandlerpublic void putPatch(Patch bank, Patch single, int patchNum)
IBankDriversingle
is already checked by canHoldPatch, although it was not.Patch#put(IPatch, int)public Patch getPatch(Patch bank, int patchNum)
IBankDriverPatch#get(int)public int getPatchStart(int patchNum)
public String getPatchName(Patch p, int patchNum)
IBankDriverpatchNum.Patch#getName(int)public void setPatchName(Patch bank, int patchNum, String name)
IBankDriverpatchNum.Patch#setName(int, String)public boolean canHoldPatch(Patch p)
AbstractBankDrivercanHoldPatch in interface IBankDrivercanHoldPatch in class AbstractBankDriverPatch#put(Patch, int),
AbstractDriver.supportsPatch(java.lang.String, byte[])public Patch[] createPatches(SysexMessage[] msgs)
IDriverrequestPatchDump(int, int).createPatches in interface IDrivercreatePatches in class AbstractDrivermsgs - an array of SysexMessage.IPatch value.IDriver.requestPatchDump(int, int),
SysexGetDialogCopyright © 2014. All Rights Reserved.