com.softsynth.jmsl.util
Class SimplePrintingInterpreter

java.lang.Object
  extended by com.softsynth.jmsl.Interpreter
      extended by com.softsynth.jmsl.util.SimplePrintingInterpreter

public class SimplePrintingInterpreter
extends Interpreter

An Interpreter that simply prints the time and the MusicShape data it is being handed.

Author:
Phil Burk and Nick Didkovsky (C) 1997 Phil Burk and Nick Didkovsky, All Rights Reserved JMSL is based upon HMSL (C) Phil Burk, Larry Polansky and David Rosenboom.

Constructor Summary
SimplePrintingInterpreter()
           
 
Method Summary
 double interpret(double playTime, double timeStretch, double[] dar, Instrument ins)
          Override interpret() to provide your own Interpreter with custom functionality.
 
Methods inherited from class com.softsynth.jmsl.Interpreter
getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePrintingInterpreter

public SimplePrintingInterpreter()
Method Detail

interpret

public double interpret(double playTime,
                        double timeStretch,
                        double[] dar,
                        Instrument ins)
Override interpret() to provide your own Interpreter with custom functionality.
Prints playTime and the double[] it is handed. Interprets dimension 0 of double[] as duration.

Overrides:
interpret in class Interpreter