public class YamahaCS2xBank2Driver extends AbstractBankDriver
singleSize, singleSysexID
bankNumbers, 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, 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 YamahaCS2xBank2Driver()
public void requestPatchDump(int bankNum, int patchNum)
requestPatchDump
in interface IDriver
requestPatchDump
in class AbstractDriver
IDriver.requestPatchDump(int, int)
,
SysexHandler
public String getPatchName(Patch ip)
AbstractBankDriver
getPatchName
in interface IDriver
getPatchName
in class AbstractBankDriver
Patch.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 IDriver
calculateChecksum
in class AbstractDriver
p
- a Patch
valuepublic void storePatch(Patch p, int bankNum, int patchNum)
storePatch
in interface IDriver
storePatch
in class AbstractBankDriver
bankNum
- the bank to store this bank in.Patch.send(int, int)
public BankPatch createNewPatch()
createNewPatch
in class AbstractBankDriver
IDriver.createPatch()
,
AbstractDriver.createPatch()
public boolean canHoldPatch(Patch p)
canHoldPatch
in interface IBankDriver
canHoldPatch
in class AbstractBankDriver
Patch#put(Patch, int)
,
AbstractDriver.supportsPatch(java.lang.String, byte[])
Copyright © 2014. All Rights Reserved.