com.softsynth.jmsl
Class NoteOnOffInterpreter

java.lang.Object
  extended by com.softsynth.jmsl.Interpreter
      extended by com.softsynth.jmsl.NoteOnOffInterpreter

public class NoteOnOffInterpreter
extends Interpreter

NoteOnOffInterpreter.java
Interprets shape data as individual MIDI style notes note ONs and OFFs. Note OFFs are distinguished from note ONs by having velocity equal zero. This is useful for playing MIDI data recorded using the MidiParser.

Author:
Phil Burk and Nick Didkovsky

Constructor Summary
NoteOnOffInterpreter()
           
 
Method Summary
 double interpret(double playTime, double timeStretch, double[] dar, Instrument ins)
          Midi note on.
 
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

NoteOnOffInterpreter

public NoteOnOffInterpreter()
Method Detail

interpret

public double interpret(double playTime,
                        double timeStretch,
                        double[] dar,
                        Instrument ins)
Midi note on.
Pulls Midi style data from shape data and plays it on an Instrument
Assumes shape dimensions are:
dim 0 is duration
dim 1 is note
dim 2 is velocity, zero for note OFFs

Overrides:
interpret in class Interpreter