com.e1.mxdublin.evlist
Class EvChord
java.lang.Object
com.e1.mxdublin.core.SeqEvent
com.e1.mxdublin.evlist.EvAbstractItem
com.e1.mxdublin.evlist.EvSender
com.e1.mxdublin.evlist.EvNote
com.e1.mxdublin.evlist.EvChord
- All Implemented Interfaces:
- Cloneable, Comparable<EvAbstractItem>, Runnable
public class EvChord
- extends EvNote
Event that sends a chord (in midi format) to the specified receiver.
Event arguments
<chord root>:<chord name>:[chord inversion degree] <chord duration> [note velocity]
Properties
sender : the sender name to use to send the event
chl : the midi channel of the note event
Example usage:
evlist.add(1, new EvChord("D#2:M7 1 @sender myvst"));
evlist.add(2, new EvChord("E-2:m:-1 0.5 @sender myothervst"));
|
Field Summary |
Atom[] |
chord
|
|
Method Summary |
String |
getValue()
Returns event representation in string format. |
boolean |
isLike(EvAbstractItem item)
Returns true if the content of this event is the same than
event item 'comp'. |
void |
play()
Sends the atom to currently assigned sender. |
void |
setValue(String v)
Sets event definition using a string. |
void |
stop()
Tells this event to stop executing. |
| Methods inherited from class com.e1.mxdublin.evlist.EvAbstractItem |
bang, cancel, compareTo, equals, fromXML, getGroupProperties, getTm, isSameGroupProperties, loadElement, repr, run, setProperties, setTm, setTm, toString, toXML |
chord
public Atom[] chord
EvChord
public EvChord(String args)
EvChord
public EvChord(String args,
GroupProperties gp)
setValue
public void setValue(String v)
- Description copied from class:
EvAbstractItem
- Sets event definition using a string.
- Overrides:
setValue in class EvNote
- Parameters:
v - String value
getValue
public String getValue()
- Description copied from class:
EvAbstractItem
- Returns event representation in string format.
- Overrides:
getValue in class EvNote
- Returns:
- the event represnetation in string format
play
public void play()
- Description copied from class:
EvSender
- Sends the atom to currently assigned sender.
- Overrides:
play in class EvSender
stop
public void stop()
- Description copied from class:
EvAbstractItem
- Tells this event to stop executing. This method will be called
when the len_tm is reached since the bang() was called.
- Overrides:
stop in class EvNote
isLike
public boolean isLike(EvAbstractItem item)
- Description copied from class:
EvAbstractItem
- Returns true if the content of this event is the same than
event item 'comp'. Unlike equals(Object o), the event time
is not compared.
- Overrides:
isLike in class EvNote
- Parameters:
item - the event item to compare
- Returns:
- returns true is the content is the same