public class YamahaCS2xBank2Driver extends AbstractBankDriver
singleSize, singleSysexIDbankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize| Constructor and Description |
|---|
YamahaCS2xBank2Driver()
Constructor for the YamahaFS1RBankDriver object
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateChecksum(Patch p)
calculate checksum of each sysexmessage inside the bankpatch: 128*7
messages have to be checked.
|
boolean |
canHoldPatch(Patch p)
FS1R bank holds 2 types of patch, performance and voice.
|
BankPatch |
createNewPatch()
Bank factory
|
Patch |
getPatch(Patch bank,
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)
Gets the patchName of a patch in the bank
|
int |
getPatchStart(int patchNum)
Gets the start of a performance range of massages (7)
|
void |
putPatch(Patch bank,
Patch p,
int patchNum)
Puts a patch into the bank, converting it as needed
|
void |
requestPatchDump(int bankNum,
int patchNum)
static YamahaCS2xBank2Driver getInstance() { if (mInstance == null) {
mInstance = new YamahaCS2xBank2Driver(); } return mInstance; }
|
void |
setPatchName(Patch ip,
int patchNum,
String name)
Sets the name of a performance in this bank
|
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Store the bankPatch in the synth
|
deletePatch, 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 YamahaCS2xBank2Driver()
public void requestPatchDump(int bankNum,
int patchNum)
requestPatchDump in interface IDriverrequestPatchDump in class AbstractDriverIDriver.requestPatchDump(int, int),
SysexHandlerpublic String getPatchName(Patch ip)
AbstractBankDrivergetPatchName in interface IDrivergetPatchName in class AbstractBankDriverPatch.getName()public int getPatchStart(int patchNum)
public Patch getPatch(Patch bank, int patchNum)
Patch#get(int)public void putPatch(Patch bank, Patch p, int patchNum)
Patch#put(IPatch, int)public String getPatchName(Patch ip, int patchNum)
ip - bank sysexpatchNum - number of the patch in the bankPatch#getName(int)public void setPatchName(Patch ip, int patchNum, String name)
ip - bank patchpatchNum - patch, in the bank, to give new namename - getPatchFactory().createNewPatchName valuePatch#setName(int, String)public void calculateChecksum(Patch p)
calculateChecksum in interface IDrivercalculateChecksum in class AbstractDriverp - a Patch valuepublic void storePatch(Patch p, int bankNum, int patchNum)
storePatch in interface IDriverstorePatch in class AbstractBankDriverbankNum - the bank to store this bank in.Patch.send(int, int)public BankPatch createNewPatch()
createNewPatch in class AbstractBankDriverIDriver.createPatch(),
AbstractDriver.createPatch()public boolean canHoldPatch(Patch p)
canHoldPatch in interface IBankDrivercanHoldPatch in class AbstractBankDriverPatch#put(Patch, int),
AbstractDriver.supportsPatch(java.lang.String, byte[])Copyright © 2014. All Rights Reserved.