2. Snack
creates postscript files for printing. On Windows, for example, you will need
Ghostscript and GSview to view and print postscript. These tools can also be downloaded from http://www.cs.wisc.edu/~ghost/.
To print a Tk generated postscript file, e.g. "out.ps", use a Tcl statement like this in your script
exec C:/gs/gs7.04/bin/gswin32 "-IC:\gs\gs7.04;C:\gs\gs7.04\fonts"
-sDEVICE=laserjet -dNOPAUSE out.ps -c quit
3. Make sure you have a matching version of Snack and Tcl, see the download page.
4. The directory structure looks like this after installing Tcl and Snack in their default locations:
C:\Tcl\ | Tcl distribution here |
C:\Tcl\lib\snack2.1\ | Snack library files here |
C:\Program Files\Snack2.1\ | Snack demo files here |
For the Tcl plug-in with
Snack add-on the default installation gives this:
C:\TclPlug\2.0\ | Tcl plug-in distribution here |
C:\TclPlug\2.0\snack2.1\ | Snack library files here |
You can naturally put Tcl in another place, only the relative positions between Tcl and Snack have to be the same. Do this manually if something went wrong during installation.
6. The visualization part of Snack needs Tk. If you only need to play sound you can use the command package require sound to get only the audio functionality of Snack. Depending on your local configuration you may or may not be able to load Snack into Tcl, regardless of the fact that some parts of it requires Tk.
7. Synchronization performance is dependent on sound hardware and device drivers. On Windows, DirectSound should be used if synchronization is important, e.g. play sounds using play -device "Primary Sound Driver". The behaviour of the pause command is a bit platform dependent, on some platforms playback stops only after a short lag. If synchronization is important here, use stop and play instead, in conjunction with the snack::audio elapsed command to keep track of where to restart. See the xs.tcl script for an example of this.
8. Yes. Simply install Snack for Tcl v8.0 in the default location. Skip the installation of Tcl, as it is already contained in the CSLU toolkit distribution. Move the directory C:\Program Files\Tcl\lib\snack2.1\ to C:\CSLU\Tcl80\lib\ or correspondingly.
9. Refer to the README file in the source distribution. Linux RedHat users can obtain the shared library needed here and Windows users can obtain the DLL needed here, put the library in the same directory as libsnack.so/dll and use "package require snacksphere" in your scripts.
10. Send
an e-mail with your question, try
to give a full explanation, including information such as Tcl version,
Snack version, platform.
11. If possible try to write a minimal script which causes the problem. You should also add the line
snack::debug 5 debug.log
at the beginning of your script.
Create all sound objects and canvas items with debug flags, -debug 5, and run the script to create the log-file, debug.log.
Mail me the script and the debug-log together with any related sound file.