quantize(tuneR)
quantize()所属R语言包:tuneR
Functions for the quantization of notes
的量化的笔记功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions apply (static) quantization of notes in order
这些功能(静态),以量化的音符
用法----------Usage----------
quantize(notes, energy, parts)
quantMerge(notes, minlength, barsize, bars)
参数----------Arguments----------
参数:notes
Series of notes, a vector of integers such as returned by noteFromFF. At least one argument (notes and/or energy) must be specified.
系列的笔记,一个向量的整数,如返回noteFromFF。必须指定至少一个参数(notes和/或energy)。
参数:energy
Series of energy values, a vector of numerics such as corresponding components of a Wspec object.
能量值系列,如相应的组件的一个Wspec对象的矢量的数值计算。
参数:parts
Number of outcoming parts. The notes vector is divided into parts bins, the outcome is a vector of the modes of all bins.
号码的outcoming部分。 notes矢量分为parts箱,结果是一个向量,所有箱的模式。
参数:minlength
1/(length of the shortest note).<br> Example: if the shortest note is a quaver (1/8), set minlength=8.
1 /(最短的音符的长度)。<br>例如:如果在最短的音符是一个颤声(1/8),设置minlength=8。
参数:barsize
One bar contains barsize number of notes of length minlength.
一栏包含barsize的音符的长度minlength。
参数:bars
We expect bars number of bars.
我们预计bars的条数。
值----------Value----------
quantize returns a list with components: <table summary="R valueblock"> <tr valign="top"><td>notes</td> <td> Vector of length parts corresponding to the input data The data is binned and modes corresponding to the data in those bins are returned.</td></tr> <tr valign="top"><td>energy</td> <td> Same as notes, but for the energy argument.</td></tr></table> <br>
quantize返回一个列表的组件:<table summary="R valueblock"> <tr valign="top"> <TD> notes </ TD> <TD>向量的长度parts 对应于所输入的数据的数据进行分级和返回的那些箱中的数据相对应的模式下。</ TD> </ TR> <tr valign="top"> <TD>energy</ TD> <TD>一样notes,但对于energy参数。</ TD> </ TR> </表>参考
quantMerge returns a data.frame with components: <table summary="R valueblock"> <tr valign="top"><td>note</td> <td> integer representation of a note (see Arguments).</td></tr> <tr valign="top"><td>duration</td> <td> 1/duration of a note (see minlength in Section Arguments), if punctuation=FALSE.</td></tr> <tr valign="top"><td>punctuation</td> <td> Whether the note should be punctuated. If TRUE, the real duration is 1.5 times the duration given in duration.</td></tr> <tr valign="top"><td>slur</td> <td> currently always FALSE, sensible processing is not yet implemented.<br> It is supposed to indicate the beginning and ending positions of slurs.</td></tr> </table>
quantMerge返回一个数据框的组件:<table summary="R valueblock"> <tr valign="top"> <TD>note </ TD> <TD>整数表示的说明(见参数)。</ TD> </ TR> <tr valign="top"> <TD>duration </ TD> <TD> 1/duration的说明(见minlength第参数),如果punctuation=FALSE。</ TD> </ TR> <tr valign="top"> <TD> punctuation</ TD> <TD>应注意是否被打断。如果TRUE,真正的持续时间为1.5倍,持续时间duration。</ TD> </ TR> <tr valign="top"> <TD>slur</ TD > <TD>目前总FALSE,合理的处理尚未实施。这是应该指出的开始和结束位置辱骂。</ TD> </ TR> </表>
(作者)----------Author(s)----------
Uwe Ligges, <a href="mailto:ligges@statistik.tu-dortmund.de">ligges@statistik.tu-dortmund.de</a>
参见----------See Also----------
to get the input: noteFromFF, for plotting: quantplot, for further processing: lilyinput, to get notenames: notenames;
输入:noteFromFF,为策划:quantplot,进行进一步的处理:lilyinput,得到notenames:notenames;
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|