Class WAVRecorderPanel

java.lang.Object
com.softsynth.jmsl.view.PVPanelAdapter
com.softsynth.jmsl.jsyn.WAVRecorderPanel
All Implemented Interfaces:
PVComponent, PVPanel, java.awt.event.ActionListener, java.util.EventListener

public class WAVRecorderPanel
extends PVPanelAdapter
implements java.awt.event.ActionListener
Deprecated.
use the pure Java JSyn2 package instead
GUI for WAV recorder. Included in JSynMixer, but you can use it independently.
Simple to use:
 com.softsynth.jmsl.jsyn.WAVRecorderPanel p = new com.softsynth.jmsl.jsyn.WAVRecorderPanel();
 try {
      p.buildWAVRecorder("test.WAV", 2);
 } catch (IOException ioe) {
     System.out.println("Error opening WAV file for output: " + ioe);
 }
 mySynthCircuit.output.connect(0, p.getInput(), 0);
 mySynthCircuit.output.connect(1, p.getInput(), 1); // make first part number 0 if mySynthCircuit only has one part
 myFrameOrPanel.add(p.getComponent());
 
Author:
Nick Didkovsky, 10/8/00
  • Constructor Details

    • WAVRecorderPanel

      public WAVRecorderPanel()
      Deprecated.
  • Method Details

    • setFont

      public void setFont​(java.awt.Font f)
      Deprecated.
      Specified by:
      setFont in interface PVComponent
      Overrides:
      setFont in class PVPanelAdapter
    • addWAVRecorderPanelListener

      public void addWAVRecorderPanelListener​(StartStopListener listener)
      Deprecated.
    • removeWAVRecorderPanelListener

      public void removeWAVRecorderPanelListener​(StartStopListener listener)
      Deprecated.
    • buildWAVRecorder

      public void buildWAVRecorder​(java.lang.String filename, int numChannels) throws java.io.IOException
      Deprecated.
      Throws:
      java.io.IOException
    • getInput

      public com.softsynth.jsyn.SynthInput getInput()
      Deprecated.
    • connect

      public void connect​(com.softsynth.jsyn.SynthOutput sig, int partNum)
      Deprecated.
    • handleStop

      public void handleStop() throws java.io.IOException
      Deprecated.
      Throws:
      java.io.IOException
    • actionPerformed

      public void actionPerformed​(java.awt.event.ActionEvent e)
      Deprecated.
      Specified by:
      actionPerformed in interface java.awt.event.ActionListener
    • main

      public static void main​(java.lang.String[] args)
      Deprecated.
      A slow, panning gliss captured to a raw stereo soundfile. Sound starts right away, so hit "record" button soon! Then listen to test.wav
       
       
       // BUILD RECORDER PANEL AND CONNECT IT
       WAVRecorderPanel p = new WAVRecorderPanel();
       p.buildWAVRecorder("test.WAV", 2);
       panner.output.connect(0, p.getInput(), 0);
       panner.output.connect(1, p.getInput(), 1);