public class QSParamModel extends Object implements IParamModel
| Constructor and Description |
|---|
QSParamModel(Patch patch,
int msBit,
int bitSize,
int offset)
Create a new param model, given the starting bit and the size (in bits)
of the parameter.
|
QSParamModel(Patch patch,
int msByte,
int msBit,
int lsByte,
int lsBit,
boolean signed)
Create a new param model, given the starting and ending bytes and bits of
the parameter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get()
Return an integer representing the current value of the parameter from
the corresponding bits in the actual patch
|
void |
set(int value)
Given an integer representing a new value for the parameter, set the
corresponding bits in the actual patch
|
public QSParamModel(Patch patch, int msByte, int msBit, int lsByte, int lsBit, boolean signed)
patch - the underlying patch to modifymsByte - the starting (most significant) bytemsBit - the starting (most significant) bit (0-7)lsByte - the ending (least significant) bytelsBit - the ending (least significant) bit (0-7)signed - true if the value is signed, false otherwisepublic QSParamModel(Patch patch, int msBit, int bitSize, int offset)
patch - the underlying patch to modifymsBit - the starting (most significant) bitbitSize - the number of bits in the parameteroffset - the value to add/subtract as given in sysex specpublic void set(int value)
set in interface IParamModelvalue - the new value for the parameterpublic int get()
get in interface IParamModelCopyright © 2014. All Rights Reserved.