public class VAmp2SingleDriver extends AbstractPatchDriver
| Modifier and Type | Field and Description |
|---|---|
protected static SysexHandler |
SYS_REQ
VAmp2 Dump Request
|
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize| Modifier | Constructor and Description |
|---|---|
|
VAmp2SingleDriver()
Constructs a VAmp2Driver.
|
protected |
VAmp2SingleDriver(String patchType)
Constructs a VAmp2Driver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateChecksum(byte[] sysex,
int start,
int end,
int offset)
Caluculate check sum of a byte array
sysex. |
void |
calculateChecksum(Patch p)
Calculate check sum of a
Patch. |
protected Patch |
createNewPatch()
Creates a getPatchFactory().createNewPatch with default values.
|
JSLFrame |
editPatch(Patch p)
Opens an edit window on the specified patch.
|
void |
playPatch(Patch p)
Presents a dialog instructing the user to play his instrument.
|
void |
requestPatchDump(int bankNum,
int patchNum)
Requests a dump of the VAmp2 patch.
|
void |
sendPatch(Patch p)
Sends a single program patch to the edit buffer.
|
protected void |
setBankNum(int bankNum)
Send Control Change (Bank Select) MIDI message.
|
protected void |
setPatchNum(int patchNum)
Send Program Change MIDI message.
|
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Sends a a single program patch to a set patch location in the device.
|
getFullPatchName, getPatchName, getPatchNumbersForStore, hasEditor, isBankDriver, isConverter, isSingleDriver, setPatchNamecalculateChecksum, 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, send, send, send, send, sendPatchWorker, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanCreatePatch, createPatch, createPatch, createPatches, getAuthors, getBankNumbers, getChannel, getChecksumEnd, getChecksumOffset, getChecksumStart, getDevice, getDeviceID, getDeviceIDoffset, getPatchNameSize, getPatchNameStart, getPatchNumbers, getPatchSize, getPatchType, getSysexID, getSysexRequestDump, getTrimSize, send, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, supportsPatch, toString, trimSysexprotected static final SysexHandler SYS_REQ
public VAmp2SingleDriver()
protected VAmp2SingleDriver(String patchType)
protected void setPatchNum(int patchNum)
AbstractDriversetPatchNum in class AbstractDriverIDriver.storePatch(Patch, int, int)protected void setBankNum(int bankNum)
AbstractDriversetBankNum in class AbstractDriverIDriver.storePatch(Patch, int, int)public void calculateChecksum(Patch p)
AbstractDriverPatch.
Need to be overridden if a patch is consist from multiple SysEX messages.
calculateChecksum in interface IDrivercalculateChecksum in class AbstractDriverp - a Patch valuepublic void calculateChecksum(byte[] sysex,
int start,
int end,
int offset)
IDriversysex.
The checksum calculation method of this method is used by Roland, YAMAHA, etc.
Compatibility Note: This method became 'static' method.
calculateChecksum in interface IDrivercalculateChecksum in class AbstractDriversysex - a byte arraystart - start offsetend - end offsetoffset - offset of the checksum dataAbstractDriver.calculateChecksum(Patch)public void sendPatch(Patch p)
sendPatch in interface IDriversendPatch in class AbstractDriverp - The patch to be sent.Patch.send(),
ISinglePatch#send()public void storePatch(Patch p, int bankNum, int patchNum)
storePatch in interface IDriverstorePatch in class AbstractPatchDriverp - The patch to be send.bankNum - The user bank number in the range 0 to 124.patchNum - The patch number within the bank, in the range 0 to 4.Patch.send(int, int)public void playPatch(Patch p)
playPatch in interface IDriverplayPatch in class AbstractDriverp - The patch to be "played".Patch.play(),
ISinglePatch#play()public void requestPatchDump(int bankNum,
int patchNum)
requestPatchDump in interface IDriverrequestPatchDump in class AbstractDriverbankNum - The number of the bank containing the requested patch.patchNum - The number of the requested patch.IDriver.requestPatchDump(int, int),
SysexHandlerprotected Patch createNewPatch()
createNewPatch in class AbstractDriverIDriver.createPatch(),
AbstractDriver.createPatch()public JSLFrame editPatch(Patch p)
editPatch in interface IDrivereditPatch in class AbstractPatchDriverp - The patch to be edited.Patch.edit()Copyright © 2014. All Rights Reserved.