This applet takes a WAV file and displays it as a spectrogram.
The basic applet instruction is:
<APPLET CODE="appspect.class" WIDTH="500" HEIGHT="200"> <PARAM NAME="file" VALUE="six.wav"> </APPLET>
This produces:
These parameters are also supported:
| stime | Set start time (s): |
<PARAM NAME="stime" VALUE="0.5"> | |
| etime | Set end time (s): |
<PARAM NAME="etime" VALUE="1.5"> | |
| timescale | Display time scale (y/n): |
<PARAM NAME="timescale" VALUE="y"> | |
| freqscale | Display frequency scale (y/n): |
<PARAM NAME="freqscale" VALUE="y"> | |
| border | Display border (y/n): |
<PARAM NAME="border" VALUE="y"> |
For example:
<APPLET CODE="appspect.class" WIDTH="500" HEIGHT="200"> <PARAM NAME="file" VALUE="six.wav"> <PARAM NAME="stime" VALUE="0.34"> <PARAM NAME="etime" VALUE="0.40"> <PARAM NAME="border" VALUE="y"> </APPLET>
And:
<APPLET CODE="appspect.class" WIDTH="500" HEIGHT="200"> <PARAM NAME="file" VALUE="six.wav"> <PARAM NAME="etime" VALUE="1.0"> <PARAM NAME="timescale" VALUE="y"> <PARAM NAME="freqscale" VALUE="y"> </APPLET>
The applet has a primitive WAV file reader that only understands simple 16-bit WAV files (as produced by SFS).