public class NovationXioSynthSingleDriver extends AbstractPatchDriver
bankNumbers, checksumEnd, checksumOffset, checksumStart, deviceIDoffset, log, numSysexMsgs, patchNameSize, patchNameStart, patchNumbers, patchSize, sysexID, sysexRequestDump, trimSize
Constructor and Description |
---|
NovationXioSynthSingleDriver() |
Modifier and Type | Method and Description |
---|---|
void |
calculateChecksum(Patch p)
Calculate check sum of a
Patch . |
Patch |
createNewPatch()
Create a new Patch.
|
JSLFrame |
editPatch(Patch p)
Override this if your driver implement Patch Editor.
|
String |
getPatchName(Patch p,
int patchNum) |
void |
setPatchName(Patch p,
String name)
Set the name of the patch in the sysex.
|
protected void |
setPatchNum(int patchNum)
Send Program Change MIDI message.
|
void |
storePatch(Patch p,
int bankNum,
int patchNum)
Sends a patch to a set location on a synth.
|
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.
|
getFullPatchName, getPatchName, getPatchNumbersForStore, hasEditor, isBankDriver, isConverter, isSingleDriver
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 void setPatchName(Patch p, String name)
AbstractPatchDriver
setPatchName
in interface IDriver
setPatchName
in class AbstractPatchDriver
Patch.setName(String)
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 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
valueprotected void setPatchNum(int patchNum)
AbstractDriver
setPatchNum
in class AbstractDriver
IDriver.storePatch(Patch, int, int)
public void storePatch(Patch p, int bankNum, int patchNum)
AbstractPatchDriver
Override this if required.
storePatch
in interface IDriver
storePatch
in class AbstractPatchDriver
Patch.send(int, int)
public Patch createNewPatch()
AbstractDriver
createNewPatch
in class AbstractDriver
IDriver.createPatch()
,
AbstractDriver.createPatch()
public JSLFrame editPatch(Patch p)
AbstractPatchDriver
editPatch
in interface IDriver
editPatch
in class AbstractPatchDriver
Patch.edit()
Copyright © 2014. All Rights Reserved.