# Libraries

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

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

**Page:** 25

---

## [Shuffle Song Code](https://discourse.processing.org/t/shuffle-song-code/6618)

<div class="topic-metadata">

**Author:** [@charmypatel](https://discourse.processing.org/u/charmypatel)\
**Replies:** 3\
**Last updated:** [August 9, 2021, 11:52am UTC](https://discourse.processing.org/t/shuffle-song-code/6618 "2021-08-09T11:52:46Z")

</div>

I’m trying to practice doing different things using minim. I wanted to play around with shuffling different songs using minim and I found this example. I was having trouble posting a comment to the user that posted this …

---

## [Getting a NullPointerException with opencv loadImage()!](https://discourse.processing.org/t/getting-a-nullpointerexception-with-opencv-loadimage/31739)

<div class="topic-metadata">

**Author:** [@maroslan](https://discourse.processing.org/u/maroslan)\
**Replies:** 1\
**Last updated:** [August 17, 2021, 5:24pm UTC](https://discourse.processing.org/t/getting-a-nullpointerexception-with-opencv-loadimage/31739 "2021-08-17T17:24:25Z")

</div>

I need someone more skilled than me to look at my code. I am trying to open my webcam, and make it track a location, where it will draw a circle. However, it wont even load the cam! I get a NullPointerException. I see th…

---

## [Background/mask over webcam feed](https://discourse.processing.org/t/background-mask-over-webcam-feed/31753)

<div class="topic-metadata">

**Author:** [@maroslan](https://discourse.processing.org/u/maroslan)\
**Replies:** 2\
**Last updated:** [August 16, 2021, 8:14pm UTC](https://discourse.processing.org/t/background-mask-over-webcam-feed/31753 "2021-08-16T20:14:15Z")

</div>

Hi to whoever is reading this! I am trying to create an overlay over a webcam feed. I am using the webcam to capture the darkest points in its vision, where it will draw a circle. However, in the end result I don’t want…

---

## [Video library not working for exported application of the sketch](https://discourse.processing.org/t/video-library-not-working-for-exported-application-of-the-sketch/25264)

<div class="topic-metadata">

**Author:** [@aditya1](https://discourse.processing.org/u/aditya1)\
**Replies:** 11\
**Last updated:** [August 16, 2021, 7:57am UTC](https://discourse.processing.org/t/video-library-not-working-for-exported-application-of-the-sketch/25264 "2021-08-16T07:57:14Z")

</div>

My sketch works totally fine when I run in the Processing software containing the Processing video library. But when I export the sketch as exe application the same code doesn’t work. To try I removed the movie from the…

---

## [Sound and Acceleration](https://discourse.processing.org/t/sound-and-acceleration/31710)

<div class="topic-metadata">

**Author:** [@G03TH3](https://discourse.processing.org/u/G03TH3)\
**Replies:** 3\
**Last updated:** [August 14, 2021, 4:36pm UTC](https://discourse.processing.org/t/sound-and-acceleration/31710 "2021-08-14T16:36:47Z")

</div>

I have been bombarding this post with many questions and I’m sorry that I have to rely so much on the help of you guys, I may assure that everything I’m asking it took me at least 1-2 hours of attempt and failure by myse…

---

## [Playing multiple videos with transparent backgrounds](https://discourse.processing.org/t/playing-multiple-videos-with-transparent-backgrounds/8990)

<div class="topic-metadata">

**Author:** [@blue](https://discourse.processing.org/u/blue)\
**Replies:** 4\
**Last updated:** [August 14, 2021, 12:58pm UTC](https://discourse.processing.org/t/playing-multiple-videos-with-transparent-backgrounds/8990 "2021-08-14T12:58:38Z")

</div>

Hi, I would like to layer multiple videos that I’ve made in processing sketches on top of each other. They all have black backgrounds, which is necessary to create the initial sketch but when i play them back on top of …

---

## [Processing online game](https://discourse.processing.org/t/processing-online-game/31639)

<div class="topic-metadata">

**Author:** [@Arsenii237](https://discourse.processing.org/u/Arsenii237)\
**Replies:** 1\
**Last updated:** [August 9, 2021, 8:18am UTC](https://discourse.processing.org/t/processing-online-game/31639 "2021-08-09T08:18:33Z")

</div>

How to make a local game for phones.

---

## [Faster Rendering Techniques in P3D?](https://discourse.processing.org/t/faster-rendering-techniques-in-p3d/31465)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 16\
**Last updated:** [August 7, 2021, 2:37pm UTC](https://discourse.processing.org/t/faster-rendering-techniques-in-p3d/31465 "2021-08-07T14:37:41Z")

</div>

I’ve made a very large 3D game with Processing, and for the past few months, I’ve dealt with pretty shotty performance, considering only 2,000 or so quads are being drawn at any given time. With enough workarounds, I’ve …

---

## [GStreamer for recording live video](https://discourse.processing.org/t/gstreamer-for-recording-live-video/31573)

<div class="topic-metadata">

**Author:** [@StainlessHolz](https://discourse.processing.org/u/StainlessHolz)\
**Replies:** 0\
**Last updated:** [August 4, 2021, 9:59am UTC](https://discourse.processing.org/t/gstreamer-for-recording-live-video/31573 "2021-08-04T09:59:34Z")

</div>

Hi everyone, Ive made a sketch witch decodes a full HD h.264 camera livestream, displays it and puts a overlay on it. To this point everything works fine and fast using the P2D renderer. Now i need to record this vide…

---

## [Convert HTML table to JSON](https://discourse.processing.org/t/convert-html-table-to-json/31555)

<div class="topic-metadata">

**Author:** [@Mattyjak](https://discourse.processing.org/u/Mattyjak)\
**Replies:** 1\
**Last updated:** [August 2, 2021, 10:24pm UTC](https://discourse.processing.org/t/convert-html-table-to-json/31555 "2021-08-02T22:24:22Z")

</div>

Hello everybody! Today I’ve been messing around with APIs and one of the few I’ve tried (Pastebin) returns data in the form of an HTML table. I want to convert this table into a JSON object but I’m having some trouble. …

---

## [Pd4P3 - A new real-time audio synthesis library for Processing](https://discourse.processing.org/t/pd4p3-a-new-real-time-audio-synthesis-library-for-processing/31345)

<div class="topic-metadata">

**Author:** [@robertesler](https://discourse.processing.org/u/robertesler)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 1:58pm UTC](https://discourse.processing.org/t/pd4p3-a-new-real-time-audio-synthesis-library-for-processing/31345 "2021-08-02T13:58:01Z")

</div>

I hope this is a good place to make an announcement like this. I have just recently released a real-time audio synthesis library called “Pd4P3” which stands for “Pd++ for Processing 3”. It is a library based on Pure Da…

---

## [Avoiding clicks when changing sinOsc amplitude realtime](https://discourse.processing.org/t/avoiding-clicks-when-changing-sinosc-amplitude-realtime/31520)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 5\
**Last updated:** [August 2, 2021, 12:23pm UTC](https://discourse.processing.org/t/avoiding-clicks-when-changing-sinosc-amplitude-realtime/31520 "2021-08-02T12:23:27Z")

</div>

I’m finding some annoying audio glitches when changing a processing.sound sinOsc oscillator amplitude in realtime, for example with the mouse. While moving the mouse, the amplitude step difference is big enough to be he…

---

## [Using a Midi Keyboard to create coloured shapes](https://discourse.processing.org/t/using-a-midi-keyboard-to-create-coloured-shapes/9685)

<div class="topic-metadata">

**Author:** [@djspoonzay](https://discourse.processing.org/u/djspoonzay)\
**Replies:** 2\
**Last updated:** [August 1, 2021, 11:10am UTC](https://discourse.processing.org/t/using-a-midi-keyboard-to-create-coloured-shapes/9685 "2021-08-01T11:10:20Z")

</div>

Hello, I am trying to use a MIDI keyboard to create a red ellipse to start with. I keep getting the same response of cannot convert void to boolean. Any help would be appreciated. import themidibus.\*; MidiBus myBus; in…

---

## [Tech.lity.rea.skatolo - textarea - string formatting](https://discourse.processing.org/t/tech-lity-rea-skatolo-textarea-string-formatting/31475)

<div class="topic-metadata">

**Author:** [@mmuylle](https://discourse.processing.org/u/mmuylle)\
**Replies:** 4\
**Last updated:** [July 29, 2021, 3:49pm UTC](https://discourse.processing.org/t/tech-lity-rea-skatolo-textarea-string-formatting/31475 "2021-07-29T15:49:08Z")

</div>

How can I format (basic formatting such as inserting a new line) the text (string) in a textarea controller of the tech.lity.rea.skatolo library?

---

## [Extreme Overhead. Desperate for help with Memory!](https://discourse.processing.org/t/extreme-overhead-desperate-for-help-with-memory/31476)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 2\
**Last updated:** [July 28, 2021, 10:12pm UTC](https://discourse.processing.org/t/extreme-overhead-desperate-for-help-with-memory/31476 "2021-07-28T22:12:38Z")

</div>

Things for my game aren’t looking too good right now. I’ve spent all day compressing the assets for my game to try and save on memory. I’ve taken 600 mb of assets and turned them into 300 mb worth. Unfortunately, the mem…

---

## [How to convert the amplitude values to decibels](https://discourse.processing.org/t/how-to-convert-the-amplitude-values-to-decibels/31402)

<div class="topic-metadata">

**Author:** [@hemangi\_2810](https://discourse.processing.org/u/hemangi_2810)\
**Replies:** 5\
**Last updated:** [July 26, 2021, 10:30am UTC](https://discourse.processing.org/t/how-to-convert-the-amplitude-values-to-decibels/31402 "2021-07-26T10:30:45Z")

</div>

I have mentioned my code in Java mode , can anyone suggest me how to convert this amplitude values to decibels. import processing.sound.\*; Amplitude amp; AudioIn in; void setup() { size(640, 360); background(255); …

---

## [Copy and Paste parts of a audio file](https://discourse.processing.org/t/copy-and-paste-parts-of-a-audio-file/31422)

<div class="topic-metadata">

**Author:** [@AshSnaga](https://discourse.processing.org/u/AshSnaga)\
**Replies:** 6\
**Last updated:** [July 24, 2021, 4:05pm UTC](https://discourse.processing.org/t/copy-and-paste-parts-of-a-audio-file/31422 "2021-07-24T16:05:52Z")

</div>

Hi. I am new in sound processing and Processing too. I want to copy pieces from a audio file and paste in a different order and save it. How I can make this? Wich sound library is better for do it? Can you orient me in t…

---

## [How can I calculate audio Decibels?](https://discourse.processing.org/t/how-can-i-calculate-audio-decibels/31248)

<div class="topic-metadata">

**Author:** [@ankur](https://discourse.processing.org/u/ankur)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 2:48pm UTC](https://discourse.processing.org/t/how-can-i-calculate-audio-decibels/31248 "2021-07-21T14:48:41Z")

</div>

How can I calculate audio in Decibels using Processing on Java Mode.?

---

## [Comparing sound](https://discourse.processing.org/t/comparing-sound/31355)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 3:40am UTC](https://discourse.processing.org/t/comparing-sound/31355 "2021-07-21T03:40:50Z")

</div>

I’m trying to make my own translator. I know I know there probably hundreds of thousands out there, so can we skip all that. OK now that we got that outta the way I need to know how do i compare sounds in processing is t…

---

## [Can't understand why noLoop() is acting strange](https://discourse.processing.org/t/cant-understand-why-noloop-is-acting-strange/31322)

<div class="topic-metadata">

**Author:** [@acagastya](https://discourse.processing.org/u/acagastya)\
**Replies:** 6\
**Last updated:** [July 20, 2021, 10:45am UTC](https://discourse.processing.org/t/cant-understand-why-noloop-is-acting-strange/31322 "2021-07-20T10:45:33Z")

</div>

Hi, please consider this code https://dpaste.com/4NTYQ8UP7. I cannot seem to understand why line 57-59 is causing the render to stop completely. I want the draw() to stop right when the sound is over, but can’t seem to…

---

## [JBox2d. Step function crashes when destroying a body](https://discourse.processing.org/t/jbox2d-step-function-crashes-when-destroying-a-body/31255)

<div class="topic-metadata">

**Author:** [@Pipo](https://discourse.processing.org/u/Pipo)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 8:27am UTC](https://discourse.processing.org/t/jbox2d-step-function-crashes-when-destroying-a-body/31255 "2021-07-16T08:27:42Z")

</div>

Hi every one! I’m starting with JBox2d, with the help of the book Nature of Code, by Daniel Shiffman. Currently I´m making a sketch where boxes appear on the screen when you click the mouse an they just fall. The thing…

---

## [Updating packages inside VisualStudio editor](https://discourse.processing.org/t/updating-packages-inside-visualstudio-editor/31102)

<div class="topic-metadata">

**Author:** [@WhiteSte](https://discourse.processing.org/u/WhiteSte)\
**Replies:** 1\
**Last updated:** [July 9, 2021, 12:05pm UTC](https://discourse.processing.org/t/updating-packages-inside-visualstudio-editor/31102 "2021-07-09T12:05:10Z")

</div>

Hi i’m trying to execute a code but i’m incurring into some problems. The first problem is the rendering execution of the GUI’s text (controlP5) of my big program. To fix that, i’m trying to execute a little code, but it…

---

## [Generative Design Library](https://discourse.processing.org/t/generative-design-library/31073)

<div class="topic-metadata">

**Author:** [@Kingjuleyann](https://discourse.processing.org/u/Kingjuleyann)\
**Replies:** 7\
**Last updated:** [July 6, 2021, 8:44pm UTC](https://discourse.processing.org/t/generative-design-library/31073 "2021-07-06T20:44:09Z")

</div>

hello, I have been searching for a way to outline my text in the program I’m making and found a topic recomending the use of the “Generative Design” library. I’ve looked at the reference and on the internet but I don’t f…

---

## [Sound and 3D surfaces](https://discourse.processing.org/t/sound-and-3d-surfaces/30949)

<div class="topic-metadata">

**Author:** [@orbicularis](https://discourse.processing.org/u/orbicularis)\
**Replies:** 1\
**Last updated:** [July 3, 2021, 11:05am UTC](https://discourse.processing.org/t/sound-and-3d-surfaces/30949 "2021-07-03T11:05:37Z")

</div>

Hi, I have a problem with these codes on Processing. I want to shape a 3d object with sound. There is no problem for shaping surfaces but it goes in loop. Do you know how to stop this? I need only one movement from bot…

---

## [Adding color to a spectrogram and making it round](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138)

<div class="topic-metadata">

**Author:** [@mkok](https://discourse.processing.org/u/mkok)\
**Replies:** 11\
**Last updated:** [June 28, 2021, 12:59pm UTC](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138 "2021-06-28T12:59:40Z")

</div>

Hai, for a schoolproject i want to create a round spectrogram, but I am still kinda new to processing. I created with my teacher this code and I actually want to add a color (or even more) to the spectrogram. It does no…

---

## [The import javax.crypto cannot be resolved](https://discourse.processing.org/t/the-import-javax-crypto-cannot-be-resolved/30950)

<div class="topic-metadata">

**Author:** [@shuptuu](https://discourse.processing.org/u/shuptuu)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 8:26am UTC](https://discourse.processing.org/t/the-import-javax-crypto-cannot-be-resolved/30950 "2021-06-29T08:26:58Z")

</div>

Hi, I’d like to use the javax.crypto library in Processing, but I have the message “The import javax.crypto cannot be resolved” Is there anybody who already 've been able to use it with Processing? Is there anything sp…

---

## [Does anyone know what functions in kinectPV2 are similar to getRegisteredImage()?](https://discourse.processing.org/t/does-anyone-know-what-functions-in-kinectpv2-are-similar-to-getregisteredimage/30900)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 4:14am UTC](https://discourse.processing.org/t/does-anyone-know-what-functions-in-kinectpv2-are-similar-to-getregisteredimage/30900 "2021-06-28T04:14:46Z")

</div>

Hi everyone. I use depthtocolor but the effect is not so good!I feel that the RGB value above does not correspond well to the depth value.

---

## [G4P gui builder latest version doesn't work with older sketch](https://discourse.processing.org/t/g4p-gui-builder-latest-version-doesnt-work-with-older-sketch/30893)

<div class="topic-metadata">

**Author:** [@GvB](https://discourse.processing.org/u/GvB)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 12:54pm UTC](https://discourse.processing.org/t/g4p-gui-builder-latest-version-doesnt-work-with-older-sketch/30893 "2021-06-25T12:54:16Z")

</div>

Updating an older complex sketch I found out that the latest G4P gui builder is not compatible anymore. I installed an earlier version of the tool which works for now. Question is: is there some way to convert the ‘olde…

---

## [Does anyone know K2P3Toolkit?](https://discourse.processing.org/t/does-anyone-know-k2p3toolkit/30547)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 10\
**Last updated:** [June 22, 2021, 1:59am UTC](https://discourse.processing.org/t/does-anyone-know-k2p3toolkit/30547 "2021-06-22T01:59:40Z")

</div>

Hello guys! I was researching the K2P3Toolkit library in win10 recently, and I found that it can only be applied to the openkinect library on the mac. I tried to modify the code using the kinectPV2 library, but it runs a…

---

## [Peasycam 3d Rendering Issue mac](https://discourse.processing.org/t/peasycam-3d-rendering-issue-mac/30823)

<div class="topic-metadata">

**Author:** [@nfranczak](https://discourse.processing.org/u/nfranczak)\
**Replies:** 3\
**Last updated:** [June 21, 2021, 10:52pm UTC](https://discourse.processing.org/t/peasycam-3d-rendering-issue-mac/30823 "2021-06-21T22:52:09Z")

</div>

hi all, i am totally new to processing3 so i apologize in advance if this is a simple issue. i am trying to render the lorenz attractor. I am able to model it in 2D with this code float x = 0.01; float y = 0; float z …

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

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