# Libraries

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

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

**Page:** 42

---

## [Keypressed - Loop Video - toggle "SketchBooks" - Script](https://discourse.processing.org/t/keypressed-loop-video-toggle-sketchbooks-script/20002)

<div class="topic-metadata">

**Author:** [@Sampling](https://discourse.processing.org/u/Sampling)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 8:59pm UTC](https://discourse.processing.org/t/keypressed-loop-video-toggle-sketchbooks-script/20002 "2020-04-24T20:59:36Z")

</div>

Hello everyone, Thank you for your attention and your help. I am starting a project with Processing (I am a novice) and I was nevertheless able to compile a script which allows me to assign the 26 letters from my comp…

---

## [Question about handling "onClose" events for windows in G4P library](https://discourse.processing.org/t/question-about-handling-onclose-events-for-windows-in-g4p-library/20100)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 6:30pm UTC](https://discourse.processing.org/t/question-about-handling-onclose-events-for-windows-in-g4p-library/20100 "2020-04-24T18:30:53Z")

</div>

I want to open a child window from the main window, but I also want to prevent multiple instances of the child window from being opened. I was able to do that by calling ‘setEnabled(false)’ on the button when the child w…

---

## [Running video library and i get the error Target VM failed to initialise](https://discourse.processing.org/t/running-video-library-and-i-get-the-error-target-vm-failed-to-initialise/20022)

<div class="topic-metadata">

**Author:** [@laksa](https://discourse.processing.org/u/laksa)\
**Replies:** 3\
**Last updated:** [April 24, 2020, 6:54am UTC](https://discourse.processing.org/t/running-video-library-and-i-get-the-error-target-vm-failed-to-initialise/20022 "2020-04-24T06:54:25Z")

</div>

the error I got is : terminating with uncaught exception of type NSException Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help → Troubleshooting. this erro…

---

## [Question about GDropList in G4P library](https://discourse.processing.org/t/question-about-gdroplist-in-g4p-library/20045)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 2\
**Last updated:** [April 23, 2020, 1:57pm UTC](https://discourse.processing.org/t/question-about-gdroplist-in-g4p-library/20045 "2020-04-23T13:57:44Z")

</div>

I’m having trouble using a droplist. I’ve looked at the examples and read through the user guides on the web site, but I can’t see what I’m doing wrong. In all the examples I’ve tried, the droplist collapses after the us…

---

## [An Automation for my Code (Video)](https://discourse.processing.org/t/an-automation-for-my-code-video/20041)

<div class="topic-metadata">

**Author:** [@arazym](https://discourse.processing.org/u/arazym)\
**Replies:** 3\
**Last updated:** [April 22, 2020, 8:25pm UTC](https://discourse.processing.org/t/an-automation-for-my-code-video/20041 "2020-04-22T20:25:02Z")

</div>

I basically want to run a video through this Code. (See below) The idea is, to extract all the frames, run each through the script and render them back together to a Video file. So far so good. My Video is 60sec long @…

---

## [Font and shapes look pixelated](https://discourse.processing.org/t/font-and-shapes-look-pixelated/20013)

<div class="topic-metadata">

**Author:** [@lizardking93](https://discourse.processing.org/u/lizardking93)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 9:14am UTC](https://discourse.processing.org/t/font-and-shapes-look-pixelated/20013 "2020-04-22T09:14:58Z")

</div>

Hey, my sketch is looking pretty awfull. Fonts look really bad, really pixelated. I would like the project to look smooth. When I try to use background(255) on the beggining of void draw, font shows as I wish but unfortu…

---

## [Set item's color in ButtonBar (controlp5)](https://discourse.processing.org/t/set-items-color-in-buttonbar-controlp5/19935)

<div class="topic-metadata">

**Author:** [@TimoLejeune](https://discourse.processing.org/u/TimoLejeune)\
**Replies:** 3\
**Last updated:** [April 22, 2020, 7:48am UTC](https://discourse.processing.org/t/set-items-color-in-buttonbar-controlp5/19935 "2020-04-22T07:48:31Z")

</div>

Hi everyone! I am making a GUI with ControlP5 and want to make 16 buttons that each represent a color. I could just make 16 buttons, but I thought it might be nicer to do with buttonbar (or maybe checkbox). Now I want t…

---

## [Hello all I have problem with a sound](https://discourse.processing.org/t/hello-all-i-have-problem-with-a-sound/3492)

<div class="topic-metadata">

**Author:** [@cupko24](https://discourse.processing.org/u/cupko24)\
**Replies:** 6\
**Last updated:** [April 21, 2020, 5:16am UTC](https://discourse.processing.org/t/hello-all-i-have-problem-with-a-sound/3492 "2020-04-21T05:16:27Z")

</div>

I got this report, and the sound after every click is lagging more and more. sep 12, 2018 8:09:41 PM com.jsyn.devices.javasound.JavaSoundAudioDevice INFO: JSyn: default output latency set to 80 msec for Windows 7 se…

---

## [Can't get any audio using AudioIn](https://discourse.processing.org/t/cant-get-any-audio-using-audioin/8490)

<div class="topic-metadata">

**Author:** [@SkinnyPete](https://discourse.processing.org/u/SkinnyPete)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 4:54am UTC](https://discourse.processing.org/t/cant-get-any-audio-using-audioin/8490 "2020-04-21T04:54:49Z")

</div>

Hello, I am new to processing.sound and not that experienced generally so please forgive any silly mistakes. import processing.sound.\*; FFT fft; AudioIn in; SoundFile snd; int bands = 256; float\[\] spectrum = new floa…

---

## [Is there any way to get the current state of a checkbox in G4P?](https://discourse.processing.org/t/is-there-any-way-to-get-the-current-state-of-a-checkbox-in-g4p/19963)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 2\
**Last updated:** [April 20, 2020, 4:01pm UTC](https://discourse.processing.org/t/is-there-any-way-to-get-the-current-state-of-a-checkbox-in-g4p/19963 "2020-04-20T16:01:36Z")

</div>

Is there any way to get the current state of a checkbox in G4P? I can get the value of a slider or knob with the function ‘getValueF’, but I couldn’t find any corresponding function to get the value of a checkbox (ie, on…

---

## [Computer vision brightness or colour tracking](https://discourse.processing.org/t/computer-vision-brightness-or-colour-tracking/19811)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 3\
**Last updated:** [April 20, 2020, 9:53am UTC](https://discourse.processing.org/t/computer-vision-brightness-or-colour-tracking/19811 "2020-04-20T09:53:31Z")

</div>

while doing color tracking using the camera as a sensor is thr a way to get a continuous line as you move the tracker around the way i am doing is using an ellipse to follow the tracker but am not getting a continuous …

---

## [Read from 2 videos at the same time](https://discourse.processing.org/t/read-from-2-videos-at-the-same-time/19937)

<div class="topic-metadata">

**Author:** [@costachemadalin](https://discourse.processing.org/u/costachemadalin)\
**Replies:** 4\
**Last updated:** [April 20, 2020, 9:51am UTC](https://discourse.processing.org/t/read-from-2-videos-at-the-same-time/19937 "2020-04-20T09:51:11Z")

</div>

Hi, for my algorithm i want to process first frame from videoA and first frame from videoB at the same time and so on until the last frame. In my implementation i have a problem,in theory it should read alternately lik…

---

## [Pong multiple keys](https://discourse.processing.org/t/pong-multiple-keys/19915)

<div class="topic-metadata">

**Author:** [@alphakay](https://discourse.processing.org/u/alphakay)\
**Replies:** 2\
**Last updated:** [April 19, 2020, 9:12pm UTC](https://discourse.processing.org/t/pong-multiple-keys/19915 "2020-04-19T21:12:51Z")

</div>

Hey guys, im programming a pong game and I want to use multiples keys. I want for the left paddle ‘‘w’’ and ‘’ s’’ to move and for the right side up and down. it is based on coding trains pong game but i want to make it …

---

## [mousePressed() to change image on openCV](https://discourse.processing.org/t/mousepressed-to-change-image-on-opencv/19931)

<div class="topic-metadata">

**Author:** [@uwu](https://discourse.processing.org/u/uwu)\
**Replies:** 3\
**Last updated:** [April 19, 2020, 3:23pm UTC](https://discourse.processing.org/t/mousepressed-to-change-image-on-opencv/19931 "2020-04-19T15:23:54Z")

</div>

Hey, I’m just starting out with Processing! I’m trying to make a simple ‘digital fitting room’. I’m using openCV to attach the clothes to the body (it isn’t perfect but it’s enough). I want to change the clothes attach…

---

## [setSwitch(true) Error](https://discourse.processing.org/t/setswitch-true-error/19927)

<div class="topic-metadata">

**Author:** [@shoaibmirza](https://discourse.processing.org/u/shoaibmirza)\
**Replies:** 0\
**Last updated:** [April 19, 2020, 11:20am UTC](https://discourse.processing.org/t/setswitch-true-error/19927 "2020-04-19T11:20:06Z")

</div>

Hi, I’m having an issue with the controlP5 Library in processing. setSwitch(true) I’m using this line of code to make the button toggle. it works but I’m getting this error message. controlP5.ControlBroadcaster in…

---

## [Problems with video library instalation](https://discourse.processing.org/t/problems-with-video-library-instalation/19592)

<div class="topic-metadata">

**Author:** [@Ferz](https://discourse.processing.org/u/Ferz)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 8:16pm UTC](https://discourse.processing.org/t/problems-with-video-library-instalation/19592 "2020-04-18T20:16:53Z")

</div>

Excuse me if I have bad grammar, I am russian. I downloaded video library from contribution manager. When I try to use it, it shows the message: A library relies on native code that’s not available. Or only works prop…

---

## [Unable to append to an array of G4P objects](https://discourse.processing.org/t/unable-to-append-to-an-array-of-g4p-objects/19898)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 6\
**Last updated:** [April 18, 2020, 7:50pm UTC](https://discourse.processing.org/t/unable-to-append-to-an-array-of-g4p-objects/19898 "2020-04-18T19:50:05Z")

</div>

I can create arrays of G4P objects and access them using an index or subscript, but I don’t seem to be able to append to an array of G4P objects. I get an error message “cannot convert from Object to GPanel\[\]” on the lin…

---

## [Regarding using libraries for Computer vision](https://discourse.processing.org/t/regarding-using-libraries-for-computer-vision/19814)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 6:40pm UTC](https://discourse.processing.org/t/regarding-using-libraries-for-computer-vision/19814 "2020-04-18T18:40:58Z")

</div>

Are thr any libraries other than opencv that is compatible with Processing for computer vision I f any please suggest thanks

---

## [How to disable ESC key functionality in G4P child window](https://discourse.processing.org/t/how-to-disable-esc-key-functionality-in-g4p-child-window/19891)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 3\
**Last updated:** [April 18, 2020, 5:27pm UTC](https://discourse.processing.org/t/how-to-disable-esc-key-functionality-in-g4p-child-window/19891 "2020-04-18T17:27:22Z")

</div>

Problem: I want to disable the default functionality of the ESC key in a Processing sketch that creates a G4P child window. The standard method of doing this is: void keyPressed() { if (key == ESC) { key = 0; } …

---

## [FFT lacking high frequency action](https://discourse.processing.org/t/fft-lacking-high-frequency-action/19845)

<div class="topic-metadata">

**Author:** [@EKM](https://discourse.processing.org/u/EKM)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 9:31am UTC](https://discourse.processing.org/t/fft-lacking-high-frequency-action/19845 "2020-04-18T09:31:42Z")

</div>

Hey there, I’m new to Processing! I’m sending FFT analysis info to Grasshopper (a parametric tool for 3D software Rhino for anyone who isn’t familiar!) - I’m using my laptop microphone / system audio using a virtual aud…

---

## [Masking .mp4 question](https://discourse.processing.org/t/masking-mp4-question/19822)

<div class="topic-metadata">

**Author:** [@sco66](https://discourse.processing.org/u/sco66)\
**Replies:** 1\
**Last updated:** [April 16, 2020, 7:44am UTC](https://discourse.processing.org/t/masking-mp4-question/19822 "2020-04-16T07:44:00Z")

</div>

Hi forum, I have a question about masking a .mp4. Masking seems to work excellently with PImage: PImage imgMask; void setup() { size(640, 360); img = loadImage("moonwalk.jpg"); imgMask = loadImage("moonwalk.jpg…

---

## [How would you track two average points? (Shiffman tutorial)](https://discourse.processing.org/t/how-would-you-track-two-average-points-shiffman-tutorial/19786)

<div class="topic-metadata">

**Author:** [@samloos](https://discourse.processing.org/u/samloos)\
**Replies:** 2\
**Last updated:** [April 15, 2020, 10:20pm UTC](https://discourse.processing.org/t/how-would-you-track-two-average-points-shiffman-tutorial/19786 "2020-04-15T22:20:13Z")

</div>

Hello there! How would you guys track two (or multiple) average points instead of one as shown in the Shiffman video below? I have tried a lot of things but cannot seem to find the solution! Video: Code: …

---

## [How to make grids of shapes react differently from each other?](https://discourse.processing.org/t/how-to-make-grids-of-shapes-react-differently-from-each-other/19751)

<div class="topic-metadata">

**Author:** [@358sebastian](https://discourse.processing.org/u/358sebastian)\
**Replies:** 7\
**Last updated:** [April 15, 2020, 7:47am UTC](https://discourse.processing.org/t/how-to-make-grids-of-shapes-react-differently-from-each-other/19751 "2020-04-15T07:47:37Z")

</div>

Hi. I’m wondering how, if possible, to have grids of shapes react to audio in different times from each other? I have grids of Ellipses reacting to an audio input at the exact same time, but I want some Ellipses to rea…

---

## [Has anyone here ever tried handtracking with a Kinect before?(On macOs)](https://discourse.processing.org/t/has-anyone-here-ever-tried-handtracking-with-a-kinect-before-on-macos/19388)

<div class="topic-metadata">

**Author:** [@farukhcasy2](https://discourse.processing.org/u/farukhcasy2)\
**Replies:** 4\
**Last updated:** [April 14, 2020, 5:04pm UTC](https://discourse.processing.org/t/has-anyone-here-ever-tried-handtracking-with-a-kinect-before-on-macos/19388 "2020-04-14T17:04:48Z")

</div>

Hey there! My name is Sam and I am writing my thesis surrounding the subject of deformable displays and 3D interactions. My setup (at the moment) has a Kinect behind a textile screen that tracks one point on the screen a…

---

## [Time based media Question](https://discourse.processing.org/t/time-based-media-question/19731)

<div class="topic-metadata">

**Author:** [@firetryer](https://discourse.processing.org/u/firetryer)\
**Replies:** 1\
**Last updated:** [April 13, 2020, 8:23am UTC](https://discourse.processing.org/t/time-based-media-question/19731 "2020-04-13T08:23:06Z")

</div>

I was wondering how to make a code corresponding to sound. I don’t know how to start

---

## [Get all markers visible at current zoom level (unfolding)](https://discourse.processing.org/t/get-all-markers-visible-at-current-zoom-level-unfolding/18326)

<div class="topic-metadata">

**Author:** [@wcneill](https://discourse.processing.org/u/wcneill)\
**Replies:** 1\
**Last updated:** [April 13, 2020, 6:53am UTC](https://discourse.processing.org/t/get-all-markers-visible-at-current-zoom-level-unfolding/18326 "2020-04-13T06:53:07Z")

</div>

I have a very large set of features that outline city borders. Trying to convert them all to markers and load all onto a map at once seems to be bogging down my app. What I’d like to do instead is only show these city b…

---

## [LOW-HIGH tresholds](https://discourse.processing.org/t/low-high-tresholds/10596)

<div class="topic-metadata">

**Author:** [@rand\_colors](https://discourse.processing.org/u/rand_colors)\
**Replies:** 5\
**Last updated:** [April 30, 2019, 2:34pm UTC](https://discourse.processing.org/t/low-high-tresholds/10596 "2019-04-30T14:34:05Z")

</div>

Hi, I’m trying to make a two thresholds color analisis in a Pimage file. But I can’t understand what I wrote wrong or If I made a conceptual mistake. I’m a bit lost now. for(int i =0; i\<imgOrigin.pixels.length; i++…

---

## [Massive latency when doing FFT with Minim on live audio from mixer](https://discourse.processing.org/t/massive-latency-when-doing-fft-with-minim-on-live-audio-from-mixer/6513)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 13\
**Last updated:** [April 11, 2020, 9:38am UTC](https://discourse.processing.org/t/massive-latency-when-doing-fft-with-minim-on-live-audio-from-mixer/6513 "2020-04-11T09:38:46Z")

</div>

I wanted to share a program here, but I’m having trouble making it behave well. The idea is to visualize (FFT) whatever music you are playing on your system, so you don’t need to load a track into Processing, but assume…

---

## [Music vizualiser and player with ftt](https://discourse.processing.org/t/music-vizualiser-and-player-with-ftt/19050)

<div class="topic-metadata">

**Author:** [@Ysaelya](https://discourse.processing.org/u/Ysaelya)\
**Replies:** 19\
**Last updated:** [April 10, 2020, 10:29pm UTC](https://discourse.processing.org/t/music-vizualiser-and-player-with-ftt/19050 "2020-04-10T22:29:50Z")

</div>

Hello there ! So I have been given a code and the goal is to create a music player . I must add features such as play, pause, stop and volume buttons and also a basic bar with the music timer that fills in color, like …

---

## [Control P5 Buttons in P3D follows the 3D orientation of the sketch. How to make it fixed?](https://discourse.processing.org/t/control-p5-buttons-in-p3d-follows-the-3d-orientation-of-the-sketch-how-to-make-it-fixed/19618)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 7:37pm UTC](https://discourse.processing.org/t/control-p5-buttons-in-p3d-follows-the-3d-orientation-of-the-sketch-how-to-make-it-fixed/19618 "2020-04-10T19:37:41Z")

</div>

If I do the same for a normal sketch with nothing in it the button appears. But even if I write the same code for my sketch, the button does not appear. The result is following: The funny thing is if I click in appro…

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

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