©2003 Kåre Sjölander and Jonas Beskow
Introduction Download Documentation Links Forum
WaveSurfer user forum

Search  Search
Memberlist  Memberlist
Register  Register
Profile  Profile
Login  Login

Plug-in or Re-Write Source?

Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer
View previous topic :: View next topic  
Author Message

Joined: 07 Jun 2004
Posts: 4

PostPosted: Mon Jun 07, 2004 10:15 pm    Post subject: Plug-in or Re-Write Source? Reply with quote

I am interested in adapting WaveSurfer into a program that has some fewer functions (so as to be more user friendly) and that allows a user to view multiple spectrograms in the same window side-by-side (well, probably one on top of another.)

I have not worked with Tk/Tcl before, but have some experience in Python with Tkinter which is a very close derivative of Tk.

Would this be a better project to undertake as a plug-in or messing around with the source code itself? Is the entire application written in Tcl/ SNACK? Or is there C++ code underlying it? My changes would be nominally in the user interface and not in what the software actually does to the spectrographs etc.

Would it be better to just start out in Tkinter with Python and SNACK on my own? How complicated/easy to use/how much of the work does SNACK do? (I.e. is there just a function call like "makeSpectrographOfSoundFile(soundFile, startTime, endTime, ...)"? Or is it significantly more complicated than that?

Back to top
View users profile Send private message

Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Mon Jun 07, 2004 10:33 pm    Post subject: Reply with quote

Start by checking out the WaveSurfer demos (in the sourrce distribution, demos directory), you could probably adapt one of these to suit your needs.
There's a bunch of Tcl application demos, wsapp1.tcl etc, these could be used as inspiration when modifying the Python application demo, wsapp1.py

It's definitely possible to skip WaveSurfer and use Snack. Creating a spectrogram is as easy as this (almost):
s = Sound(load='ex1.wav')
c = SnackCanvas(height=200, width=400)
c.create_spectrogram(0, 0, sound=s, height=200, width=400)

Check out the Snack source distribution, Python demos can be found in demos/python/

But start with the first option, you will find you get a lot for free... there were good reasons to create WaveSurfer...

Back to top
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer All times are GMT + 1 Hour
Page 1 of 1

Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB 2.0.1 © 2001, 2002 phpBB Group