noSilence(sound)
noSilence()所属R语言包:sound
Cut Off Silence from a Sample Object
截止沉默从样品对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Cut off silence or low noise at the beginning and/or at the end of a Sample object or a wav file.
切断沉默或低噪声的开始和/或结束时的一个Sample对象或WAV文件。
用法----------Usage----------
参数----------Arguments----------
参数:s
a Sample object, or a string giving the name of a wav file.
样品对象,或者一个字符串,给出一个wav文件的名称。
参数:level
non-negative numeric. Absolute values in the waveform matrix smaller than or equal to this value are regarded as silence.
非负的数值。波形矩阵小于或等于该值的绝对值中的值被视为沉默。
参数:start
logical. If TRUE, silence at the beginning of the sample will be cut off.
逻辑。如果TRUE,沉默开始的样品将被切断。
参数:end
logical. If TRUE, silence at the end of the sample will be cut off.
逻辑。如果TRUE,沉默结束时的样品将被切断。
Details
详细信息----------Details----------
For stereo samples, it is checked if the values of both channels are silence before the silence is cut off.
对于立体声样品,它被检查,如果两个通道的值是沉默沉默被切断之前。
值----------Value----------
a Sample object without those parts at the start and at the end of the original sample that are below the specified noise level.
没有的那些部分,在开始和结束时的原始样本指定的噪声电平低于样品对象。
(作者)----------Author(s)----------
Matthias Heymann
参见----------See Also----------
cutSample
cutSample
实例----------Examples----------
s <- Sine(440,5)
sound(s) <- sound(s)*matrix(seq(1,0,length=5*44100),nrow=1)
sampleLength(s)
play(s) # fade out[淡出]
s <- noSilence(s,level=.05)
sampleLength(s) # s is shorter now[s是更短的现在]
play(s) # although you don't hear that the end is missing[虽然你不听,到底是失踪]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|