Hi.

I'm trying to export a .wav file using the writeWave function from tuneR
package in a different folder than the default getwd().
After reading through the manuals of some audio packages I couldn't figure
it out.

I'm picking one 3-hour .wav file and asking the function to take a sample
of 1 minute (from minute 100 to minute 101 of the 3-hour file) and saving
it in an object "rec".

Here is what I'm doing:

 filename<-"QUm0B24x_SMS05_20100831_052100.wav"
 min.ini<-100
 min.fin<-101

 library(tuneR)
 rec<-readWave(filename,min.ini,min.fin,"minutes")
 writeWave(rec,"cut1.wav")

It is writing the file in the same directory of the "filename" object. What
I want to do is to write the "cut1.wav" file in a different folder.

Any suggestions?

Thanks in advance!

-- 
*Humberto Mohr*
*
*
Mestrando do PPG-Ecologia do Instituto Nacional de Pesquisas da AmazĂ´nia
(INPA)
Graduate student of the Master Program in Ecology in the National Institute
of Amazon Research (INPA)

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to