public class YamahaFS1RBankDriver extends AbstractBankDriver
singleSize, singleSysexID
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize
Constructor and Description |
---|
YamahaFS1RBankDriver()
Constructor for the YamahaFS1RBankDriver object
|
Modifier and Type | Method and Description |
---|---|
void |
calculateChecksum(Patch p)
Calculate check sum of a
Patch . |
boolean |
canHoldPatch(Patch p)
FS1R bank holds 2 types of patch, performance and voice.
|
BankPatch |
createNewPatch()
Bank factory
|
JSLFrame |
editPatch(Patch p)
Creates an editor window to edit this bank
|
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 patchStart attribute of the YamahaFS1RBankDriver object
|
void |
putPatch(Patch bank,
Patch p,
int patchNum)
Puts a patch into the bank, converting it as needed
|
void |
setPatchName(Patch ip,
int patchNum,
String name)
Sets the patchName attribute of the YamahaFS1RBankDriver object
|
void |
setPatchName(Patch p,
String name)
Set name of the bank.
|
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Store the bank to a given bank on the synth.
|
deletePatch, getNumColumns, getNumPatches, getSingleSize, getSingleSysexID, hasEditor, isBankDriver, isConverter, isSingleDriver, 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, requestPatchDump, 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, requestPatchDump, send, sendPatch, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysex
public YamahaFS1RBankDriver()
public void setPatchName(Patch p, String name)
AbstractBankDriver
setPatchName
in interface IDriver
setPatchName
in class AbstractBankDriver
Patch.setName(String)
public String getPatchName(Patch ip)
AbstractBankDriver
getPatchName
in interface IDriver
getPatchName
in class AbstractBankDriver
Patch.getName()
public int getPatchStart(int patchNum)
patchNum
- Description of the Parameterpublic 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
- The getPatchFactory().createNewPatchName valuepatchNum
- The getPatchFactory().createNewPatchName valuename
- The getPatchFactory().createNewPatchName valuePatch#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 storePatch(Patch p, int bankNum, int patchNum)
AbstractBankDriver
storePatch
in interface IDriver
storePatch
in class AbstractBankDriver
Patch.send(int, int)
public JSLFrame editPatch(Patch p)
editPatch
in interface IDriver
editPatch
in class AbstractBankDriver
Patch.edit()
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.