Overview | Package | Class
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.log4jfugue
Class PretendPlayer

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.

todo:
  make the output file name injectable

author:
  btarbox

Field Summary
`int` | `durationOfPlay`
`FileOutputStream` | `file`
`Logger` | `log`

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

Method Summary
`void` | `close()`
`void` | `play(Pattern pattern)`
`void` | `play(String musicString)` Accept the music string as if to play it but actually just append it to a file.
`void` | `setDurationOfPlay(int duration)` An injection target to set how long each play should take.

Constructor Detail

### PretendPlayer

    public PretendPlayer()

  Create a pretend player and opens an output file.
  throws:
    FileNotFoundException

Method Detail

### close

    public void close()

### play

    public void play(Pattern pattern)

### play

    public void play(String musicString)

  Accept the music string as if to play it but actually just append it to a file.

### 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
  param:
    duration