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

    Constructors
    Constructor Description
    MessagePrinter​(java.lang.String msg)
    construct a message printer with specified message
  • Method Summary

    Modifier and Type Method Description
    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 Details

    • MessagePrinter

      public MessagePrinter​(java.lang.String msg)
      construct a message printer with specified message
  • Method Details

    • play

      public double play​(double playTime, Composable thing)
      Print the message and return playtime
      Specified by:
      play in interface Playable
      Returns:
      stopTime