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

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

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

                                        Load a WAV File from Disk
                                         将一个WAV文件从磁盘

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

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

Load a wav file from disk and create a Sample object.
加载wav文件从磁盘上创建一个Sample对象。


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





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

参数:filename
a string giving the path and the name of the wav file.
一个字符串,给出的wav文件的路径和名称。


参数:filecheck
logical. If FALSE, no check for existance and read permission of the file will be performed.
逻辑。如果为FALSE,没有检查是否存在和读取的文件的权限将被执行。


Details

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

All kinds of wav files are supported: mono / stereo, 8 / 16 bits per sample, 1000 to 48000 samples/second.
所有的wav文件的支持:单声道/立体声,每个样品的8/16位,1000到48000个样本/秒。


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

the Sample object that is equivalent to the wav file.
Sample对象是等同的wav文件。


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

filename can also be a Sample object. In this case, the same object will be returned immediately. This can be useful when writing functions that accept both Sample objects and the names of a wav file as an argument. See is.Sample for an example.
filename也可以是一个Sample对象。在这种情况下,相同的对象将被立即返回。编写函数时,接受Sample对象和一个wav文件的名称作为参数,这可能是有用的。见is.Sample一个例子。


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


Matthias Heymann



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

saveSample, as.Sample
saveSample,as.Sample


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


s <- loadSample("soundfile.wav")
play(s)


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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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