powered by
Create a Sample object whose waveform has length 1 and value 0. Often useful to initialize loops.
nullSample(rate=44100, bits=16, channels=1)
a Sample object.
the sampling rate, between 1000 and 48000.
the sample quality (number of bits per sample), 8 or 16.
1 for mono, or 2 for stereo.
Author: tools:::Rd_package_author("sound")
Maintainer: tools:::Rd_package_maintainer("sound")
Silence
if (FALSE) { scale <- 2^(seq(0,1,length=13))[c(1,3,5,6,8,10,12,13)] base <- 440 s <- nullSample() for (f in scale) s <- appendSample(s,Sine(f*base,1)) play(s) }
Run the code above in your browser using DataLab