public class Patch extends Object implements Cloneable, Transferable, Serializable
There are many kinds of constructors. Driver can use one of the follows (in preferred order).
Patch(byte[], Driver)
Patch(byte[], Device)
Patch(byte[])
Patch(byte[], Driver)
form if possible. The latter two
constructors guesses the proper driver by using the
Driver.supportsPatch
method. It is not efficient.
Use Patch(byte[])
only when you have no idea about either Driver
or Device for which your Patch is. If you know that the patch you are
creating does not correspond to any driver, use
Patch(byte[], (Driver) null)
, since it is much more efficient
than Patch(byte[])
.
AbstractDriver.supportsPatch(java.lang.String, byte[])
,
Serialized FormModifier and Type | Field and Description |
---|---|
byte[] |
sysex
MIDI System Exclusive Message byte array.
|
Constructor and Description |
---|
Patch() |
public String getDate()
public void setDate(String date)
public String getAuthor()
public void setAuthor(String author)
public final String getComment()
public final void setComment(String comment)
public Device getDevice()
public IDriver getDriver()
public void setDriver(IDriver driver)
public void setDriver()
public boolean hasNullDriver()
public String getPatchHeader()
public String getName()
public void setName(String s)
public boolean hasEditor()
public JSLFrame edit()
public void send(int bankNum, int patchNum)
public SysexMessage[] getMessages()
public byte[] export()
public byte[] getByteArray()
public int getSize()
public String getType()
public int getNameSize()
public String lookupManufacturer()
public boolean isSinglePatch()
public boolean isBankPatch()
public void useSysexFromPatch(Patch ip)
public final void play()
public final void send()
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException
getTransferData
in interface Transferable
UnsupportedFlavorException
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public final void calculateChecksum()
public String toString()
protected DriverIdentifier getDriverIdentifier()
public MidiService getMidiService()
@Inject public void setMidiService(MidiService midiService)
@Inject public void setDriverIdentifier(DriverIdentifier driverIdentifier)
public DeviceManager getDeviceManager()
@Inject public void setDeviceManager(DeviceManager deviceManager)
Copyright © 2014. All Rights Reserved.