public class NLPatchBankDriver extends AbstractBankDriver
singleSize, singleSysexID
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize
Constructor and Description |
---|
NLPatchBankDriver() |
Modifier and Type | Method and Description |
---|---|
void |
calculateChecksum(Patch p)
Calculate check sum of a
Patch . |
BankPatch |
createNewPatch()
Create a new Patch.
|
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 . |
void |
putPatch(Patch bank,
Patch p,
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.
|
protected void |
sendPatchWorker(Patch p,
int bankNum) |
void |
setPatchName(Patch p,
int patchNum,
String name)
Set the name of the patch at the given number
patchNum . |
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Store the bank to a given bank on the synth.
|
canHoldPatch, deletePatch, editPatch, getNumColumns, getNumPatches, getPatchName, 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 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 void putPatch(Patch bank, Patch p, int patchNum)
IBankDriver
single
is already checked by canHoldPatch
, although it was not.Patch#put(IPatch, int)
public Patch getPatch(Patch bank, int patchNum)
IBankDriver
Patch#get(int)
public String getPatchName(Patch p, int patchNum)
IBankDriver
patchNum
.Patch#getName(int)
public void setPatchName(Patch p, int patchNum, String name)
IBankDriver
patchNum
.Patch#setName(int, String)
protected void sendPatchWorker(Patch p, int bankNum)
public BankPatch createNewPatch()
AbstractBankDriver
createNewPatch
in class AbstractBankDriver
IDriver.createPatch()
,
AbstractDriver.createPatch()
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
Copyright © 2014. All Rights Reserved.