Hi R-people,

I'm trying to use the fantastic tuneR package to read wave files for  
analysis. I have followed some of the demos but am having trouble getting  
readWave to work on any wave file not saved by tuneR. As per the help  
example Wobj2 <- readWave("testfile.wav") works when I have used writeWave  
to save testfile.wav. However I cannot find any other wav file that is  
satisfactory for tuneR to load. I have saved a short pink noise file from  
protools in (bwf)wav format 16/44.1 Khz and  when i say x <-  
readWave("pinkNoisePT.wav") I get :-

Error in readBin(con, int, n = N, size = bytes, signed = (bytes == 2)) :
	invalid value of `n'
In addition: Warning message:
Looks like 'pinkNoisePT.wav' is not a valid wave file. in:  
readWave("pinkNoisePT.wav")


With another file that quicktime says is also 16/44.1 :-

Error in readBin(con, int, n = N, size = bytes, signed = (bytes == 2)) :
	That size is unknown on this machine
In addition: Warning messages:
1: Looks like 'voice.wav' is not a valid wave file. in:  
readWave("voice.wav")
2: NAs produced by integer overflow in: sample.rate * block.align
3: Wave file 'voice.wav' seems to be corrupted. in: readWave("voice.wav")

These both play happily in quicktime. I have searched for quite some time,  
but cannot locate what I am doing wrong ???

I have similar problems with my Windows XP box though my main box is  
MacOsX 10.3.4, R2.0.0.0 and tuneR compiled for 2.0.0.0

Thanks to Uwe L for what appears to be a fantastic package of analysis  
functions.

Sam Ferguson

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

	[[alternative HTML version deleted]]


