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

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

[复制链接]
发表于 2012-9-30 12:05:35 | 显示全部楼层 |阅读模式
rate(sound)
rate()所属R语言包:sound

                                        The Sampling Rate
                                         采样率

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Get or set the sampling rate (number of samples per second) of a Sample object or a wav file.
获取或设置一个的样本对象或一个wav文件的采样率(每秒采样数)。


用法----------Usage----------


rate(s) <- value
setRate(s,value)



参数----------Arguments----------

参数:s
a Sample object, or a string giving the name of a wav file.
样品对象,或者一个字符串,给出一个wav文件的名称。


参数:value
an integer between 1000 and 192000 giving the sampling rate.
1000和192000之间的整数给采样率。


Details

详细信息----------Details----------

The replacement form can be used to reset the sampling rate. Here, filenames are not accepted.
替换形式可以用于重置的采样率。在这里,文件名是不能接受的。

Note that changing the sampling rate of a Sample object affects the waveform of the sample.
请注意,样品对象改变采样率影响样品的波形。


值----------Value----------

For rate, the sampling rate (number of samples per second) of the sample.
对于rate,样品的采样速率(每秒的样本数)。

For setRate, a Sample object with the new sampling rate.
对于setRate,一个新的采样率Sample对象。


注意----------Note----------

Common sampling rates are between 8000 and 44100 (CD quality). Higher-quality recorders typically work with sampling rates of 48000, 92000 or 192000. Not every rate is guaranteed to be supported by every wav file player.
常用的采样率是在8000和44100之间(CD质量)。高品质的刻录机通常使用的采样率,48000,92000或192000。并不是每一个速率保证每一个WAV文件播放器支持的。

Future versions may use a different algorithm for sampling rate conversion to achieve a better sound quality for the returned sample.
未来的版本可能会使用不同的算法采样率转换来实现更好的音质返回的样品。


(作者)----------Author(s)----------


Matthias Heymann



参见----------See Also----------

fitSampleParameters, pitch
fitSampleParameters,pitch


实例----------Examples----------


s <- Sine(440,1,rate=44100)
rate(s)  # 44100[44100]
play(s)
print(s)
rate(s) <- 8000
play(s)  # s has worse quality now (noise and additional high frequencies)[s有质量差(噪声和额外的高频率)]
print(s) # but uses less memory[但使用较少的记忆体]


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-9 21:27 , Processed in 0.023624 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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