public class RolandJD800BankDriver extends AbstractBankDriver
singleSize, singleSysexID
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize
Constructor and Description |
---|
RolandJD800BankDriver() |
Modifier and Type | Method and Description |
---|---|
BankPatch |
createNewPatch()
Creates a new bank from initial patch in JD800_InitialPatch.syx
|
Patch |
createPatch(byte[] sysex)
Returns one concatenated message created from 96 sysex messages.
|
Patch |
getPatch(Patch bank,
int patchNum)
Returns a single patch from
bank at the given number
patchNum . |
String |
getPatchName(Patch p,
int patchNum)
Gets the name of the patch at the given number.
|
int |
getPatchStart(int patchNum)
Gets the offset where the patch starts in the bank.
|
void |
putPatch(Patch bank,
Patch p,
int patchNum)
Gets a single patch at the given number
patchNum from a
bank. |
void |
requestPatchDump(int bankNum,
int patchNum)
Request the synth to send a patch dump.
|
void |
setPatchName(Patch p,
int patchNum,
String name)
Sets the name of the patch at the given number
patchNum . |
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Stores the bank to JD800.
|
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, deletePatch, editPatch, getNumColumns, getNumPatches, getPatchName, getSingleSize, getSingleSysexID, hasEditor, isBankDriver, isConverter, isSingleDriver, setPatchName, setSingleSize, setSingleSysexID
calculateChecksum, calculateChecksum, calculateChecksum, canCreatePatch, 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, toString, trimSysex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
calculateChecksum, calculateChecksum, canCreatePatch, 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, toString, trimSysex
public int getPatchStart(int patchNum)
patchNum
- number of patch requestedpublic String getPatchName(Patch p, int patchNum)
Patch#getName(int)
public void setPatchName(Patch p, int patchNum, String name)
patchNum
.Patch#setName(int, String)
public void putPatch(Patch bank, Patch p, int patchNum)
patchNum
from a
bank.Patch#put(IPatch, int)
public boolean supportsPatch(String patchString, byte[] sysex)
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.supportsPatch(String, byte[])
public Patch createPatch(byte[] sysex)
createPatch
in interface IDriver
createPatch
in class AbstractDriver
sysex
- a byte array of sysex data.IPatch
object.IDriver.supportsPatch(String, byte[])
,
DriverUtil#createPatch(byte[])
public Patch getPatch(Patch bank, int patchNum)
bank
at the given number
patchNum
.Patch#get(int)
public BankPatch createNewPatch()
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
public void storePatch(Patch p, int bankNum, int patchNum)
storePatch
in interface IDriver
storePatch
in class AbstractBankDriver
Patch.send(int, int)
Copyright © 2014. All Rights Reserved.