public class NovationXioSynthBankDriver extends AbstractBankDriver
singleSize, singleSysexID
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize
Constructor and Description |
---|
NovationXioSynthBankDriver(NovationXioSynthSingleDriver singleDriver) |
Modifier and Type | Method and Description |
---|---|
void |
calculateChecksum(Patch p)
Calculate check sum of a
Patch . |
void |
copySelectedPatch() |
BankPatch |
createNewPatch()
Create a new Patch.
|
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 p,
int patchNum)
Get the name of the patch at the given number
patchNum . |
int |
getPatchStart(int patchNum) |
void |
putPatch(Patch bank,
Patch p,
int patchNum)
Puts a patch into the bank, converting it as needed.
|
void |
setPatchName(Patch p,
int patchNum,
String name)
Set the name of the patch at the given number
patchNum . |
protected void |
setPatchNum(int patchNum)
Send Program Change MIDI message.
|
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, getPatchName, getSingleSize, getSingleSysexID, hasEditor, isBankDriver, isConverter, isSingleDriver, setPatchName, setSingleSize, setSingleSysexID, storePatch
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, requestPatchDump, send, send, send, send, sendPatch, sendPatchWorker, setBankNum, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, 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, requestPatchDump, send, sendPatch, setBankNumbers, setChecksumEnd, setChecksumOffset, setChecksumStart, setDevice, setDeviceIDoffset, setPatchNameSize, setPatchNameStart, setPatchNumbers, setPatchSize, setSysexID, setSysexRequestDump, setTrimSize, toString, trimSysex
public NovationXioSynthBankDriver(NovationXioSynthSingleDriver singleDriver)
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 int getPatchStart(int patchNum)
public void copySelectedPatch()
public String getPatchName(Patch p, int patchNum)
IBankDriver
patchNum
.Patch#getName(int)
protected void setPatchNum(int patchNum)
AbstractDriver
setPatchNum
in class AbstractDriver
IDriver.storePatch(Patch, int, int)
public void setPatchName(Patch p, int patchNum, String name)
IBankDriver
patchNum
.Patch#setName(int, String)
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 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 void deletePatch(Patch single, int patchNum)
AbstractBankDriver
deletePatch
in interface IBankDriver
deletePatch
in class AbstractBankDriver
Patch#delete(int)
public BankPatch createNewPatch()
AbstractBankDriver
createNewPatch
in class AbstractBankDriver
IDriver.createPatch()
,
AbstractDriver.createPatch()
Copyright © 2014. All Rights Reserved.