How to install the “sound” library for Processing in a simple way?

纵然是瞬间 提交于 2019-12-11 10:54:00

问题


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...

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?


update


I'm asking this because there is actually no option to install it:

Even when I search:


回答1:


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.

Install it, and you'll be able to use the classes in the processing.sound package.




回答2:


You may download the .jar file of the library you need and put it in a folder named "code" in your sketch folder.




回答3:


If you are using a Mac you can still add the library but it's a bit more complicated. You need to download the library and open the finder/documents/processing/libraries and drop the sound folder that you download from the web in the the libraries folder. You then open Processing and add the library through the library manager.



来源:https://stackoverflow.com/questions/30559754/how-to-install-the-sound-library-for-processing-in-a-simple-way

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!