com.jsyn.util
Class WaveRecorder

java.lang.Object
  extended by com.jsyn.util.WaveRecorder

public class WaveRecorder
extends java.lang.Object

Connect a unit generator to the input. Then start() recording.


Constructor Summary
WaveRecorder(Synthesizer synth, java.io.File outputFile)
           
WaveRecorder(Synthesizer synth, java.io.File outputFile, int samplesPerFrame)
           
WaveRecorder(Synthesizer synth, java.io.File outputFile, int samplesPerFrame, int bitsPerSample)
           
 
Method Summary
 void close()
           
 UnitInputPort getInput()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaveRecorder

public WaveRecorder(Synthesizer synth,
                    java.io.File outputFile)
             throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

WaveRecorder

public WaveRecorder(Synthesizer synth,
                    java.io.File outputFile,
                    int samplesPerFrame)
             throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

WaveRecorder

public WaveRecorder(Synthesizer synth,
                    java.io.File outputFile,
                    int samplesPerFrame,
                    int bitsPerSample)
             throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

getInput

public UnitInputPort getInput()

start

public void start()

stop

public void stop()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException