Package jmsltutorial
Class BackgroundColorInstrument
java.lang.Object
com.softsynth.jmsl.InstrumentAdapter
jmsltutorial.BackgroundColorInstrument
- All Implemented Interfaces:
Instrument,Namable,OutputProvider,Transposable
public class BackgroundColorInstrument extends InstrumentAdapter
A simple Instrument subclass that interprets element [0] as duration and the rest as rgb color values
-
Method Summary
Modifier and Type Method Description doubleplay(double playTime, double timeStretch, double[] dar)Overridden for custom interpretationMethods inherited from class com.softsynth.jmsl.InstrumentAdapter
close, getDimensionNameSpace, getInterpreter, getMixerClassName, getMusicDevice, getName, getNumOutputs, getOutput, getOutput, getTransposition, main, noteOff, noteOn, noteOnFor, off, on, open, setDimensionNameSpace, setInterpreter, setMixerClassName, setMusicDevice, setName, setTransposition, toString, updateMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
play
public double play(double playTime, double timeStretch, double[] dar)Overridden for custom interpretation- Specified by:
playin interfaceInstrument- Overrides:
playin classInstrumentAdapter
-