Sine(sound)
Sine()所属R语言包:sound
Create Sample Objects for the Basic waveforms
创建示例对象的基本波形
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create a Sample object with a sine, sawtooth, or square waveform, silence, or noise.
创建一个Sample对象的正弦波,锯齿波,方波,沉默,或噪音。
用法----------Usage----------
Sawtooth(freq, dur, rate=44100, bits=16, channels=1, reverse=FALSE)
Square(freq, dur, rate=44100, bits=16, channels=1, upPerc=50)
Silence(dur, rate=8000, bits=8, channels=1)
Noise(dur, rate=44100, bits=16, channels=1)
参数----------Arguments----------
参数:freq
the frequency (a double).
频率(双)。
参数:dur
the duration in seconds (a double).
在几秒钟的时间(双)。
参数:rate
the sampling rate, an integer between 1000 and 48000.
采样率,在1000和48000之间的整数。
参数:bits
the sampling quality in bits per sample, 8 or 16.
采样质量在每个样品位,8个或16个。
参数:channels
1 for mono, or 2 for stereo.
1的立体声为单声道,或2。
参数:reverse
logical. If TRUE, the waveform will be mirrored vertically.
逻辑。如果TRUE,垂直的波形将被镜像。
参数:upPerc
a number between 0 and 100 giving the percentage of the waveform with value +1.
0和100之间的一个数,给出的值+1的波形的百分数。
Details
详细信息----------Details----------
If channels=2, left and right side of the sample will be the same for Sine, Sawtooth and Square. For Noise, both sides will be generated separately, using runif.
如果channels=2,左边和右边的样本是相同的Sine,Sawtooth和Square。对于Noise,双方将单独生成,使用runif。
值----------Value----------
a Sample object.
Sample对象。
(作者)----------Author(s)----------
Matthias Heymann
参见----------See Also----------
as.Sample, loadSample, nullSample
as.Sample,loadSample,nullSample
实例----------Examples----------
s1 <- Sine(440,1)
play(s1)
s2 <- Sawtooth(440,1)
play(s2)
play(Noise(1))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|