Very basic question about libraries

edited November 2016 in Using Processing

So I read and tried to get started the examples for sound : https://processing.org/tutorials/sound/

The problem is if I paste the code of, let say, example 5 in a new Processing file, well I have an error saying the package "processing.sound" does not exist. Well, a bit surprising but if I read the description : "No library found for processing.sound Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder." I should be able to do it. The problem : I have no "sketchbook" folder, so I don't see exactly what I should do, so maybe someone can help me to figure out how to do that.

Thanx in advance

Answers

  • In this case: Menu > Sketch > Import Library > Sound -- once you do it once, you don't have to do it again on a given system.

    For other libraries that aren't in the quick menu list, Menu > Sketch > Import Library > Add Library.

    It is worth browsing around that list just to see all the interesting options in there. Many are also briefly described on the Processing Contributions page.

  • The sketchbook folder is where Processing saves your sketches, it will be a folder called something like Processing inside your Documents folder. The actual folder names depend on Processing version and OS.

    Libraries come in 2 flavours, those like sound which are included in the Processing download and contributed libraries which can be installed via the Contributions Manager. The last comment showed how to do these 2 options. Manual installation should only be used if you have no choice.

Sign In or Register to comment.