Interface InstrumentPlayable

All Known Implementing Classes:

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() )

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:

Method Summary
 double play(double playTime, Composable parent, Instrument ins)
          play() is called by MusicList.

Method Detail


double play(double playTime,
            Composable parent,
            Instrument ins)
play() is called by MusicList. It should return an updated playTime such as playTime + duration * parent.getTimeStretch()