©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

creating stereo waveform

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



Joined: 05 Sep 2002
Posts: 30
Location: Portland OR

PostPosted: Tue Sep 16, 2003 11:26 pm    Post subject: creating stereo waveform Reply with quote

How can I combine two mono sound objects into one stereo wave file?

Esther
Back to top
View users profile Send private message Send email Visit posters website
kare



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

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

Currently you would have to write a Snack script for this, but I'll see what I can do.

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



Joined: 05 Sep 2002
Posts: 30
Location: Portland OR

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

I wouldn't mind doing it via a Snack script, but I can't figure out from the Snack manual how to do it. What is the command?

Esther
Back to top
View users profile Send private message Send email Visit posters website
kare



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

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

Try this

snack::sound a -load file1.wav
snack::sound b -load file2.wav

a convert -channels 2

for {set i 0} {$i < [a length]} {incr i} {
a sample $i ? [b sample $i]
}

a write out.wav
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