Package com.softsynth.jmsl
Interface InstrumentPlayable
- All Known Implementing Classes:
Note
public interface InstrumentPlayable
An object that implements InstrumentalPlayable can be add()'ed to a MusicList
This is a way for non-composable Objects to be played.
Objects that are InstrumentalPlayable must implement play(double playTime, Composable parent, Instrument ins)
which returns the updated playTime ( ie. playTime + duration * parent.getTimeStretch() )
- Author:
- Nick Didkovsky, (c) Nick Didkovsky and Phil Burk, All Rights Reserved JMSL is based upon HMSL (C) Phil Burk, Larry Polansky and David Rosenboom.
- See Also:
MusicList
-
Method Summary
Modifier and Type Method Description double
play(double playTime, Composable parent, Instrument ins)
play() is called by MusicList.
-
Method Details
-
play
play() is called by MusicList. It should return an updated playTime such as playTime + duration * parent.getTimeStretch()
-