# Libraries

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

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

**Page:** 38

---

## [About Local and global variables](https://discourse.processing.org/t/about-local-and-global-variables/22333)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 2\
**Last updated:** [July 2, 2020, 7:40pm UTC](https://discourse.processing.org/t/about-local-and-global-variables/22333 "2020-07-02T19:40:54Z")

</div>

import controlP5.\*; ControlP5 cp5; RadioButton r1, r2; void setup() { size(700,400); cp5 = new ControlP5(this); r1 = cp5.addRadioButton("radioButton") .setPosition(100,180) .setSize(40,20) …

---

## [Problems with Exception Handling](https://discourse.processing.org/t/problems-with-exception-handling/22302)

<div class="topic-metadata">

**Author:** [@raphael](https://discourse.processing.org/u/raphael)\
**Replies:** 0\
**Last updated:** [July 1, 2020, 3:50pm UTC](https://discourse.processing.org/t/problems-with-exception-handling/22302 "2020-07-01T15:50:31Z")

</div>

In my project I need to make a socket connection, however I realized that there is a chance that the user will not start the server. When this happens, it is obvious that the client will not be able to connect to the ser…

---

## [Network Libary see all servers in network](https://discourse.processing.org/t/network-libary-see-all-servers-in-network/16828)

<div class="topic-metadata">

**Author:** [@anon68884268](https://discourse.processing.org/u/anon68884268)\
**Replies:** 7\
**Last updated:** [July 1, 2020, 9:12am UTC](https://discourse.processing.org/t/network-libary-see-all-servers-in-network/16828 "2020-07-01T09:12:08Z")

</div>

Hello, I am working on a whiteboard, which can be seen and edited cross devices in the same network. It works perfectly, but now i found a new Problem: Currently i’m connecting to localhost (127.0.0.1), but for cross-de…

---

## [G4P custom sliders](https://discourse.processing.org/t/g4p-custom-sliders/22223)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 6\
**Last updated:** [June 30, 2020, 1:55pm UTC](https://discourse.processing.org/t/g4p-custom-sliders/22223 "2020-06-30T13:55:42Z")

</div>

I have just started to experiment with G Custom Sliders. I have found out how to position them, use different skins, change the limits, size etal. But for some reason I can not get a value from the slider. Here is my cod…

---

## [Work from university](https://discourse.processing.org/t/work-from-university/22232)

<div class="topic-metadata">

**Author:** [@aylen2000](https://discourse.processing.org/u/aylen2000)\
**Replies:** 6\
**Last updated:** [June 30, 2020, 1:15am UTC](https://discourse.processing.org/t/work-from-university/22232 "2020-06-30T01:15:10Z")

</div>

Hello, I need help with a university job. It consists of recreating a work of art in processing. I need the figures in the work to be generated with voice recognition, in this case with pure data. My proposal is for sma…

---

## [How can I cut webcam video?](https://discourse.processing.org/t/how-can-i-cut-webcam-video/22162)

<div class="topic-metadata">

**Author:** [@hannah](https://discourse.processing.org/u/hannah)\
**Replies:** 4\
**Last updated:** [June 30, 2020, 12:24am UTC](https://discourse.processing.org/t/how-can-i-cut-webcam-video/22162 "2020-06-30T00:24:08Z")

</div>

Hi, I wonder if there is any way to cut webcam video as if other adobe programs can. I know how to resize webcam but I would like to make several live webcam video with one webcam so that I can control each video. Is th…

---

## [Spacebrew issue](https://discourse.processing.org/t/spacebrew-issue/22253)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 1\
**Last updated:** [June 29, 2020, 2:56pm UTC](https://discourse.processing.org/t/spacebrew-issue/22253 "2020-06-29T14:56:31Z")

</div>

I do not know what I’m doing wrong. After installing spacebrew library, and running an example patch, the connection is lost. Working with Processing 3

---

## [Pitch Detection (Minim / Sound)](https://discourse.processing.org/t/pitch-detection-minim-sound/22213)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 0\
**Last updated:** [June 28, 2020, 9:49am UTC](https://discourse.processing.org/t/pitch-detection-minim-sound/22213 "2020-06-28T09:49:50Z")

</div>

Any tips on how one might do robust pitch detection in Processing with Minim or another library? I am interested in detecting the note that someone sings/plays via the microphone.

---

## [How to display blob (tracking color) size (x,y) to use for collision with another object?](https://discourse.processing.org/t/how-to-display-blob-tracking-color-size-x-y-to-use-for-collision-with-another-object/22142)

<div class="topic-metadata">

**Author:** [@VIRUS](https://discourse.processing.org/u/VIRUS)\
**Replies:** 2\
**Last updated:** [June 27, 2020, 1:29pm UTC](https://discourse.processing.org/t/how-to-display-blob-tracking-color-size-x-y-to-use-for-collision-with-another-object/22142 "2020-06-27T13:29:17Z")

</div>

Hi, Totalely NOOB Asking: I took some code from Train coding that fits an idea I have in head. How can I Interact the ellipse with the blob zone (that appears on click with color picking (color tracking) For now, ther…

---

## [controlP5 "bang" being pressed by using hardware (Arduino)](https://discourse.processing.org/t/controlp5-bang-being-pressed-by-using-hardware-arduino/22156)

<div class="topic-metadata">

**Author:** [@Ardubora](https://discourse.processing.org/u/Ardubora)\
**Replies:** 0\
**Last updated:** [June 25, 2020, 11:41am UTC](https://discourse.processing.org/t/controlp5-bang-being-pressed-by-using-hardware-arduino/22156 "2020-06-25T11:41:18Z")

</div>

Is it possible to make a button (f.e bang) from the controlP5 to be pressed without klicking the button? But lets say instead usea button on an arduino?

---

## [The JOptionPane dialog window appears when pressing the "wrong" button on the controlP5 GUI](https://discourse.processing.org/t/the-joptionpane-dialog-window-appears-when-pressing-the-wrong-button-on-the-controlp5-gui/22124)

<div class="topic-metadata">

**Author:** [@Ardubora](https://discourse.processing.org/u/Ardubora)\
**Replies:** 9\
**Last updated:** [June 25, 2020, 11:22am UTC](https://discourse.processing.org/t/the-joptionpane-dialog-window-appears-when-pressing-the-wrong-button-on-the-controlp5-gui/22124 "2020-06-25T11:22:49Z")

</div>

I made a dialog window appear when one is pressing the button “red1”. The first attempt at compiling after restart is normal. When I press “ok” in that pop-up or I close it the button “red1” still stays pressed/active. A…

---

## [Network library: Is there a limit on the size of a byte array sent to a Client via the write() function?](https://discourse.processing.org/t/network-library-is-there-a-limit-on-the-size-of-a-byte-array-sent-to-a-client-via-the-write-function/21506)

<div class="topic-metadata">

**Author:** [@giulio](https://discourse.processing.org/u/giulio)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 2:11pm UTC](https://discourse.processing.org/t/network-library-is-there-a-limit-on-the-size-of-a-byte-array-sent-to-a-client-via-the-write-function/21506 "2020-06-24T14:11:03Z")

</div>

Scenario: I have three programs: a TCP Server (written in Processing), and Producer and Consumer (they are not Processing sketches). Producer produces an array of bytes. Producer and Consumer connect to the TCP Server, a…

---

## [Question about GCheckbox in G4P library](https://discourse.processing.org/t/question-about-gcheckbox-in-g4p-library/22119)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 11:49am UTC](https://discourse.processing.org/t/question-about-gcheckbox-in-g4p-library/22119 "2020-06-24T11:49:51Z")

</div>

I have a question about GCheckbox objects. Depending on the control mode, the 4th & 5th parameters in the creation methods are supposed to specify either the X/Y positions (of the bottom right corner, I think) or the wid…

---

## [Slit-scan effect](https://discourse.processing.org/t/slit-scan-effect/22036)

<div class="topic-metadata">

**Author:** [@alexandruchitu](https://discourse.processing.org/u/alexandruchitu)\
**Replies:** 3\
**Last updated:** [June 23, 2020, 12:35pm UTC](https://discourse.processing.org/t/slit-scan-effect/22036 "2020-06-23T12:35:50Z")

</div>

Hello ! I’m a newbie :slight\_smile: I want to make this effect with a video I already shoot I try with this code : import processing.video.\*; Movie myVideo; int video\_width = 3840; int video\_height = 216…

---

## [Creating Joint upon Collision in Box2D](https://discourse.processing.org/t/creating-joint-upon-collision-in-box2d/21453)

<div class="topic-metadata">

**Author:** [@weijie](https://discourse.processing.org/u/weijie)\
**Replies:** 1\
**Last updated:** [May 31, 2020, 2:01pm UTC](https://discourse.processing.org/t/creating-joint-upon-collision-in-box2d/21453 "2020-05-31T14:01:30Z")

</div>

Hi everyone, Can I create a joint between 2 objects upon a collision in Box2D? Thanks!

---

## [Exporting high quality video](https://discourse.processing.org/t/exporting-high-quality-video/22056)

<div class="topic-metadata">

**Author:** [@TairGalili](https://discourse.processing.org/u/TairGalili)\
**Replies:** 1\
**Last updated:** [June 22, 2020, 12:12pm UTC](https://discourse.processing.org/t/exporting-high-quality-video/22056 "2020-06-22T12:12:59Z")

</div>

I am using processing right now and I would like to export my sketch as a video. I have used the SaveFrame() method, along with the movie Maker from processing. However, it seems like the quality of the video is low. Is …

---

## [Mesh Library for Processing 3](https://discourse.processing.org/t/mesh-library-for-processing-3/21047)

<div class="topic-metadata">

**Author:** [@artpen](https://discourse.processing.org/u/artpen)\
**Replies:** 15\
**Last updated:** [June 20, 2020, 8:41am UTC](https://discourse.processing.org/t/mesh-library-for-processing-3/21047 "2020-06-20T08:41:54Z")

</div>

Hi Guys, I am new to Processing. I think :slight\_smile: Haven’t used it for a while. What is the good and fast mesh manipulation library nowadays? Which is steel in active development. I remember ToxicLib was amazing, …

---

## [Processing Foundation's Video Library & Video Capture on Linux](https://discourse.processing.org/t/processing-foundations-video-library-video-capture-on-linux/21983)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 2\
**Last updated:** [June 19, 2020, 11:07am UTC](https://discourse.processing.org/t/processing-foundations-video-library-video-capture-on-linux/21983 "2020-06-19T11:07:56Z")

</div>

I was showing some students the wonderful AsciiVideo example that comes with the Processing IDE and it didn’t work on Linux. I remember having this problem a few years ago and reading about a GStreamer 1.0 so I found th…

---

## [Video Capture in linux with ARM processor](https://discourse.processing.org/t/video-capture-in-linux-with-arm-processor/13970)

<div class="topic-metadata">

**Author:** [@tcreed](https://discourse.processing.org/u/tcreed)\
**Replies:** 1\
**Last updated:** [June 18, 2020, 10:16pm UTC](https://discourse.processing.org/t/video-capture-in-linux-with-arm-processor/13970 "2020-06-18T22:16:44Z")

</div>

I have been using processing on Mac for some time with good success but am now trying to run a sketch on a Linux based depth camera, a Persee from Orbbec. I have Ubuntu Linux 14 installed on the camera which uses an ARM…

---

## [3D Text Library](https://discourse.processing.org/t/3d-text-library/21776)

<div class="topic-metadata">

**Author:** [@spencerbambrick](https://discourse.processing.org/u/spencerbambrick)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 5:54pm UTC](https://discourse.processing.org/t/3d-text-library/21776 "2020-06-18T17:54:11Z")

</div>

Hello all, I’m relatively new to Processing but I’m loving working with it, so thanks in advance for the help! In short I’m looking for a library that will allow me to create 3D text with depth (not just rotate 2D text …

---

## [Export video in real time](https://discourse.processing.org/t/export-video-in-real-time/2517)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 22\
**Last updated:** [June 18, 2020, 4:44pm UTC](https://discourse.processing.org/t/export-video-in-real-time/2517 "2020-06-18T16:44:01Z")

</div>

Hey! im actuallly using hamoid librarie video export. but frame rate still down. I need some way to record a sketch in real time( im moving cameras, and other events, so i need perfect sync). What alternatives do i have?…

---

## [Audio frequence](https://discourse.processing.org/t/audio-frequence/21953)

<div class="topic-metadata">

**Author:** [@iamthatoli](https://discourse.processing.org/u/iamthatoli)\
**Replies:** 1\
**Last updated:** [June 17, 2020, 4:30pm UTC](https://discourse.processing.org/t/audio-frequence/21953 "2020-06-17T16:30:29Z")

</div>

What audio rate (kbit/s) should I use if i want to embeed it into my project?

---

## [Processing Network Client.available();](https://discourse.processing.org/t/processing-network-client-available/21886)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 6\
**Last updated:** [June 16, 2020, 9:57am UTC](https://discourse.processing.org/t/processing-network-client-available/21886 "2020-06-16T09:57:27Z")

</div>

Hi Guys, I work with the processing library and would like to know if there are any servers before I write. The Problem: client.available doesn’t work before writing: Server: import processing.net.\*; Server myServer; …

---

## [MouseClick the screen to play music randomly](https://discourse.processing.org/t/mouseclick-the-screen-to-play-music-randomly/21909)

<div class="topic-metadata">

**Author:** [@beryl1997](https://discourse.processing.org/u/beryl1997)\
**Replies:** 5\
**Last updated:** [June 16, 2020, 6:07am UTC](https://discourse.processing.org/t/mouseclick-the-screen-to-play-music-randomly/21909 "2020-06-16T06:07:41Z")

</div>

Now I have 15 pieces of music (15 files), I hope that when the mouse clicks on the screen, these 15 pieces of music can be played randomly Now I only know what to do when playing one piece of music… This is the current…

---

## [Creating software mirrors in processing](https://discourse.processing.org/t/creating-software-mirrors-in-processing/21897)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 1\
**Last updated:** [June 15, 2020, 9:15pm UTC](https://discourse.processing.org/t/creating-software-mirrors-in-processing/21897 "2020-06-15T21:15:32Z")

</div>

I am trying to create software mirrors in processing but the moment i am trying to scale down my video beyond size(320,240) I am getting error import processing.video.\*; Capture video; int vScale=8; int cols,rows; vo…

---

## [Possible bug in GTextField.isValid()? (G4P library)](https://discourse.processing.org/t/possible-bug-in-gtextfield-isvalid-g4p-library/21841)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 5\
**Last updated:** [June 14, 2020, 11:38am UTC](https://discourse.processing.org/t/possible-bug-in-gtextfield-isvalid-g4p-library/21841 "2020-06-14T11:38:41Z")

</div>

This seems to be a bug, although maybe it’s just a misunderstanding on my part. I’m initializing a text field with “0” and calling ‘setNumeric(0,16,0)’ to limit the range between 0 and 16, with a default of 0. If I just …

---

## [Scan for servers](https://discourse.processing.org/t/scan-for-servers/21814)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 10:11pm UTC](https://discourse.processing.org/t/scan-for-servers/21814 "2020-06-12T22:11:27Z")

</div>

Hey Guys, I’m using the Processing network library and want to search for possible Processing servers. How is that possible?

---

## [\[newbie\] How can I record output audio and/or send it to my MOTU audio interface](https://discourse.processing.org/t/newbie-how-can-i-record-output-audio-and-or-send-it-to-my-motu-audio-interface/21813)

<div class="topic-metadata">

**Author:** [@henrybirdseye](https://discourse.processing.org/u/henrybirdseye)\
**Replies:** 0\
**Last updated:** [June 12, 2020, 5:08pm UTC](https://discourse.processing.org/t/newbie-how-can-i-record-output-audio-and-or-send-it-to-my-motu-audio-interface/21813 "2020-06-12T17:08:53Z")

</div>

I’m new to Processing and have spent a lot of time on PureData this past year, with the goal of drawing on oscilloscopes. I’m, of course, using Ted Davis’ excellent XYScope library. I want to record or save to disc audi…

---

## [Audio Not Playing With if Statements (Minim)](https://discourse.processing.org/t/audio-not-playing-with-if-statements-minim/21794)

<div class="topic-metadata">

**Author:** [@chemicalite](https://discourse.processing.org/u/chemicalite)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 6:25am UTC](https://discourse.processing.org/t/audio-not-playing-with-if-statements-minim/21794 "2020-06-12T06:25:02Z")

</div>

Hi all! I can’t seem to get sound files to play with this code here. I want different sound files to play when the user hits a certain key. I’m working on a project currently, here’s the code below! //Audio and Varia…

---

## [Issue when using Box2D and video libraries together](https://discourse.processing.org/t/issue-when-using-box2d-and-video-libraries-together/21754)

<div class="topic-metadata">

**Author:** [@EmmaB](https://discourse.processing.org/u/EmmaB)\
**Replies:** 1\
**Last updated:** [June 12, 2020, 12:44am UTC](https://discourse.processing.org/t/issue-when-using-box2d-and-video-libraries-together/21754 "2020-06-12T00:44:59Z")

</div>

Hello, I trying to create a sketch with both the Box2D for Processing and Video libraries. I have some boxes moving around and colliding with each other, and I want to texture these boxes with some video. However, I g…

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

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