Package com.softsynth.jmsl.jsyn
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:
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 Summary
Constructors Constructor Description WAVRecorderPanel()
Deprecated. -
Method Summary
Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
Deprecated.void
addWAVRecorderPanelListener(StartStopListener listener)
Deprecated.void
buildWAVRecorder(java.lang.String filename, int numChannels)
Deprecated.void
connect(com.softsynth.jsyn.SynthOutput sig, int partNum)
Deprecated.com.softsynth.jsyn.SynthInput
getInput()
Deprecated.void
handleStop()
Deprecated.static void
main(java.lang.String[] args)
Deprecated.A slow, panning gliss captured to a raw stereo soundfile.void
removeWAVRecorderPanelListener(StartStopListener listener)
Deprecated.void
setFont(java.awt.Font f)
Deprecated.Methods inherited from class com.softsynth.jmsl.view.PVPanelAdapter
add, add, addKeyListener, equals, getBackground, getBounds, getComponent, getFont, getLocation, getParent, hashCode, isEnabled, remove, removeAll, removeKeyListener, setBackground, setEnabled, setLayout, setLocation, setVisible, toString, validate
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
WAVRecorderPanel
public WAVRecorderPanel()Deprecated.
-
-
Method Details
-
setFont
public void setFont(java.awt.Font f)Deprecated.- Specified by:
setFont
in interfacePVComponent
- Overrides:
setFont
in classPVPanelAdapter
-
addWAVRecorderPanelListener
Deprecated. -
removeWAVRecorderPanelListener
Deprecated. -
buildWAVRecorder
public void buildWAVRecorder(java.lang.String filename, int numChannels) throws java.io.IOExceptionDeprecated.- 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.IOExceptionDeprecated.- Throws:
java.io.IOException
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)Deprecated.- Specified by:
actionPerformed
in interfacejava.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);
-