找回密码
 注册
查看: 383|回复: 0

R语言 sound包 cutSample()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 12:03:03 | 显示全部楼层 |阅读模式
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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-9 17:38 , Processed in 0.031063 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表