com.softsynth.jmsl
Class MessagePrinter

java.lang.Object
  extended by 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
 

Constructor Detail

MessagePrinter

public MessagePrinter(java.lang.String msg)
construct a message printer with specified message

Method Detail

play

public double play(double playTime,
                   Composable thing)
Print the message and return playtime

Specified by:
play in interface Playable
Returns:
stopTime