Class SimplePrintingInterpreter

java.lang.Object
com.softsynth.jmsl.Interpreter
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

    Constructors
    Constructor Description
    SimplePrintingInterpreter()  
  • Method Summary

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

    • SimplePrintingInterpreter

      public SimplePrintingInterpreter()
  • Method Details

    • 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