nullSample(sound)
nullSample()所属R语言包:sound
The NULL Sample Object
的NULL样品对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create a Sample object whose waveform has length 1 and value 0. Often useful to initialize loops.
创建一个的Sample对象,其波形的长度为1和0值。通常情况下非常有用的初始化循环。
用法----------Usage----------
参数----------Arguments----------
参数:rate
the sampling rate, between 1000 and 48000.
采样率,在1000和48000之间。
参数:bits
the sample quality (number of bits per sample), 8 or 16.
试样的质量(每个样本的比特数),8个或16个。
参数:channels
1 for mono, or 2 for stereo.
1的立体声为单声道,或2。
值----------Value----------
a Sample object.
Sample对象。
注意----------Note----------
Future versions may use a special NULLSample flag instead of using a sample of length 1.
未来的版本可能会使用一个特殊的NULLSample标志,而不是使用长度为1的样本。
(作者)----------Author(s)----------
Matthias Heymann
参见----------See Also----------
Silence
Silence
实例----------Examples----------
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)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|