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

FAQ  FAQ
Search  Search
Memberlist  Memberlist
Register  Register
Profile  Profile
Login  Login

Disabling mouse event bindings for Waveform pane

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



Joined: 25 Oct 2004
Posts: 3
Location: Univ. of Sheffield, UK

PostPosted: Mon Oct 25, 2004 6:42 pm    Post subject: Disabling mouse event bindings for Waveform pane Reply with quote

Hello fellow wavesurfers,
I am building an app that incorporates three wave surfer panes (wave form, spectrogram and a .lab pane). Users have been inadvertently creating new wavesurder panes by right-clicking on the waveform pane and selecting the "Create Pane" menu option. In a similar vein, users have also been accidentally yellow high-lighting a portion of the wave form which they shouldn't be doing. Does any API command allow the developer to disable all mouse-click events for the wave form and spectrogram panes?

Thanks in advance
James
Back to top
View users profile Send private message Yahoo Messenger MSN Messenger
kare



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

PostPosted: Mon Oct 25, 2004 9:35 pm    Post subject: Reply with quote

Not currently, but it seems easy to add. I'll get back to you.

Kåre
Back to top
View users profile Send private message Visit posters website
Natty1



Joined: 25 Oct 2004
Posts: 3
Location: Univ. of Sheffield, UK

PostPosted: Tue Oct 26, 2004 11:31 am    Post subject: Much obliged... Reply with quote

Thanks Kare! I was doing some usability tests and you just wouldn't believe how many naive users went fiddling with all aspects of the wavesurfer widget's interface instead of having a good read of the user manual (which I so laboured so long to write)! Is there any sort of workaround that can be done before waiting for the next Wavesurfer version to be released which would have the new API commands?

James Carmichael
Back to top
View users profile Send private message Yahoo Messenger MSN Messenger
kare



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

PostPosted: Tue Oct 26, 2004 12:15 pm    Post subject: Reply with quote

I think I've fixed it, not tested much though.

Download these files http://www.speech.kth.se/~kare/wsurf.tcl and
http://www.speech.kth.se/~kare/vtcanvas.tcl
and replace them in the current source distribution.

Create the "child safe" panes like this

$widget addPane -state disabled

Hope it works!

Kåre
Back to top
View users profile Send private message Visit posters website
Natty1



Joined: 25 Oct 2004
Posts: 3
Location: Univ. of Sheffield, UK

PostPosted: Tue Oct 26, 2004 7:50 pm    Post subject: Reply with quote

Thanks a million, Kare!

Will download and test tomorrow, my naive users thank you from the bottom of their collective hearts! One final "dumb" question: the dB values seen on the wavesurfer widget's Power plot pane: I want to gain access to them on a per-frame basis for the digitised signal. Is there a wavesurfer widget command similar to the Snack sound object's command "mysnd power"? I ask this because the Snack sound object's power values look substantially different from the wavesurfer widget's power plot for a given same sound.
Back to top
View users profile Send private message Yahoo Messenger MSN Messenger
kare



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

PostPosted: Wed Oct 27, 2004 1:49 pm    Post subject: Reply with quote

They give the same values if you use the same option settings.
Use this in your Snack script to get the same
power -windowlength 200 -preemphasis 0.97

You can of course access the dataplot values from within WaveSurfer, but it's currently a bit more complicated, no API yet. Check out dataplot::compute for a code example. Not a single comment, but it computes mean and sd for all curves shown in a pane.

Kåre
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