Class NoteOnOffInterpreter

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

    Constructors
    Constructor Description
    NoteOnOffInterpreter()  
  • Method Summary

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

    • NoteOnOffInterpreter

      public NoteOnOffInterpreter()
  • Method Details

    • 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