Waveforms(tuneR)
Waveforms()所属R语言包:tuneR
Create Wave Objects of Special Waveforms
创建特殊波形的波的对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create a Wave object of special waveform such as
创建一个Wave对象的特殊的波形,如
用法----------Usage----------
noise(kind = c("white", "pink"), duration = samp.rate,
samp.rate = 44100, bit = 1, stereo = FALSE,
xunit = c("samples", "time"), ...)
sawtooth(freq, duration = samp.rate, from = 0, samp.rate = 44100,
bit = 1, stereo = FALSE, xunit = c("samples", "time"),
reverse = FALSE, ...)
silence(duration = samp.rate, from = 0, samp.rate = 44100,
bit = 1, stereo = FALSE, xunit = c("samples", "time"), ...)
sine(freq, duration = samp.rate, from = 0, samp.rate = 44100,
bit = 1, stereo = FALSE, xunit = c("samples", "time"), ...)
square(freq, duration = samp.rate, from = 0, samp.rate = 44100,
bit = 1, stereo = FALSE, xunit = c("samples", "time"),
up = 0.5, ...)
参数----------Arguments----------
参数:kind
The kind of noise, either “white” or “pink” (the latter is not dB adjusted (!) but linear decreasing on a log-log scale).
种噪音,无论是“白色”或“粉红色”(后者不调整分贝(!)log记录的规模,但线性递减)。
参数:freq
The frequency (in Hertz) to be generated.
要生成的频率(以赫兹为单位)。
参数:duration
Duration of the Wave in xunit.
持续时间的Wavexunit。
参数:from
Starting value of the Wave in xunit.
开始值的Wavexunit。
参数:samp.rate
Sampling rate of the Wave.
采样率的Wave。
参数:bit
Resolution of the Wave and rescaling unit. This may be<br> 1 (default) for rescaling to real values in [-1,1],<br> 8 (i.e. 8-bit) for rescaling to integers in [0, 254],<br> 16 (i.e. 16-bit) for rescaling to integers in [-32767, 32767],<br> 24 (i.e. 24-bit) for rescaling to integers in [-8388607, 8388607],<br> 32 (i.e. 32-bit) for rescaling to integers in [-2147483647, 2147483647], and<br> 0 for not rescaling at all. These numbers are internally passed to normalize.
分辨率Wave和缩放单位。这可能是<BR>的1(默认)重新缩放到实际值在[-1,1],参考8(即8位),用于改变大小的整数,在[0,254 ,参考16(即16位),用于改变大小的整数[-32767,32767],参考24(即24位),重新缩放为整数,在[-8388607 8388607]参考32(即32位),重新缩放为整数,在[-2147483647,2147483647],并参考0不改变大小的。这些数字是从内部传递normalize。
The Wave slot bit will be set to 8, if bit=8, and to 16 otherwise.
Wave插槽bit将设置为8,如果bit=8,否则至16。
参数:stereo
Logical, if TRUE, a stereo sample will be generated. The right channel is identical to the left one for sawtooth, silence, sine, and square. For noise, both channel are independent.
逻辑,如果TRUE,将产生一个立体声采样。右声道相同sawtooth,silence,sine和square到左边的一个。对于noise,两个通道独立的。
参数:xunit
Character indicating which units are used (both in arguments duration and from). If xunit = "time", the unit is time in seconds, otherwise the number of samples.
字符的单位使用(在参数duration和from)。如果xunit = "time",单位是时间(秒),否则的样本数。
参数:reverse
Logical, if TRUE, the waveform will be mirrored vertically.
逻辑,如果TRUE,波形将被镜像垂直。
参数:up
A number between 0 and 1 giving the percentage of the waveform at max value (= 1 - percentage of min value).
0和1之间的一个数字给的波形的最大值(= 1 - min值的百分比)的百分比。
参数:...
Further arguments to be passed to Wave through the internal function postWaveform.
要传递给Wave内部功能postWaveform通过进一步的论据。
值----------Value----------
A Wave object.
AWave对象。
(作者)----------Author(s)----------
Uwe Ligges, <a href="mailto:ligges@statistik.tu-dortmund.de">ligges@statistik.tu-dortmund.de</a>,
partly based on code from Matthias Heymann's former package ‘sound’,
code for pink noise adapted and simplified from C code of Steve Moshier.
参见----------See Also----------
Wave-class, Wave, normalize, noSilence
波级,Wave,normalize,noSilence
实例----------Examples----------
Wobj <- sine(440, bit = 16, duration = 1000)
Wobj2 <- noise(bit = 16, duration = 1000)
plot(Wobj)
plot(Wobj2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|