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
Method Summary |
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 |
Interpreter
public Interpreter()
getName
public java.lang.String getName()
interpret
public double interpret(double playTime,
double timeStretch,
double[] dar,
Instrument ins)
- 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);
}