com.softsynth.jmsl
Class MessagePrinter
java.lang.Object
com.softsynth.jmsl.MessagePrinter
- All Implemented Interfaces:
- Playable, java.io.Serializable
public class MessagePrinter
- extends java.lang.Object
- implements Playable, java.io.Serializable
A Playable that prints a message of choice.
Useful for announcing start/repeat/stop activity of MusicJobs, debugging, etc
- Author:
- Phil Burk and Nick Didkovsky
- See Also:
- Serialized Form
Constructor Summary |
MessagePrinter(java.lang.String msg)
construct a message printer with specified message |
Method Summary |
double |
play(double playTime,
Composable thing)
Print the message and return playtime |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessagePrinter
public MessagePrinter(java.lang.String msg)
- construct a message printer with specified message
play
public double play(double playTime,
Composable thing)
- Print the message and return playtime
- Specified by:
play
in interface Playable
- Returns:
- stopTime