Skip to content
Prev 42153 / 398500 Next

sound library

giojona at libero.it wrote:

            
Looks like it is not checked whether the generated "sound", i.e. a wave 
file, is valid. Using 16 bit resolution, you cannot have more than 2^16 
integers, but 10000*s contains invalid integers for the wave representation.
Since you are writing invalid values to the file, those are interpreted 
in the "wrong" way and you might get something different.
Two more comments:
"sound" as is does not pass Rcmd check on Windows (because Media Player 
is not available on the system I do compile on, etc.) and has some more 
deficiencies. It's only available as a Windows binary on CRAN because of 
my personal interest in the package.
The author of the package, Matthias Heymann, has been informed, but he 
is not going to fix the bugs in the near future, unfortunately.

I am planing to write a package for the analysis of music (including 
loading / playing / saving wave files) next year myself.

Uwe Ligges