Play
Usage
• Play[f, t, tmin, tmax ]播放一段声音,幅度由作为在tmin和tmax之间以秒为单位的时间 t 的函数 f 给出。
Notes
• Play 以一种非标准方式计算它的自变量(参见 A.4.2节)。 • Play[ , , ... , ... ]在任意多个信道的声音输出。 • 给出下面的选项:
| "\!\(\*StyleBox[\"\\\"Compiled\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"True\\\"\", \"MR\"]\) " | 是否为了计算编译"f" | | "\!\(\*StyleBox[\"\\\"DisplayFunction\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"$SoundDisplayFunction\\\"\", \"MR\"]\) " | 产生输出的函数 | | "\!\(\*StyleBox[\"\\\"Epilog\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"{}\\\"\", \"MR\"]\) " | 用作结尾的声音或图形 | | "\!\(\*StyleBox[\"\\\"PlayRange\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"Automatic\\\"\", \"MR\"]\) " | 包括的幅度级的范围 | | "\!\(\*StyleBox[\"\\\"Prolog\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"{}\\\"\", \"MR\"]\) " | 用作开头的声音或图形 | | "\!\(\*StyleBox[\"\\\"SampleDepth\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"8\\\"\", \"MR\"]\) " | ""表示每个幅度级使用的比特数 | | "\!\(\*StyleBox[\"\\\"SampleRate\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"8192\\\"\", \"MR\"]\) " | 每秒应当产生的幅度样本的次数 |
• Play返回一个Sound 对象. • 参见 Mathematica 全书 : 节 1.9.13.
Further Examples
This creates a pure tone that oscillates at 220 cycles per second (A below middle C). Evaluate the cell to see the graphic and hear the sound.
In[1]:=
|
This plays the sound of a function across a singularity. Evaluate the cell to see the graphic and hear the sound.
In[2]:=
|
|