# Libraries

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

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

**Page:** 67

---

## [Transition between sketches in Live Concert](https://discourse.processing.org/t/transition-between-sketches-in-live-concert/6368)

<div class="topic-metadata">

**Author:** [@subsubsub](https://discourse.processing.org/u/subsubsub)\
**Replies:** 10\
**Last updated:** [December 14, 2018, 2:17pm UTC](https://discourse.processing.org/t/transition-between-sketches-in-live-concert/6368 "2018-12-14T14:17:28Z")

</div>

Hi everyone, I just started using processing, and I plan to use it with my jazz band. (using midi from the keyboards and triggered-drums) Basically, I would like to have my computer running, and me only touching one key…

---

## [Grey filter doesn't work (Live Camera, using Open Gl and Face OSC)](https://discourse.processing.org/t/grey-filter-doesnt-work-live-camera-using-open-gl-and-face-osc/6565)

<div class="topic-metadata">

**Author:** [@eunseooooo](https://discourse.processing.org/u/eunseooooo)\
**Replies:** 0\
**Last updated:** [December 13, 2018, 2:59pm UTC](https://discourse.processing.org/t/grey-filter-doesnt-work-live-camera-using-open-gl-and-face-osc/6565 "2018-12-13T14:59:44Z")

</div>

Hello, I am working on a code using OpenGl and Face OSC. All my other features are done well, but the grey filter to webcam video does not work properly. I think there is some other way to apply a grey filter when usin…

---

## [Can't get other song to be replaced](https://discourse.processing.org/t/cant-get-other-song-to-be-replaced/6467)

<div class="topic-metadata">

**Author:** [@charmypatel](https://discourse.processing.org/u/charmypatel)\
**Replies:** 3\
**Last updated:** [December 13, 2018, 9:52am UTC](https://discourse.processing.org/t/cant-get-other-song-to-be-replaced/6467 "2018-12-13T09:52:42Z")

</div>

\*\*\*The code below has an invisible button in the middle when pushed you can select a new song to play replacing the wave in the background. The problem that I am having is I want the new song to replace the old one, but …

---

## [Trying to add this code for a button but its not running correctly](https://discourse.processing.org/t/trying-to-add-this-code-for-a-button-but-its-not-running-correctly/6305)

<div class="topic-metadata">

**Author:** [@starkid](https://discourse.processing.org/u/starkid)\
**Replies:** 3\
**Last updated:** [December 13, 2018, 1:31am UTC](https://discourse.processing.org/t/trying-to-add-this-code-for-a-button-but-its-not-running-correctly/6305 "2018-12-13T01:31:37Z")

</div>

This is code for my project one tab is called Music Project and the other is called star. I also have another file which contains code for the button that can be pushed to stop and play music. The button code on its own …

---

## [Mapping Sound to 3D Terrain generation](https://discourse.processing.org/t/mapping-sound-to-3d-terrain-generation/6426)

<div class="topic-metadata">

**Author:** [@celine1](https://discourse.processing.org/u/celine1)\
**Replies:** 2\
**Last updated:** [December 12, 2018, 9:56pm UTC](https://discourse.processing.org/t/mapping-sound-to-3d-terrain-generation/6426 "2018-12-12T21:56:40Z")

</div>

Hey everyone, I’m just a Beginner in Processing, so I have a question: is it possible to map a sound to a 3D Terrain Generation? With the help of this tutorial: https://www.youtube.com/watch?v=IKB1hWWedMk I created a …

---

## [Reset background() outside draw and setup to clear display](https://discourse.processing.org/t/reset-background-outside-draw-and-setup-to-clear-display/6515)

<div class="topic-metadata">

**Author:** [@polispace](https://discourse.processing.org/u/polispace)\
**Replies:** 5\
**Last updated:** [December 12, 2018, 7:27pm UTC](https://discourse.processing.org/t/reset-background-outside-draw-and-setup-to-clear-display/6515 "2018-12-12T19:27:35Z")

</div>

Hi there. I’m writing a code to make a wordcloud using a couple of libraries. I need to redraw the (updated) cloud after I receive a vocal input. I’m doing that by calling the function Background(); that should draw a …

---

## [Receive OSC by Processing: A little bit Help is needed](https://discourse.processing.org/t/receive-osc-by-processing-a-little-bit-help-is-needed/6512)

<div class="topic-metadata">

**Author:** [@CreCo](https://discourse.processing.org/u/CreCo)\
**Replies:** 4\
**Last updated:** [December 12, 2018, 5:01pm UTC](https://discourse.processing.org/t/receive-osc-by-processing-a-little-bit-help-is-needed/6512 "2018-12-12T17:01:01Z")

</div>

Dear Community, I’m in the moment / to stupid to get a OSC Connection between Iannix and Processing. The Iannix will send on 127.0.1.1 on Port 57120 and with the Address /cursor. I need the First Parameter which will …

---

## [Self-rulling video reader](https://discourse.processing.org/t/self-rulling-video-reader/6392)

<div class="topic-metadata">

**Author:** [@thias](https://discourse.processing.org/u/thias)\
**Replies:** 4\
**Last updated:** [December 12, 2018, 7:42am UTC](https://discourse.processing.org/t/self-rulling-video-reader/6392 "2018-12-12T07:42:54Z")

</div>

Hello everyone ! I have a complex question and i can’t find any answer. I’m trying to make a code that capture a video with webcam when you click on a specific place and create a video in data when you stop the recordi…

---

## [Data table to Midi question](https://discourse.processing.org/t/data-table-to-midi-question/6479)

<div class="topic-metadata">

**Author:** [@Eone](https://discourse.processing.org/u/Eone)\
**Replies:** 6\
**Last updated:** [December 11, 2018, 4:16pm UTC](https://discourse.processing.org/t/data-table-to-midi-question/6479 "2018-12-11T16:16:18Z")

</div>

Hi there. So I’m trying to create a project where I have some biometric data that I’ve recorded and convert it into MIDI to create a soundscape. I’ve managed to get the Midi library list part to work on its own and also …

---

## [Reading int values from audio input](https://discourse.processing.org/t/reading-int-values-from-audio-input/6476)

<div class="topic-metadata">

**Author:** [@fastfourier](https://discourse.processing.org/u/fastfourier)\
**Replies:** 6\
**Last updated:** [December 11, 2018, 1:55pm UTC](https://discourse.processing.org/t/reading-int-values-from-audio-input/6476 "2018-12-11T13:55:38Z")

</div>

hi all, Is there any library which allows me to open an audio input (either a file or a real one) and read it as integers? All the ways I’ve tried so far present the audio data as floats from -1.0 to +1.0. thanks!

---

## [Reading raw values with processing-sound library](https://discourse.processing.org/t/reading-raw-values-with-processing-sound-library/6495)

<div class="topic-metadata">

**Author:** [@fastfourier](https://discourse.processing.org/u/fastfourier)\
**Replies:** 1\
**Last updated:** [December 11, 2018, 9:27am UTC](https://discourse.processing.org/t/reading-raw-values-with-processing-sound-library/6495 "2018-12-11T09:27:42Z")

</div>

Hi again, I am trying to read audio (raw values) in from a SPDIF input (11=left, 12=right) on my audio interface (MOTU 828mk2). I am having real trouble getting hold of any inputs other than 1 and 2 (the two microphone …

---

## [\[controlp5\] How to auto submit the change in text field? Currently need to press "enter" key](https://discourse.processing.org/t/controlp5-how-to-auto-submit-the-change-in-text-field-currently-need-to-press-enter-key/6449)

<div class="topic-metadata">

**Author:** [@taeyeyta](https://discourse.processing.org/u/taeyeyta)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 7:43am UTC](https://discourse.processing.org/t/controlp5-how-to-auto-submit-the-change-in-text-field-currently-need-to-press-enter-key/6449 "2018-12-10T07:43:47Z")

</div>

I am using ControlP5 GUI library text fields it must to press enter to submit to set value How to auto submit the change in text field?

---

## [Minim does not play the files of objects without error](https://discourse.processing.org/t/minim-does-not-play-the-files-of-objects-without-error/6457)

<div class="topic-metadata">

**Author:** [@phaidon](https://discourse.processing.org/u/phaidon)\
**Replies:** 0\
**Last updated:** [December 10, 2018, 12:30am UTC](https://discourse.processing.org/t/minim-does-not-play-the-files-of-objects-without-error/6457 "2018-12-10T00:30:24Z")

</div>

Hello, i am writing this processing script with the use of minim, the concept to have a general sound that controls the scale of an ellipse with amplitude, and then when a mouse control rectangle gets inside the ellipse,…

---

## [Can Streaming video be used in OpenCV?](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 9\
**Last updated:** [December 8, 2018, 2:15am UTC](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318 "2018-12-08T02:15:59Z")

</div>

I opened the example “backgroundSubstraction” and tried to replace movie file with streaming webcam video but no luck. this line is the trouble: opencv = new OpenCV(this, video); The error says" Width(0) and height (…

---

## [Arraylist containing x sounds—How?](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311)

<div class="topic-metadata">

**Author:** [@HelaRua](https://discourse.processing.org/u/HelaRua)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 8:06pm UTC](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311 "2018-12-07T20:06:55Z")

</div>

Hiii~ Does anyone know how to make an arraylist consisting of x sounds? I just made one with images… but I can’t find the equivalent for sound. Bleh \>:-( Ty!!

---

## [Simple live capture and scanner effect with mouse](https://discourse.processing.org/t/simple-live-capture-and-scanner-effect-with-mouse/6299)

<div class="topic-metadata">

**Author:** [@saskia\_NL](https://discourse.processing.org/u/saskia_NL)\
**Replies:** 5\
**Last updated:** [December 7, 2018, 7:11pm UTC](https://discourse.processing.org/t/simple-live-capture-and-scanner-effect-with-mouse/6299 "2018-12-07T19:11:21Z")

</div>

Hi all! I hope you can help me with this! I am trying to create sort of a scanner effect. When you move the mouse from left to right you’ll move the “beam” that’s capturing. I got this simple code working so far, but no…

---

## [I'm working with Kinect and need some guidance for skeleton interaction](https://discourse.processing.org/t/im-working-with-kinect-and-need-some-guidance-for-skeleton-interaction/6310)

<div class="topic-metadata">

**Author:** [@Brave33](https://discourse.processing.org/u/Brave33)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 7:06am UTC](https://discourse.processing.org/t/im-working-with-kinect-and-need-some-guidance-for-skeleton-interaction/6310 "2018-12-07T07:06:07Z")

</div>

Hello everyone this is my first post so sorry if i make a mistake with the rules in general. First i’d like to explain my code, it’s a simple code to read skeleton with Kinect and add an image to the HEAD, i’d like to m…

---

## [Sound Mapping problem](https://discourse.processing.org/t/sound-mapping-problem/6154)

<div class="topic-metadata">

**Author:** [@Al3e](https://discourse.processing.org/u/Al3e)\
**Replies:** 6\
**Last updated:** [December 7, 2018, 1:09am UTC](https://discourse.processing.org/t/sound-mapping-problem/6154 "2018-12-07T01:09:05Z")

</div>

hello i have this code to visualize the songs according the frequency: import ddf.minim.\*; // minim library import processing.pdf.\*; // pdf export library import java.util.Calendar; // java timestamp Minim minim; // in…

---

## [The button code will not run with the rest of the code](https://discourse.processing.org/t/the-button-code-will-not-run-with-the-rest-of-the-code/6308)

<div class="topic-metadata">

**Author:** [@starkid](https://discourse.processing.org/u/starkid)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 12:58am UTC](https://discourse.processing.org/t/the-button-code-will-not-run-with-the-rest-of-the-code/6308 "2018-12-07T00:58:55Z")

</div>

I’m trying to run the first 2 sections of code with the last section. The last section is a button, I tried rearranging everything and am still have trouble getting it to run. Please help in any way. //minim is the audi…

---

## [Trying to find the easiest way to export custom maps](https://discourse.processing.org/t/trying-to-find-the-easiest-way-to-export-custom-maps/6329)

<div class="topic-metadata">

**Author:** [@quorumetrix](https://discourse.processing.org/u/quorumetrix)\
**Replies:** 4\
**Last updated:** [December 6, 2018, 9:45pm UTC](https://discourse.processing.org/t/trying-to-find-the-easiest-way-to-export-custom-maps/6329 "2018-12-06T21:45:22Z")

</div>

Hi all, Long-time Processing user, but new to the forum. I’m wondering if someone can give me a suggestion of the best way to accomplish this. I am visualizing a series of GPS coordinates, spanning a large part of the…

---

## [Multiple draggable images (drags once and locks)](https://discourse.processing.org/t/multiple-draggable-images-drags-once-and-locks/6001)

<div class="topic-metadata">

**Author:** [@HelaRua](https://discourse.processing.org/u/HelaRua)\
**Replies:** 6\
**Last updated:** [December 6, 2018, 5:20pm UTC](https://discourse.processing.org/t/multiple-draggable-images-drags-once-and-locks/6001 "2018-12-06T17:20:53Z")

</div>

Hello! I’ve got many images—over 30—and want to drag each one of them independently across the canvas. Once you move one of the images, by releasing it becomes locked at current mouseX and Y coordinates and can’t be mov…

---

## [How to dynamically resize GTextField?](https://discourse.processing.org/t/how-to-dynamically-resize-gtextfield/6353)

<div class="topic-metadata">

**Author:** [@notcatfish2017](https://discourse.processing.org/u/notcatfish2017)\
**Replies:** 1\
**Last updated:** [December 6, 2018, 12:24pm UTC](https://discourse.processing.org/t/how-to-dynamically-resize-gtextfield/6353 "2018-12-06T12:24:44Z")

</div>

Hi, I’m using the G4P library and I’m trying to create a text field that will automatically resize when the user enters more and more text. However, I am unable to find a setWidth() method, is there any other way that I…

---

## [Trying to get animation to stop](https://discourse.processing.org/t/trying-to-get-animation-to-stop/6282)

<div class="topic-metadata">

**Author:** [@charmypatel](https://discourse.processing.org/u/charmypatel)\
**Replies:** 11\
**Last updated:** [December 5, 2018, 12:21pm UTC](https://discourse.processing.org/t/trying-to-get-animation-to-stop/6282 "2018-12-05T12:21:48Z")

</div>

have two tabs here, one is the sketch and the other is Star. I’m trying to have the starfield in the background to only be there half way into the song. After the songs are played halfway, I want to have a different anim…

---

## [Can Video and Text Co-exist?](https://discourse.processing.org/t/can-video-and-text-co-exist/5335)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 21\
**Last updated:** [December 5, 2018, 4:23am UTC](https://discourse.processing.org/t/can-video-and-text-co-exist/5335 "2018-12-05T04:23:01Z")

</div>

I have been using Daniel Example “sketch\_11\_5\_AveragePixelColorTracking” for blob tracking. I thought I could get myself a couple of text lines under the video in the sketch to show XY etc… The text displays but does n…

---

## [How to create the code of the following video effect?](https://discourse.processing.org/t/how-to-create-the-code-of-the-following-video-effect/5999)

<div class="topic-metadata">

**Author:** [@Malvan](https://discourse.processing.org/u/Malvan)\
**Replies:** 2\
**Last updated:** [December 5, 2018, 3:07am UTC](https://discourse.processing.org/t/how-to-create-the-code-of-the-following-video-effect/5999 "2018-12-05T03:07:50Z")

</div>

Hello there! I was searching through the internet to find anything useful regarding to one of my school projects. I want to create something like this: https://vimeo.com/8218843 The problem is, I don’t really know wher…

---

## [IntelliJ & Open Kinect for Processing](https://discourse.processing.org/t/intellij-open-kinect-for-processing/6303)

<div class="topic-metadata">

**Author:** [@ZZlm0Q](https://discourse.processing.org/u/ZZlm0Q)\
**Replies:** 0\
**Last updated:** [December 4, 2018, 9:08pm UTC](https://discourse.processing.org/t/intellij-open-kinect-for-processing/6303 "2018-12-04T21:08:04Z")

</div>

Hi all, I’m using Processing and IntelliJ due to the availability of Gradle (I’m not programming for Android, though) and because Processing’s IDE lacks some features that other development environments have. I’ve impo…

---

## [Trying to get the button to show up](https://discourse.processing.org/t/trying-to-get-the-button-to-show-up/6281)

<div class="topic-metadata">

**Author:** [@charmypatel](https://discourse.processing.org/u/charmypatel)\
**Replies:** 3\
**Last updated:** [December 4, 2018, 7:51pm UTC](https://discourse.processing.org/t/trying-to-get-the-button-to-show-up/6281 "2018-12-04T19:51:19Z")

</div>

\*\* I have this code below and I am trying to get the button to show up but it wont run. I’m getting an error that says expecting EOF, found “last\_sum”. I’m not sure how to fix this. The error is talking about this line:…

---

## [Trap events with getHat in game control plus](https://discourse.processing.org/t/trap-events-with-gethat-in-game-control-plus/6138)

<div class="topic-metadata">

**Author:** [@bryan](https://discourse.processing.org/u/bryan)\
**Replies:** 5\
**Last updated:** [December 4, 2018, 2:07pm UTC](https://discourse.processing.org/t/trap-events-with-gethat-in-game-control-plus/6138 "2018-12-04T14:07:15Z")

</div>

Hi, i want to know if there’s a way to trap events with the dpad button in the game control plus library. i can trap events with buttons, for example the key A of the xbox controller might look like this: xbox.getButton(…

---

## [How do I program the arrow keys to move object instead of mouseX and mouseY?](https://discourse.processing.org/t/how-do-i-program-the-arrow-keys-to-move-object-instead-of-mousex-and-mousey/6267)

<div class="topic-metadata">

**Author:** [@alxsnol](https://discourse.processing.org/u/alxsnol)\
**Replies:** 3\
**Last updated:** [December 4, 2018, 12:40am UTC](https://discourse.processing.org/t/how-do-i-program-the-arrow-keys-to-move-object-instead-of-mousex-and-mousey/6267 "2018-12-04T00:40:00Z")

</div>

import processing.video.\*; Capture cam; void setup() { size(560, 360); cam = new Capture(this, 560, 360, 30); cam.start(); } void draw() { if (cam.available()) { cam.read(); loadPixels(); cam.load…

---

## [How to save 120 FFT values per second at 30 frames per second?](https://discourse.processing.org/t/how-to-save-120-fft-values-per-second-at-30-frames-per-second/6087)

<div class="topic-metadata">

**Author:** [@Jan](https://discourse.processing.org/u/Jan)\
**Replies:** 2\
**Last updated:** [November 30, 2018, 8:55am UTC](https://discourse.processing.org/t/how-to-save-120-fft-values-per-second-at-30-frames-per-second/6087 "2018-11-30T08:55:48Z")

</div>

My sketch will run at 30 frames per second. (much more will not be possible, its pretty much to render) But i need very detailed audio data of the audio input. If i save the values of the spectrum bands in every draw()…

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

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