©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

option locked of dataplot

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



Joined: 02 Feb 2004
Posts: 3

PostPosted: Mon Feb 02, 2004 5:43 pm    Post subject: option locked of dataplot Reply with quote

there is a bug with -locked option of dataplot plugin when plotting pitch and power
when used in a configuration script -locked 1 is not taken into account. Example:
Code:

if {[wsurf::PluginEnabled dataplot]} {
    $widget dataplot::addDataPlot $pane -backdrop None -datadirectory ""  -delimiter { }  -stylelist {0 black Line 1 red Line 2 blue Line 3 green Line 4 yellow Line  5 magenta Line}  -fileextension ".pwr"  -frameinterval "0.01"  -invocation "indirect"  -locked 1  -skiplines "0"  -unit "dB"  -maxvalue "80"  -minvalue "0"
}

if {[wsurf::PluginEnabled analysis]} {
    $widget analysis::addPower $pane  -channel all -winlength 200 -wintype Hamming  -frameinterval 0.01 -preemphasis 0.97 -maxpower 80 -minpower 0 -exportheader 0
}

we had to add following lines in configuration script to make it works:
Code:
[$pane canvas] configure -state disabled

two reasons:
1) default value for locked is 0 and analysis::addPower calls dataplot::assDataPlot without -locked option
2) pane locking is done in dataplot::applyProperties, once property page is open/closed but not when dataplot is added

The same for pitch, probably formant...
Back to top
View users profile Send private message
kare



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

PostPosted: Thu Feb 05, 2004 11:29 pm    Post subject: Reply with quote

Thanks for your report!

This is fixed in the next release.

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