public static class EnvelopeWidget.Node extends Object
Each Node
is one of the movable squares on the envelope.
Some of these nodes are stationary, some contain two parameters on the
synth and can be moved vertically and horizontally, and others contain
only one parameter and can therefore be moved in only one direction.
EnvelopeWidget
Modifier and Type | Field and Description |
---|---|
static int |
SAME
When this value is used for
miny , Y axis value remains
at whatever the Y axis value of the previous node was. |
Constructor and Description |
---|
Node(int minx,
int maxx,
IParamModel pmodelx,
int miny,
int maxy,
IParamModel pmodely,
int basey,
boolean invertx,
ISender senderx,
ISender sendery,
String namex,
String namey)
Construcutor for a
Node . |
public static final int SAME
miny
, Y axis value remains
at whatever the Y axis value of the previous node was.public Node(int minx, int maxx, IParamModel pmodelx, int miny, int maxy, IParamModel pmodely, int basey, boolean invertx, ISender senderx, ISender sendery, String namex, String namey)
Node
.
Using null
s for the Models and Senders and setting min
to max means that the node is stationary on that axis and has no
related parameter.
minx
- The minimum value permitted by the synth parameter which
rides the X axis of the node.maxx
- The maximum value permitted by the synth parameter which
rides the X axis of the node.pmodelx
- The Parameter Model which provides reading/writing
abilities to the sysex data representing the parameter.miny
- The minimum value permitted by the synth parameter which
rides the Y axis of the node. Using Node.SAME
for miny
means that the height remains at
whatever the previous node was at.maxy
- The maximum value permitted by the synth parameter which
rides the Y axis of the node. When Node.SAME
is used for miny
, this parameter is ignored.pmodely
- The Parameter Model which provides reading/writing
abilities to the sysex data representing the parameter.basey
- The value will be added to all Y values. This doesn't
change the function of the EnvelopeWidget, but makes it
look nicer and possibly be more intuitive to use.
Sometimes you don't want zero on a Y-axis-riding-parameter
to be all the way down at the bottom. This gives it a
little bit of rise.invertx
- Sometimes on an X-axis-riding attribute 0 is the fastest,
other times it is the slowest. This allows you to choose.senderx
- The ISender which send system exclusive messages to the
synths when the Node is moved on the X axis direction.sendery
- The ISender which send system exclusive messages to the
synths when the Node is moved on the Y axis direction.namex
- The names of the X-axis parameters riding each access.namey
- The names of the Y-axis parameters riding each access.EnvelopeWidget
Copyright © 2014. All Rights Reserved.