savewav {seewave} | R Documentation |
Save sound data as .wav file
savewav(wave, f, filename = NULL)
wave |
data describing the time wave to be exported. |
f |
sampling frequency of wave (in Hz). |
filename |
name of the new file. (by default the name of wave ). |
This function uses two functions from the package sound:
Sample
and saveSample
The file automatically owerwrites an existing file with the same name.
Jerome Sueur sueur@mnhn.fr
as.Sample
,
saveSample
, export
.
a<-synth(f=8000,d=2,cf=2000,plot=FALSE) # the name of the file is automatically the name of the object # here: "a.wav" savewav(a,f=22050) unlink("a.wav") # if you wish to change the name, use 'file' argument savewav(a,f=22050,file="b.wav") unlink("b.wav")