![]() ![]() tBorder(new TitledBorder("Volume")) įinal JCheckBox cbHarmonic = new JCheckBox( "Add Harmonic", true ) ĬtToolTipText(".else pure sine tone") tToolTipText("Volume 0 - none, 100 - full") tBorder(new TitledBorder("Length")) įinal JSlider sVolume=new JSlider(JSlider.VERTICAL,0,100,20) tToolTipText("Duration in milliseconds") tBorder(new TitledBorder("Frequency")) įinal JSlider sDuration=new JSlider(JSlider.VERTICAL,0,2000,1000) "Tone (in Hertz or cycles per second - middle C is 441 Hz)") JPanel pMain=new JPanel(new BorderLayout()) įinal JSlider sTone=new JSlider(JSlider.VERTICAL,200,2000,441) ("Internal Look And Feel Setting Error.") ![]() SwingUtilities.updateComponentTreeUI(this) ![]() tLookAndFeel(UIManager.getSystemLookAndFeelClassName()) Import Īudio tone generator, using the Java sampled sound andrew The latest version should be available at. This can be particularly useful for checking a PCs sound system, as well as testing/debugging other sound related applications (such as an audio trace app.). This code shows how to generate and play a simple sinusoidal audio tone using the API (see the generateTone() method for the details).
0 Comments
Leave a Reply. |