Included Tcl/Tk examples

wsapp1.tcl is a minimal example on how to build an application
using the wsurf widget.

wsapp2.tcl extends the previous example with code that makes the wsurf
widget link to a sound file instead of loading it into memory. Useful
for large sound files.

wsapp3.tcl shows how to create a wsurf widget with a couple of panes.
The code for adding these panes has been copied from a configuration file.

wsapp4.tcl is a slightly larger example that creates a wsurf widget and a 
listbox where the user can browse files and segments. These can be loaded
from a text file containing lines with this format "file start end".

wsapp5.tcl shows how to create a wsurf widget and add an empty pane to it.
This can be used to draw custom graphics.

wsapp6.tcl shows how to do ganging, i.e., how to create links between widgets.
All zoom/scroll/selection operations on one widget will be reflected by
the other widget.

embed.tcl is a minimal example on how a custom application
can pop-up a WaveSurfer-window.

speecon.tcl is a tool used to verify and correct the Swedish part of
the SPEECON database.


Included Python example

wsapp1.py is a minimal example on how to build a Python application
using the wsurf widget.
Make sure that both the wsurf and Snack packages can be found by Python
and Tkinter.
On Unix this is done by setting the environment variable TCLLIBPATH.
setenv TCLLIBPATH "/tmp/wavesurfer-1.4.7 /tmp/snack2.2/unix"

Windows/Mac users should install the wsurf package in the same way the
Snack package is to be installed on their system.

Now do
cd demos/
python wsapp1.py



Installing the wsurf package

It might be practical to install the wsurf package on your system in
order to develop and use custom applications like these.
Simply copy the wsurf1.4 directory to the directory containing
the snack2.2 library directory (assuming you have installed Snack <SNACKMAJORV>
according to the installation instructions included with that package).
Something like:
     /usr/local/lib/snack2.2/
     /usr/local/lib/wsurf1.4/
Properly installing wsurf in this manner will make the code line that
sets "auto_path", in the examples, superfluous.
