public class YamahaSY77VoiceBankDriver extends AbstractBankDriver
singleSize, singleSysexID
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize
Constructor and Description |
---|
YamahaSY77VoiceBankDriver(YamahaSY77VoiceDriver iVoiceD) |
Modifier and Type | Method and Description |
---|---|
BankPatch |
createNewPatch()
Create a new Patch.
|
Patch[] |
createPatches(SysexMessage[] msgs)
Create an array of patches from an array of SysexMessage for the driver.
|
void |
deletePatch(Patch single,
int patchNum)
Delete a patch.
|
Patch |
getPatch(Patch bank,
int patchNum)
Gets a patch from the bank, converting it as needed.
|
String |
getPatchName(Patch bank)
Get name of the bank.
|
String |
getPatchName(Patch bank,
int patchNum)
Get the name of the patch at the given number
patchNum . |
void |
putPatch(Patch bank,
Patch patch,
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 |
setPatchName(Patch bank,
String name)
Set name of the bank.
|
void |
storePatch(Patch bank,
int bankNum,
int patchNum)
Store the bank to a given bank on the synth.
|
boolean |
supportsPatch(String patchString,
byte[] sysex)
Compares the header & size of a Patch to this driver to see if this
driver is the correct one to support the patch.
|
canHoldPatch, editPatch, getNumColumns, getNumPatches, getSingleSize, getSingleSysexID, hasEditor, isBankDriver, isConverter, isSingleDriver, setSingleSize, setSingleSysexID
calculateChecksum, 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, toString, trimSysex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
calculateChecksum, 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, toString, trimSysex
public YamahaSY77VoiceBankDriver(YamahaSY77VoiceDriver iVoiceD)
public BankPatch createNewPatch()
AbstractBankDriver
createNewPatch
in class AbstractBankDriver
IDriver.createPatch()
,
AbstractDriver.createPatch()
public void putPatch(Patch bank, Patch patch, int patchNum)
IBankDriver
single
is already checked by canHoldPatch
, although it was not.Patch#put(IPatch, int)
public void deletePatch(Patch single, int patchNum)
AbstractBankDriver
deletePatch
in interface IBankDriver
deletePatch
in class AbstractBankDriver
Patch#delete(int)
public Patch getPatch(Patch bank, int patchNum)
IBankDriver
Patch#get(int)
public String getPatchName(Patch bank, int patchNum)
IBankDriver
patchNum
.Patch#getName(int)
public void setPatchName(Patch bank, int patchNum, String name)
IBankDriver
patchNum
.Patch#setName(int, String)
public void storePatch(Patch bank, int bankNum, int patchNum)
AbstractBankDriver
storePatch
in interface IDriver
storePatch
in class AbstractBankDriver
Patch.send(int, int)
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 Patch[] createPatches(SysexMessage[] msgs)
IDriver
requestPatchDump(int, int)
.createPatches
in interface IDriver
createPatches
in class AbstractDriver
msgs
- an array of SysexMessage.IPatch
value.IDriver.requestPatchDump(int, int)
,
SysexGetDialog
public boolean supportsPatch(String patchString, byte[] sysex)
AbstractDriver
supportsPatch
in interface IDriver
supportsPatch
in class AbstractDriver
patchString
- the result of p.getPatchHeader()
.sysex
- a byte array of sysex messagetrue
if this driver supports the Patch.AbstractDriver.patchSize
,
AbstractDriver.sysexID
public String getPatchName(Patch bank)
AbstractBankDriver
getPatchName
in interface IDriver
getPatchName
in class AbstractBankDriver
Patch.getName()
public void setPatchName(Patch bank, String name)
AbstractBankDriver
setPatchName
in interface IDriver
setPatchName
in class AbstractBankDriver
Patch.setName(String)
Copyright © 2014. All Rights Reserved.