Package com.softsynth.jmsl
Class Interpreter
java.lang.Object
com.softsynth.jmsl.Interpreter
- Direct Known Subclasses:
NoteInterpreter
,NoteOnOffInterpreter
,SimplePrintingInterpreter
,SustainingInterpreter
public class Interpreter
extends java.lang.Object
Custom interpretation of double[], called by Instrument in play() method.
- Author:
- Phil Burk and Nick Didkovsky
-
Constructor Summary
Constructors Constructor Description Interpreter()
-
Method Summary
Modifier and Type Method Description java.lang.String
getName()
double
interpret(double playTime, double timeStretch, double[] dar, Instrument ins)
Override this method to build your own custom Interpreter.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Interpreter
public Interpreter()
-
-
Method Details
-
getName
public java.lang.String getName() -
interpret
Override this method to build your own custom Interpreter. Source of default:
public double interpret(double playTime, double timeStretch, double dar[], Instrument ins) { JMSL.out.print(getName() + " called by " + ins + " with "); JMSL.printDoubleArray(dar); return playTime + (dar[0]*timeStretch); }
-