public class WaldorfMW2BankDriver extends AbstractBankDriver
singleSize, singleSysexID
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize
Constructor and Description |
---|
WaldorfMW2BankDriver() |
Modifier and Type | Method and Description |
---|---|
void |
calculateChecksum(Patch p)
Calculate check sum of a complete bank.
|
protected BankPatch |
createNewPatch()
Creates a new bank (128 user sounds)
|
Patch |
getPatch(Patch bank,
int patchNum)
Gets a patch from the bank, converting it as needed.
|
protected Patch |
getPatch(Patch bank,
int bankNum,
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
|
protected int |
getPatchStart(int patchNum)
Get the index where the patch starts in the banks SysEx data.
|
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.
|
void |
sendPatch(Patch p)
Sends a patch to the synth's edit buffer.
|
protected void |
setPatchName(byte[] tempSysex,
int patchNum,
String name)
Set the name of the patch at the given number
patchNum . |
void |
setPatchName(Patch p,
int patchNum,
String name)
Set the name of the patch at the given number
patchNum . |
void |
storePatch(Patch bank,
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, 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, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysex
public void calculateChecksum(Patch p)
calculateChecksum
in interface IDriver
calculateChecksum
in class AbstractDriver
p
- a Patch
valueprotected int getPatchStart(int patchNum)
public String getPatchName(Patch p, int patchNum)
Patch#getName(int)
public void setPatchName(Patch p, int patchNum, String name)
patchNum
.Patch#setName(int, String)
protected void setPatchName(byte[] tempSysex, int patchNum, String name)
patchNum
.public void putPatch(Patch bank, Patch p, int patchNum)
Patch#put(IPatch, int)
public void sendPatch(Patch p)
Override this in the subclass if parameters or warnings need to be sent to the user (aka if the particular synth does not have a edit buffer or it is not MIDI accessable).
sendPatch
in interface IDriver
sendPatch
in class AbstractDriver
Patch.send()
,
ISinglePatch#send()
public void storePatch(Patch bank, int bankNum, int patchNum)
storePatch
in interface IDriver
storePatch
in class AbstractBankDriver
Patch.send(int, int)
protected Patch getPatch(Patch bank, int bankNum, int patchNum)
public Patch getPatch(Patch bank, int patchNum)
Patch#get(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
protected BankPatch createNewPatch()
createNewPatch
in class AbstractBankDriver
IDriver.createPatch()
,
AbstractDriver.createPatch()
Copyright © 2014. All Rights Reserved.