Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.log4jfugue
Class PretendPlayer

    java.lang.Object
      org.jfugue.Player
          org.log4jfugue.PretendPlayer

    public class PretendPlayer

extends org.jfugue.Player

This class doesn't actually send the music strings to JFugue, it writes them to a file for later playback. This can be useful while debugging an application (or when your son is asleep.

Author:
  btarbox

Constructor Summary
`PretendPlayer()` Create a pretend player and opens an output file.

Method Summary
`void` | `close()`
`void` | `play(Pattern pattern)`
`void` | `setDurationOfPlay(int duration)` An injection target to set how long each play should take.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PretendPlayer

    public PretendPlayer()
                  throws java.io.FileNotFoundException

  Create a pretend player and opens an output file.

  Throws:
    `java.io.FileNotFoundException`

Method Detail

### setDurationOfPlay

    public void setDurationOfPlay(int duration)

  An injection target to set how long each play should take. A typical chromatic play takes 1 second, while a typical rhythm play takes 2 seconds

  Parameters:
    `duration` -

### close

    public void close()

### play

    public void play(Pattern pattern)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD