|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MjdjService
MjdjService is the gateway into the Mjdj system: all access to Mjdj is given through a provided MjdjService instance.
| Method Summary | |
|---|---|
void |
debugLog(java.lang.String text)
Display to the Mjdj logging pane if debugging is on |
void |
debugLog(java.lang.String string,
java.lang.Exception exception)
Display to the Mjdj logging pane if debugging is on |
float |
getAfterBeat()
|
boolean |
isDebug()
|
boolean |
isMorphActive(java.lang.String name)
|
void |
log(java.lang.String text)
Display to the Mjdj logging pane. |
void |
log(java.lang.String string,
java.lang.Exception exception)
Display to the Mjdj logging pane. |
void |
morph(MessageWrapper message,
java.lang.String from)
Send messages to the Mjdj morphs. |
void |
morph(MessageWrapper message,
java.lang.String from,
Morph afterMorph)
|
boolean |
schedule(MidiTimerTask task,
int beatsBeforeLaunch)
|
boolean |
schedule(MidiTimerTask task,
int beatsBeforeLaunch,
float delayAfterBeat)
Schedules the task to fire at beatsBeforeLaunch quarter-notes plus delayAfterBeat in proportion of one beat. |
boolean |
scheduleInMs(MidiTimerTask task,
int delay)
|
void |
send(byte[] bytes)
Send to all output MIDI devices |
void |
send(byte[] bytes,
java.util.List<java.lang.String> sendToNames)
|
void |
send(MessageWrapper message)
Sends to all outbound MIDI devices |
void |
send(MessageWrapper message,
java.util.List<java.lang.String> sendToNames)
|
void |
send(MessageWrapper message,
java.lang.String sendToName)
|
void |
sendKeystrokes(java.lang.String keystrokes)
|
void |
setMorphActive(java.lang.String name,
boolean status)
Shuts the checkbox of a Morph implementer on or off |
| Method Detail |
|---|
void log(java.lang.String text)
void log(java.lang.String string,
java.lang.Exception exception)
void debugLog(java.lang.String text)
void debugLog(java.lang.String string,
java.lang.Exception exception)
void morph(MessageWrapper message,
java.lang.String from)
message - from - The name of the MIDI Device that received the message. Morphs receive this name in their process method, which may be used for filtering.
void morph(MessageWrapper message,
java.lang.String from,
Morph afterMorph)
message - from - can be null, name of the device the message is (pretending to be) fromafterMorph - can be null. It's a String that matches the getName() of the afterMorph. Only morphs lower on the list than the afterMorph will get the messagevoid send(MessageWrapper message)
void send(MessageWrapper message,
java.util.List<java.lang.String> sendToNames)
message - sendToNames - List of names of outbound MIDI devices which will receive the message.
void send(MessageWrapper message,
java.lang.String sendToName)
message - sendToName - On the device matching this name is sent the message
void send(byte[] bytes,
java.util.List<java.lang.String> sendToNames)
throws javax.sound.midi.InvalidMidiDataException
bytes - Raw midi messagesendToNames - List of names of outbound MIDI devices which will receive the message.
javax.sound.midi.InvalidMidiDataException
void send(byte[] bytes)
throws javax.sound.midi.InvalidMidiDataException
bytes -
javax.sound.midi.InvalidMidiDataException
void setMorphActive(java.lang.String name,
boolean status)
name - Name of other Morph as returned from getName()status - boolean isMorphActive(java.lang.String name)
name - Name of other Morph as returned from getName()
void sendKeystrokes(java.lang.String keystrokes)
float getAfterBeat()
boolean schedule(MidiTimerTask task,
int beatsBeforeLaunch)
task - beatsBeforeLaunch - - schedules from RIGHT NOW plus beatsBeforeLaunch beats. Beats refer to quarter-notes, generally. "Right now" means how far after the quarter-note we are now
from the last quarter note.
boolean schedule(MidiTimerTask task,
int beatsBeforeLaunch,
float delayAfterBeat)
task - beatsBeforeLaunch - delayAfterBeat - - in proportion of a beat
boolean scheduleInMs(MidiTimerTask task,
int delay)
task - delay - in milliseconds
boolean isDebug()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||