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

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

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

                                        The Waveform Matrix of a Sample Object
                                         波形矩阵的一个示例对象

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

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

Get or set the waveform matrix of a Sample object or a wav file.
获取或设置一个的样本对象或一个wav文件的波形矩阵。


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


sound(s) <- value



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

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


参数:value
a channels(s) x sampleLength(s) matrix of doubles.
channels(s)XsampleLength(s)矩阵的双打。


Details

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

The replacement form can be used to reset the waveform of a sample object. Here, filenames are not accepted for codes.
替换形式可以被用来重置的波形的一个示例对象。在这里,文件名不被接受的代码。

The matrix can have one (for mono samples) or two rows (for stereo samples), where in the latter case the first row corresponds to the left and the second row to the right channel.
该矩阵可以有一个(单样本)或两行(用于立体声样品),在后者的情况下,第一行对应的左侧和右声道的第二行。

It contains the waveform(s) of the Sample object as sequence(s) of numbers between -1 and 1. waveform can contain arbitrary real numbers, but when the Sample object is played or saved to disk, [-1,1] is regarded as the native range of the sample, and any values outside this interval will cause cracks in the sound.
它包含的波形(s)的序列(s)-1和1之间的数字示例对象作为。 waveform可以包含任意实数,但样本对象时,播放或保存到磁盘上,[-1,1],被认为是本机的样品,这个时间间隔以外的任何值,会导致缝隙中的声音。

The waveform of a Sample object might exceed this interval during calculations. It is the task of the programmer to take care about the range of the waveform before saving or playing the sample, for example by using the normalize function.
在计算过程中,波形的采样对象可能会超过这个时间间隔。它是任务的程序员照顾的范围的波形,然后再保存或打样品,例如使用normalize功能。


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

the waveform matrix of the sample.
波形矩阵的示例。


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


Matthias Heymann



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

as.Sample
as.Sample


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


s <- Sine(440,1,channels=2)  # stereo sine wave[立体声正弦波]
sound(s)[2,] <- sound(s)[2,]*seq(1,0,length=sampleLength(s))
play(s)  # right channel fades to zero[零右声道消失]


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-9 19:06 , Processed in 0.024589 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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