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

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

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

                                        Pitch a Sample Object
                                         间距样品对象

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

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

Change the pitch of a Sample object or a wav file.
改变一个的样本对象或一个wav文件的音调。


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





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

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


参数:semitones
a double giving the number of semitones to be pitched.
一个双给定的半音。


Details

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

Pitching +12 semitones (+1 octave) means to double the frequencies. Negative values of semitones are used to lower the frequencies.
俯仰+12个半音(+1八度)是指频率的两倍。负值semitones用于以降低的频率。

Note that this transformation changes the actual data of the sample. Since pitching a sample is equivalent to playing it at a different speed, the length of the Sample object will also change.
请注意,此变换改变样品的实际数据。由于投样品是相当于它在不同的速度播放,样本对象的长度也将发生变化。


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

a Sample object.
Sample对象。


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

Future versions of this command may use a different algorithm to increase the quality of the returned sample.
此命令的未来版本可能会使用不同的算法,以增加返回的样品的质量。


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


Matthias Heymann



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


s <- Sine(440,1)
# Now play it 12 semitones = 1 octave deeper,[现在玩12个半音= 1个八度更深,]
# that is half the frequencies and twice the length,[的一半的频率和长度的两倍,]
# or played at half speed.[或播放速度的一半。]
play(pitch(s,-12)) # is the same as...[是相同的...]
play(Sine(220,2))


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-9 18:01 , Processed in 0.019240 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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