public class MultiMessagePatchHandlerStrategy extends Object implements PatchHandlerStrategy
Constructor and Description |
---|
MultiMessagePatchHandlerStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
copyPatchData(int patchNum,
byte[] bankData,
byte[] patchData,
boolean fromBank) |
int |
getHeaderSize() |
int |
getMaxBytesPerMessage() |
Patch |
getPatch(Patch bank,
int patchNum)
Gets a patch from the bank, converting it as needed.
|
IPatchDriver |
getPatchDriver() |
int |
getSysexFrameSize() |
void |
putPatch(Patch bank,
Patch single,
int patchNum)
Puts a patch into the bank, converting it as needed.
|
void |
setHeaderSize(int headerSize) |
void |
setMaxBytesPerMessage(int maxBytesPerMessage) |
void |
setPatchDriver(IPatchDriver patchDriver) |
void |
setSysexFrameSize(int sysexFrameSize) |
public void copyPatchData(int patchNum, byte[] bankData, byte[] patchData, boolean fromBank)
public void putPatch(Patch bank, Patch single, int patchNum)
PatchHandlerStrategy
single
is already checked by canHoldPatch
, although it was not.putPatch
in interface PatchHandlerStrategy
Patch#put(Patch, int)
public Patch getPatch(Patch bank, int patchNum)
PatchHandlerStrategy
getPatch
in interface PatchHandlerStrategy
Patch#get(int)
public int getMaxBytesPerMessage()
public void setMaxBytesPerMessage(int maxBytesPerMessage)
public int getSysexFrameSize()
public void setSysexFrameSize(int sysexFrameSize)
public int getHeaderSize()
public void setHeaderSize(int headerSize)
public IPatchDriver getPatchDriver()
public void setPatchDriver(IPatchDriver patchDriver)
Copyright © 2014. All Rights Reserved.