©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

Pitch Scaling

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





PostPosted: Sun Sep 14, 2003 12:55 am    Post subject: Pitch Scaling Reply with quote

Has anyone attempted to extend Snack to shift/scale pitch, i.e. change pitch without affecting length of time?
Back to top
Elizabeth
Guest





PostPosted: Tue Sep 16, 2003 3:05 am    Post subject: btw Reply with quote

What does the cmdStretch function do and how is it used? The description appears to be missing from the documentation.

E
Back to top
kare



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

PostPosted: Fri Sep 19, 2003 4:40 pm    Post subject: Reply with quote

It's missing because it needs more work, but your assumptions is correct.
Load a sound clip and try typing this in the Console window (this assumes a low pitched voice, male...)

[[wsurf::GetCurrent] cget -sound] stretch -pitch 1.2

or

[[wsurf::GetCurrent] cget -sound] stretch -rate 0.6

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





PostPosted: Fri Sep 19, 2003 10:32 pm    Post subject: What's missing? Reply with quote

What part of it is incomplete? Maybe I'll take a crack at hammering it out.

-E
Back to top
kare



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

PostPosted: Mon Sep 22, 2003 4:23 pm    Post subject: Reply with quote

In order to handle women's and children's voices it should be possible to specify a plausible f0-range. Also, I haven't tested the -*list options.

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





PostPosted: Fri Nov 28, 2003 6:46 pm    Post subject: Exposing Snack functions in Python Reply with quote

I'm trying to expose the "stretch" function in the snack library to Python, but can't get it to work. I can call it from TCL easily enough.

Does anyone know what needs to be done so that the Python interpreter will pick it up?
Back to top
kare



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

PostPosted: Wed Dec 03, 2003 2:33 pm    Post subject: Reply with quote

Add these lines in tkSnack.py after "def stop"

def stretch(self, **kw):
self.tk.call((self.name, 'stretch') + self._options(kw))

Now you can use

sound.stretch(pitch='0.9')

as expected

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