# Libraries

**URL:** https://discourse.processing.org/c/processing/processing-libraries/19.md?page=44

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 45

---

## [Multi Touch Support for controlP5](https://discourse.processing.org/t/multi-touch-support-for-controlp5/18364)

<div class="topic-metadata">

**Author:** [@SirSquare](https://discourse.processing.org/u/SirSquare)\
**Replies:** 0\
**Last updated:** [March 3, 2020, 8:36pm UTC](https://discourse.processing.org/t/multi-touch-support-for-controlp5/18364 "2020-03-03T20:36:07Z")

</div>

I’m currently working on a GUI that will be used to control a toy tank. I’ve used controlP5 to create the buttons needed for each tank operation (such as movement, barrel rotation, etc). Currently I can use a mouse to cl…

---

## [Orbit view with RealSense and PointCloudViewer](https://discourse.processing.org/t/orbit-view-with-realsense-and-pointcloudviewer/18354)

<div class="topic-metadata">

**Author:** [@joalca80](https://discourse.processing.org/u/joalca80)\
**Replies:** 5\
**Last updated:** [March 3, 2020, 7:38pm UTC](https://discourse.processing.org/t/orbit-view-with-realsense-and-pointcloudviewer/18354 "2020-03-03T19:38:22Z")

</div>

Hi there, And thanks Cansik for a great library! I am very new to Processing and programming over all but I am trying to figure out something that is probably super simple for you guys who have been working with it for…

---

## [Unable to use camera functions](https://discourse.processing.org/t/unable-to-use-camera-functions/18355)

<div class="topic-metadata">

**Author:** [@ghy](https://discourse.processing.org/u/ghy)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 6:33pm UTC](https://discourse.processing.org/t/unable-to-use-camera-functions/18355 "2020-03-03T18:33:20Z")

</div>

/\*\* https://github.com/fiebrink1/wekinator\_examples/blob/master/inputs/VideoInput/SimpleVideoInputWithProcessing\_100Inputs/SimpleVideoInputWithProcessing\_100Inputs.pde REALLY simple processing sketch for using webcam i…

---

## [Use gpu to generate sound in processing (like in shadertoy)](https://discourse.processing.org/t/use-gpu-to-generate-sound-in-processing-like-in-shadertoy/18283)

<div class="topic-metadata">

**Author:** [@bitCrasher](https://discourse.processing.org/u/bitCrasher)\
**Replies:** 5\
**Last updated:** [March 3, 2020, 2:20pm UTC](https://discourse.processing.org/t/use-gpu-to-generate-sound-in-processing-like-in-shadertoy/18283 "2020-03-03T14:20:02Z")

</div>

hi to all…someone know if it’s possible to use the function mainSound() in a shader and use the vec2 output to generate an audio signal? if you see the second tab of this link: https://www.shadertoy.com/view/ldfSW2 yo…

---

## [G4P - Defining handleButtonEvents(..) in a Class](https://discourse.processing.org/t/g4p-defining-handlebuttonevents-in-a-class/18262)

<div class="topic-metadata">

**Author:** [@MauiMana](https://discourse.processing.org/u/MauiMana)\
**Replies:** 2\
**Last updated:** [March 1, 2020, 7:32pm UTC](https://discourse.processing.org/t/g4p-defining-handlebuttonevents-in-a-class/18262 "2020-03-01T19:32:19Z")

</div>

I’m coding native java classes using the Processing 3 IDE. Using G4P as my GUI library I’m trying to encapsulate one of my logical GUI components inside its own class, including the event handler for associated events. H…

---

## [Unfolding Not working with processing 3](https://discourse.processing.org/t/unfolding-not-working-with-processing-3/18320)

<div class="topic-metadata">

**Author:** [@singhv3](https://discourse.processing.org/u/singhv3)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 10:17pm UTC](https://discourse.processing.org/t/unfolding-not-working-with-processing-3/18320 "2020-03-02T22:17:56Z")

</div>

Hello everyone, I am new to Processing and I am trying to work with the unfolding library. I downloaded the available 0.9.6 version from the unfolding site but it is not working fine with processing 3. Any help will be …

---

## [When you re-load and play a new sound with minim, the old sound will still play ...?](https://discourse.processing.org/t/when-you-re-load-and-play-a-new-sound-with-minim-the-old-sound-will-still-play/18280)

<div class="topic-metadata">

**Author:** [@EvilDuck](https://discourse.processing.org/u/EvilDuck)\
**Replies:** 2\
**Last updated:** [March 2, 2020, 5:39pm UTC](https://discourse.processing.org/t/when-you-re-load-and-play-a-new-sound-with-minim-the-old-sound-will-still-play/18280 "2020-03-02T17:39:20Z")

</div>

I have this; a new sound is loaded, the old one will still play can this be fixed, or is it just the way minim works … ? I want to be able to load a new sound to save memory Code: for ( int i = 0; i \< 2; i++ ) { …

---

## [xyScope Library](https://discourse.processing.org/t/xyscope-library/14369)

<div class="topic-metadata">

**Author:** [@mattiasu96](https://discourse.processing.org/u/mattiasu96)\
**Replies:** 4\
**Last updated:** [March 2, 2020, 3:09am UTC](https://discourse.processing.org/t/xyscope-library/14369 "2020-03-02T03:09:54Z")

</div>

I’m trying to use the xyScope Library: https://teddavis.org/xyscope/ . I’d like to build something like the video demo of the library: https://vimeo.com/226597331 I managed to use an already written example from the li…

---

## [G4P - Specifying Listener Method](https://discourse.processing.org/t/g4p-specifying-listener-method/18258)

<div class="topic-metadata">

**Author:** [@MauiMana](https://discourse.processing.org/u/MauiMana)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 10:05am UTC](https://discourse.processing.org/t/g4p-specifying-listener-method/18258 "2020-03-01T10:05:30Z")

</div>

I’m a new user of G4P, migrating over from ControlP5. I’m coding my app as native java classes (but still using the Processing 3 IDE). I am simply trying to assign a listener to a specific button control via .addEventHan…

---

## [Game control plus with ClassNotFoundException problem](https://discourse.processing.org/t/game-control-plus-with-classnotfoundexception-problem/17963)

<div class="topic-metadata">

**Author:** [@JeremyL](https://discourse.processing.org/u/JeremyL)\
**Replies:** 3\
**Last updated:** [February 23, 2020, 8:45am UTC](https://discourse.processing.org/t/game-control-plus-with-classnotfoundexception-problem/17963 "2020-02-23T08:45:50Z")

</div>

Hi,@quark sorry to bother you. im new to using processing for my school project, and now I’m learning to use game control plus library. However when I test it, whatever which example I test, everytime it will show ClassN…

---

## [Convert video to 1 pixel per frame](https://discourse.processing.org/t/convert-video-to-1-pixel-per-frame/18086)

<div class="topic-metadata">

**Author:** [@themindfactory](https://discourse.processing.org/u/themindfactory)\
**Replies:** 7\
**Last updated:** [February 29, 2020, 8:15pm UTC](https://discourse.processing.org/t/convert-video-to-1-pixel-per-frame/18086 "2020-02-29T20:15:59Z")

</div>

Yes you read it correctly I want to convert a video file to a single RGB pixel per frame, so another way to think about it is that this one color per frame is the color you would see on your ceiling when you are watching…

---

## [Hand tracking with RealSense](https://discourse.processing.org/t/hand-tracking-with-realsense/17972)

<div class="topic-metadata">

**Author:** [@Chrou](https://discourse.processing.org/u/Chrou)\
**Replies:** 2\
**Last updated:** [February 28, 2020, 10:34am UTC](https://discourse.processing.org/t/hand-tracking-with-realsense/17972 "2020-02-28T10:34:01Z")

</div>

Hello! I’m working on a project that involves hand tracking with a RealSense D435 camera. I’d like to implement it in Processing because it’s easier for the person who will take over once my internship ends. Is there a …

---

## [G4P.showMessage ... G4P.WARNING causes error](https://discourse.processing.org/t/g4p-showmessage-g4p-warning-causes-error/18198)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 3\
**Last updated:** [February 27, 2020, 7:46pm UTC](https://discourse.processing.org/t/g4p-showmessage-g4p-warning-causes-error/18198 "2020-02-27T19:46:25Z")

</div>

After just updating G4P Library to latest version (4.3.2) from 4.1.3, The following line of code (which worked under 4.1.3): G4P.showMessage(this, “Not a valid Patch file?”, “Bad Patch Data”, G4P.WARNING); now gives th…

---

## [Send video frame into OpenCV?](https://discourse.processing.org/t/send-video-frame-into-opencv/18075)

<div class="topic-metadata">

**Author:** [@jeffthompson](https://discourse.processing.org/u/jeffthompson)\
**Replies:** 9\
**Last updated:** [February 27, 2020, 4:02pm UTC](https://discourse.processing.org/t/send-video-frame-into-opencv/18075 "2020-02-27T16:02:52Z")

</div>

I’m trying to read the frame of a video and send it into OpenCV for blob detection, but am getting a strange error. With this simple example: import processing.video.\*; Movie mov; OpenCV cv; void setup() { size(640…

---

## [Help with java library (AI for Games)](https://discourse.processing.org/t/help-with-java-library-ai-for-games/18039)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 9:22am UTC](https://discourse.processing.org/t/help-with-java-library-ai-for-games/18039 "2020-02-26T09:22:38Z")

</div>

I found an ai library in java & thought should try it. I’m doing the tutorial, but get an error Idk how to fix. this is in main import game2dai.\*; import game2dai.entities.\*; import game2dai.entityshapes.\*; import game…

---

## [Opening live camera feed via button press](https://discourse.processing.org/t/opening-live-camera-feed-via-button-press/18084)

<div class="topic-metadata">

**Author:** [@Dubs](https://discourse.processing.org/u/Dubs)\
**Replies:** 1\
**Last updated:** [February 25, 2020, 11:49pm UTC](https://discourse.processing.org/t/opening-live-camera-feed-via-button-press/18084 "2020-02-25T23:49:48Z")

</div>

Trying to have a live web-cam feed open when a specific button is pressed… there will be two buttons and I’d need two different video feeds to open (they will have different mods to the facial recognition aspect) Very n…

---

## [Music player now rewinds the whole song](https://discourse.processing.org/t/music-player-now-rewinds-the-whole-song/18036)

<div class="topic-metadata">

**Author:** [@Robb](https://discourse.processing.org/u/Robb)\
**Replies:** 3\
**Last updated:** [February 24, 2020, 5:07am UTC](https://discourse.processing.org/t/music-player-now-rewinds-the-whole-song/18036 "2020-02-24T05:07:56Z")

</div>

I’m new to Processing and programming overall. I’ve been making this code as part of my mid-term assigment. It consists on making a music player with the help of the Minim library. I cannot write code I haven’t been toug…

---

## [The dry sound of delay function in Sound library is not output](https://discourse.processing.org/t/the-dry-sound-of-delay-function-in-sound-library-is-not-output/17999)

<div class="topic-metadata">

**Author:** [@AETA](https://discourse.processing.org/u/AETA)\
**Replies:** 1\
**Last updated:** [February 22, 2020, 7:00am UTC](https://discourse.processing.org/t/the-dry-sound-of-delay-function-in-sound-library-is-not-output/17999 "2020-02-22T07:00:40Z")

</div>

I tested delay function in Sound library with the simple sequencer. You can control start and stop by space bar. When delaySw = false, it goes well. But, delaySw = true, the dry sound is not output. In addition, I wou…

---

## [Calculating the impact of a collision in box2d for Processing](https://discourse.processing.org/t/calculating-the-impact-of-a-collision-in-box2d-for-processing/17835)

<div class="topic-metadata">

**Author:** [@ilinx](https://discourse.processing.org/u/ilinx)\
**Replies:** 3\
**Last updated:** [February 23, 2020, 6:10am UTC](https://discourse.processing.org/t/calculating-the-impact-of-a-collision-in-box2d-for-processing/17835 "2020-02-23T06:10:24Z")

</div>

Hi all, I’ve been searching around the internet for a while now, but couldn’t find a solution to the following problem: In box2d for Processing, I’d like to calculate the impact of a contact in order to modify certain …

---

## [Processing 3.5.3 - G4P library - print variable to 2nd window](https://discourse.processing.org/t/processing-3-5-3-g4p-library-print-variable-to-2nd-window/17968)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 4\
**Last updated:** [February 21, 2020, 5:47pm UTC](https://discourse.processing.org/t/processing-3-5-3-g4p-library-print-variable-to-2nd-window/17968 "2020-02-21T17:47:24Z")

</div>

I’m using the g4p\_controls library. Pressing a button opens a second window. In the 2nd window I have placed some labels that correspond to the values of a sensor. I’m trying to display the sensor value next to the label…

---

## [Glsl background difference](https://discourse.processing.org/t/glsl-background-difference/18024)

<div class="topic-metadata">

**Author:** [@bitCrasher](https://discourse.processing.org/u/bitCrasher)\
**Replies:** 0\
**Last updated:** [February 22, 2020, 8:05pm UTC](https://discourse.processing.org/t/glsl-background-difference/18024 "2020-02-22T20:05:10Z")

</div>

hi to all! i’m tryng to subtract the background ov a video stream processing code import processing.video.\*; Capture video; PShader shader; PGraphics pg; void setup() { size(1280, 720, P2D); shader = loadShade…

---

## [G4P GUI Builder 4.4 Tool](https://discourse.processing.org/t/g4p-gui-builder-4-4-tool/18008)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 4\
**Last updated:** [February 22, 2020, 6:01pm UTC](https://discourse.processing.org/t/g4p-gui-builder-4-4-tool/18008 "2020-02-22T18:01:04Z")

</div>

I’ve placed some Labels. One of them enables me to set the option as BOLT or ITALIC. In the rest no.

---

## [How can get the body outline contour through the Kinect?](https://discourse.processing.org/t/how-can-get-the-body-outline-contour-through-the-kinect/10384)

<div class="topic-metadata">

**Author:** [@jiangjun](https://discourse.processing.org/u/jiangjun)\
**Replies:** 7\
**Last updated:** [February 22, 2020, 2:13am UTC](https://discourse.processing.org/t/how-can-get-the-body-outline-contour-through-the-kinect/10384 "2020-02-22T02:13:14Z")

</div>

// code goes here import gab.opencv.\*; import KinectPV2.KJoint; import KinectPV2.\*; KinectPV2 kinect; OpenCV opencv; void setup() { //size(512, 424, P3D); fullScreen(); opencv=new OpenCV(this,1920,1080); // W…

---

## [Utilisation manette en processing](https://discourse.processing.org/t/utilisation-manette-en-processing/17481)

<div class="topic-metadata">

**Author:** [@theclimbhacker](https://discourse.processing.org/u/theclimbhacker)\
**Replies:** 4\
**Last updated:** [February 19, 2020, 6:06am UTC](https://discourse.processing.org/t/utilisation-manette-en-processing/17481 "2020-02-19T06:06:30Z")

</div>

Bonjour, Je cherche a utilisé une manette (Gamecube dans mon cas) pour faire bouger un personnage dans un jeu. J’ai essayé de détecter les boutons de la manette avec la sous fonction keyCode, pensant que les boutons ré…

---

## [SVG Export Error](https://discourse.processing.org/t/svg-export-error/17882)

<div class="topic-metadata">

**Author:** [@fmS3lect](https://discourse.processing.org/u/fmS3lect)\
**Replies:** 1\
**Last updated:** [February 19, 2020, 5:59am UTC](https://discourse.processing.org/t/svg-export-error/17882 "2020-02-19T05:59:00Z")

</div>

Hi all, i try to export an SVG but i get some kind of error, i have googled about this problem but did not found any solution… does someone know how it might work ? Much Thanks Sebastian import processing.video.\*; im…

---

## [Range of values for add method for Sound oscillators](https://discourse.processing.org/t/range-of-values-for-add-method-for-sound-oscillators/17813)

<div class="topic-metadata">

**Author:** [@paul-reiners](https://discourse.processing.org/u/paul-reiners)\
**Replies:** 2\
**Last updated:** [February 19, 2020, 12:58am UTC](https://discourse.processing.org/t/range-of-values-for-add-method-for-sound-oscillators/17813 "2020-02-19T00:58:58Z")

</div>

What is the range of values for the add method for Sound oscillators? The documentation says that the method “offset\[s\] the output of the oscillator by given value”. But what does this mean, exactly?

---

## [Reverse Pixel Selection OpenCV](https://discourse.processing.org/t/reverse-pixel-selection-opencv/17918)

<div class="topic-metadata">

**Author:** [@ElwoodBlues](https://discourse.processing.org/u/ElwoodBlues)\
**Replies:** 0\
**Last updated:** [February 18, 2020, 7:19pm UTC](https://discourse.processing.org/t/reverse-pixel-selection-opencv/17918 "2020-02-18T19:19:24Z")

</div>

Hello, I have a sketch working to pixelate faces with opencv, however I would like to reverse this, ie. pixelate the background and only have the faces showing as the normal video feed. Is there a way that I can mask out…

---

## [G4P library with GUI builder - Drop down list](https://discourse.processing.org/t/g4p-library-with-gui-builder-drop-down-list/17213)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 7\
**Last updated:** [February 18, 2020, 5:48pm UTC](https://discourse.processing.org/t/g4p-library-with-gui-builder-drop-down-list/17213 "2020-02-18T17:48:20Z")

</div>

Peter I hope you read this, need some guidance please, I am using for the first time the drop down, I have a list of 10 options but all I get is dropList1 - GDropList \>\> GEvent.SELECTED @ 14368 dropList1 - GDropList \>…

---

## [How does one transfer the data in a String over the network to anther instance of the program](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 4\
**Last updated:** [February 17, 2020, 11:14pm UTC](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894 "2020-02-17T23:14:16Z")

</div>

Hello I’m writing a queue manager for a school project, and thought it would be cool if the names in the queue show up for everyone who’s running the program. I’ve tried a UDP server, but I couldn’t get that to work ove…

---

## [Format Specifiers](https://discourse.processing.org/t/format-specifiers/17760)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 2\
**Last updated:** [February 17, 2020, 6:32pm UTC](https://discourse.processing.org/t/format-specifiers/17760 "2020-02-17T18:32:44Z")

</div>

I set up my output data stream with this code. It works without any errors indicated: try { println( "Path: " + selection.getCanonicalPath() ); println( "ext: \\""+ getFileExtension(selection.getCanonicalPath() ) + …

[Previous page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=43)

[Next page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=45)
