cutSample(sound)
cutSample()所属R语言包:sound
Cut Sample Objects
切下样品的对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Cut a part out of a Sample object.
切的一个Sample对象的一部分。
用法----------Usage----------
cutSample(s, start, end)
## S3 method for class 'Sample':
s[i]
参数----------Arguments----------
参数:s
a Sample object, or a string giving the name of a wav file.
样品对象,或者一个字符串,给出一个wav文件的名称。
参数:start
the start position in seconds.
以秒为单位的开始位置。
参数:end
the end position in seconds.
以秒为单位的结束位置。
参数:i
a vector of integers giving the numbers of the columns in the waveform matrix to be used.
给要使用的波形矩阵中的列的数目的整数的向量。
Details
详细信息----------Details----------
Only the intersection of [start,end] with [0,duration(s)] is returned. Similarly, in the second form the intersection of v with 1:sampleLength(s) is returned.
只有路口[start,end[0],duration(s)]返回。同样地,在第二形式的交点v用1:sampleLength(s)被返回。
值----------Value----------
the specified part of the given sample as a new Sample object.
作为一个新的样本对象指定的部分给定的样本。
(作者)----------Author(s)----------
Matthias Heymann
参见----------See Also----------
sound for direct access to the waveform matrix,
sound直接访问的波形矩阵,
实例----------Examples----------
s <- appendSample(Sine(330,1),Sine(440,1))
play(cutSample(s,.8,1.8))
play(s[(44100*.8) 44100*1.8)]) # the same[相同]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|