public class ControlChange
extends java.lang.Object
MidiBus
,
ObjectMidiListener
,
Note
Modifier and Type | Field and Description |
---|---|
java.lang.String |
bus_name |
int |
channel |
int |
number |
long |
timestamp |
int |
value |
Constructor and Description |
---|
ControlChange(int channel,
int number,
int value)
Constructs a ControlChange object
|
ControlChange(int channel,
int number,
int value,
long timestamp,
java.lang.String bus_name)
Constructs a ControlChange object
|
Modifier and Type | Method and Description |
---|---|
int |
channel()
Return the channel of the ControlChange
|
boolean |
equals(java.lang.Object obj)
Check if all fields are equal.
|
int |
number()
Return the number of the ControlChange
|
void |
setChannel(int channel)
Set channel of the ControlChange
|
void |
setNumber(int number)
Set number of the ControlChange
|
void |
setValue(int value)
Set value of the ControlChange
|
java.lang.String |
toString()
Returns a string in the format [c:channel, n:number, v:value, ts:timestamp, b:bus_name] e.g "[c:0, n:65, v:123, ts:1234, b:bus123]".
|
int |
value()
Return the value of the ControlChange
|
public int channel
public int number
public int value
public long timestamp
public java.lang.String bus_name
public ControlChange(int channel, int number, int value)
channel
- the channel of the ControlChangenumber
- the number of the ControlChangevalue
- the value of the ControlChangepublic ControlChange(int channel, int number, int value, long timestamp, java.lang.String bus_name)
channel
- the channel of the ControlChangenumber
- the number of the ControlChangevalue
- the value of the ControlChangetimestamp
- the timestamp of the ControlChangebus_name
- the name of MidiBus associated with the ControlChangepublic void setChannel(int channel)
channel
- the channel to setpublic int channel()
public void setNumber(int number)
number
- the number to setpublic int number()
public void setValue(int value)
value
- the value to setpublic int value()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object