问题描述
太奇怪了,Processing没有附带声音"库,而官方信息提供了相关信息( https://processing.org/reference/libraries/sound/).这只会导致我转到Github源代码页面( https://github.com/processing/processing-sound ),我真的不知道如何安装此东西...
It's just so weird that Processing does't come with a "sound" library while the official information provides related information(https://processing.org/reference/libraries/sound/). This only leads me to the Github source code page(https://github.com/processing/processing-sound) and I literally do not know how to install this thing...
是的,我可以使用"Minim"或"Sonia"库.但是我有一堆使用"sound"库的示例程序,每个程序都有一个"import processing.sound.*;".就在一开始.
Yes, I could use the "Minim" or "Sonia" library. But I have a bunch of example programs which use the "sound" library, each with a "import processing.sound.*;" right at the beginning.
此外,我在处理库管理器中找不到任何名为声音"的东西.
In addition, I can't find anything named "Sound" in the Processing library manager..
这个库怎么了?如何轻松安装?
What's going on with this library? How do I install it easily?
更新
我问这是因为实际上没有选择安装它的方法:
I'm asking this because there is actually no option to install it:
即使我搜索:
推荐答案
从处理PDE"中,转到"素描"菜单,然后展开"导入库"子菜单,然后选择添加库... 选项.
From your Processing PDE, go to the Sketch menu, then expand the Import Library submenu, and select the Add Library... option.
这将打开一个对话框,其中列出了可以安装的库,包括声音库.
That will open up a dialog that lists libraries you can install, including the Sound library.
安装它,您将可以使用processing.sound
软件包中的类.
Install it, and you'll be able to use the classes in the processing.sound
package.
这篇关于如何安装“声音"用于简单处理的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!