# Libraries

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

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

**Page:** 62

---

## [A Circle tile instead of square one](https://discourse.processing.org/t/a-circle-tile-instead-of-square-one/9140)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 4\
**Last updated:** [March 14, 2019, 7:36am UTC](https://discourse.processing.org/t/a-circle-tile-instead-of-square-one/9140 "2019-03-14T07:36:30Z")

</div>

here’s my hexagonal tiling in a square shape, I would like to convert the square shape into a circle one, can anyone help me? float unitSize = 15; float eqTriH = 0.8660254; int w = 600; int h = 600; int cellsX = int(w/(…

---

## [Image processing, find coordinates in an image](https://discourse.processing.org/t/image-processing-find-coordinates-in-an-image/9235)

<div class="topic-metadata">

**Author:** [@Daniel\_Kamel](https://discourse.processing.org/u/Daniel_Kamel)\
**Replies:** 4\
**Last updated:** [March 13, 2019, 7:11pm UTC](https://discourse.processing.org/t/image-processing-find-coordinates-in-an-image/9235 "2019-03-13T19:11:22Z")

</div>

Hello everyone, I’m new to image processing so any help would be appreciated, I have an image with 2 red lines in it(the image only contains those 2 lines with a black or white background), what method or algorithm would…

---

## [G4P Question - Create / hide second screen](https://discourse.processing.org/t/g4p-question-create-hide-second-screen/9132)

<div class="topic-metadata">

**Author:** [@WyattStorch](https://discourse.processing.org/u/WyattStorch)\
**Replies:** 7\
**Last updated:** [March 11, 2019, 4:44pm UTC](https://discourse.processing.org/t/g4p-question-create-hide-second-screen/9132 "2019-03-11T16:44:59Z")

</div>

@quark I apologize in advance for my newbiness. I’m using Processing 3.5.3, G4P V4.2.1, and GUI Builder 4.3 in Windows 7 64 bit. I love your utility but in my newbiness I’m having a devil of a time trying to figure it o…

---

## [Cannot find a class or type names "Particle"](https://discourse.processing.org/t/cannot-find-a-class-or-type-names-particle/9192)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 1\
**Last updated:** [March 11, 2019, 1:37pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-names-particle/9192 "2019-03-11T13:37:29Z")

</div>

Hi there, I’m following Daniel’s tutorials on Youtube for motion capture but I can’t get this right. I’ve read it and compared my code to his several times but keep getting the error that there’s no class or type named …

---

## [Warning on Shapes3D](https://discourse.processing.org/t/warning-on-shapes3d/9112)

<div class="topic-metadata">

**Author:** [@spiderdab](https://discourse.processing.org/u/spiderdab)\
**Replies:** 5\
**Last updated:** [March 11, 2019, 3:10am UTC](https://discourse.processing.org/t/warning-on-shapes3d/9112 "2019-03-11T03:10:22Z")

</div>

Hi, I’m trying to use Shapes3D library from Quark to use the pick function, but in the example, on the first click this warning is shown: smooth() can only be used before beginDraw() and no pick is performed. is it …

---

## [Frequencies not adding up](https://discourse.processing.org/t/frequencies-not-adding-up/9170)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 3\
**Last updated:** [March 11, 2019, 12:49am UTC](https://discourse.processing.org/t/frequencies-not-adding-up/9170 "2019-03-11T00:49:13Z")

</div>

Hi. I’m trying to make sure that I know where certain audio frequencies are located when I load an audio clip. The musical note A4 is 440Hz. If the frequencies of a clip with a sample rate of 44100Hz are split into 1024…

---

## [Motion Detection with Clusters](https://discourse.processing.org/t/motion-detection-with-clusters/9071)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 8:43pm UTC](https://discourse.processing.org/t/motion-detection-with-clusters/9071 "2019-03-10T20:43:59Z")

</div>

Hi there, I’m trying to write code that will form a cluster of ellipses in the shape of a person as they approach the screen. I’m okay with the part of motion detection, but I can’t work out how to make the clusters app…

---

## [How to move object according to time of sound](https://discourse.processing.org/t/how-to-move-object-according-to-time-of-sound/8964)

<div class="topic-metadata">

**Author:** [@CodeTime](https://discourse.processing.org/u/CodeTime)\
**Replies:** 3\
**Last updated:** [March 10, 2019, 4:26pm UTC](https://discourse.processing.org/t/how-to-move-object-according-to-time-of-sound/8964 "2019-03-10T16:26:16Z")

</div>

So I am trying to make an audio player and am on the part with the time indicator at the bottom which tells how far you are into the song. The main problem is that the songs all have different lengths but the time indica…

---

## [Is the variable "width" not defined?](https://discourse.processing.org/t/is-the-variable-width-not-defined/9083)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [March 9, 2019, 9:43pm UTC](https://discourse.processing.org/t/is-the-variable-width-not-defined/9083 "2019-03-09T21:43:31Z")

</div>

I’m reading this piece of code and somehow I’m confused. I can not find the definition of “width” anywhere… ////// MAIN INPUTS /////// String directoryName = "${DIRECTORY\_NAME}"; // directory name String date = "${DATE…

---

## [Combined code error: "unexpected token: void"](https://discourse.processing.org/t/combined-code-error-unexpected-token-void/9058)

<div class="topic-metadata">

**Author:** [@20ramoant1](https://discourse.processing.org/u/20ramoant1)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:56pm UTC](https://discourse.processing.org/t/combined-code-error-unexpected-token-void/9058 "2019-03-09T20:56:35Z")

</div>

I have written a code for a project and when combining the codes I got a “unexpected token: void” error. I get and error on the void “cansleft() {”. Pleas helppp Here is my code import processing.sound.\*; SoundFile fil…

---

## [Can't use commons math complex numbers](https://discourse.processing.org/t/cant-use-commons-math-complex-numbers/9124)

<div class="topic-metadata">

**Author:** [@aradarbel10](https://discourse.processing.org/u/aradarbel10)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:26am UTC](https://discourse.processing.org/t/cant-use-commons-math-complex-numbers/9124 "2019-03-09T08:26:31Z")

</div>

Hello. I recently downloaded commons math liubrary for java and added it to processing. I can import it fine, but when I try writing code the NullPointerException error is sent. I tried creating a simple complex functi…

---

## [ArtNet port change?](https://discourse.processing.org/t/artnet-port-change/8781)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 9\
**Last updated:** [March 8, 2019, 5:46pm UTC](https://discourse.processing.org/t/artnet-port-change/8781 "2019-03-08T17:46:36Z")

</div>

Hi, i have a dude using ArtNet library… How i change the UDP port??? Thanks in advance.

---

## [G4P textField focus and move caret](https://discourse.processing.org/t/g4p-textfield-focus-and-move-caret/9100)

<div class="topic-metadata">

**Author:** [@SoulT](https://discourse.processing.org/u/SoulT)\
**Replies:** 1\
**Last updated:** [March 8, 2019, 9:30am UTC](https://discourse.processing.org/t/g4p-textfield-focus-and-move-caret/9100 "2019-03-08T09:30:19Z")

</div>

Howdy all, I’ve just started using G4P in a small personal project of mine, and I’m trying to set up a basic ‘console’ type UI/system for it. The issue: I’m trying to setup a system where the user can start typing, an…

---

## [How to transfer between screen coordinate (x,y) positions and map location (latitude, langitude) pairs using Unfolding map?](https://discourse.processing.org/t/how-to-transfer-between-screen-coordinate-x-y-positions-and-map-location-latitude-langitude-pairs-using-unfolding-map/9089)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [March 8, 2019, 7:55am UTC](https://discourse.processing.org/t/how-to-transfer-between-screen-coordinate-x-y-positions-and-map-location-latitude-langitude-pairs-using-unfolding-map/9089 "2019-03-08T07:55:52Z")

</div>

This is really a simple/naive question, but I’m fairly new and please be kind with your responses. More specifically, the above image explains the screen (x,y) coordinates. the second image above explains the map l…

---

## [Strange behavior loading video files from data path](https://discourse.processing.org/t/strange-behavior-loading-video-files-from-data-path/8996)

<div class="topic-metadata">

**Author:** [@grumo](https://discourse.processing.org/u/grumo)\
**Replies:** 1\
**Last updated:** [March 6, 2019, 2:35am UTC](https://discourse.processing.org/t/strange-behavior-loading-video-files-from-data-path/8996 "2019-03-06T02:35:59Z")

</div>

I’m making a script that mixes different videos on screen. The script works if I load the videos from the “data” path, but if i use subfolders like “data/something” I get an error (despite the files are loading correctly…

---

## [Newb- AI for 2d Games - player object to be recognized by physics engine](https://discourse.processing.org/t/newb-ai-for-2d-games-player-object-to-be-recognized-by-physics-engine/8821)

<div class="topic-metadata">

**Author:** [@seeblank](https://discourse.processing.org/u/seeblank)\
**Replies:** 7\
**Last updated:** [March 5, 2019, 7:44pm UTC](https://discourse.processing.org/t/newb-ai-for-2d-games-player-object-to-be-recognized-by-physics-engine/8821 "2019-03-05T19:44:11Z")

</div>

hello sketchers, I am a newb here, newb in programming. I have a project for one of my classes, and I am using Quarks AI for 2D Games to get a basic functionality. I am unsure how many people have used this library yet, …

---

## [Art Installation, Long Run Times](https://discourse.processing.org/t/art-installation-long-run-times/5101)

<div class="topic-metadata">

**Author:** [@Phospheros](https://discourse.processing.org/u/Phospheros)\
**Replies:** 7\
**Last updated:** [March 5, 2019, 6:43pm UTC](https://discourse.processing.org/t/art-installation-long-run-times/5101 "2019-03-05T18:43:22Z")

</div>

Hi All, I’m working on a project with an artist, and my contribution will be an interactive projection w/ Kinect. The sketch is in P5v3 (Java), and should be expected to run continuously for 8+ hrs. a day. The exhibitio…

---

## [Help with button objects](https://discourse.processing.org/t/help-with-button-objects/8839)

<div class="topic-metadata">

**Author:** [@plux](https://discourse.processing.org/u/plux)\
**Replies:** 3\
**Last updated:** [March 5, 2019, 2:13am UTC](https://discourse.processing.org/t/help-with-button-objects/8839 "2019-03-05T02:13:45Z")

</div>

Hi, I have a class to define some buttons and I have my main application displaying a few of these (grouped in 2 separate arrays). Everything works fine except I’d like the “currently” active button to display a red line…

---

## [Mouse over in Control p5 scrollablelist](https://discourse.processing.org/t/mouse-over-in-control-p5-scrollablelist/8950)

<div class="topic-metadata">

**Author:** [@larry](https://discourse.processing.org/u/larry)\
**Replies:** 0\
**Last updated:** [March 4, 2019, 11:21pm UTC](https://discourse.processing.org/t/mouse-over-in-control-p5-scrollablelist/8950 "2019-03-04T23:21:45Z")

</div>

Hi, I’m trying to access label names using mouseover in a scrollable list, I have found the following but can’t get it to work - can anyone show me a working example of this? Thanks public class MyScrollableList extend…

---

## [Track relative motion of fingers : Leapmotion](https://discourse.processing.org/t/track-relative-motion-of-fingers-leapmotion/8718)

<div class="topic-metadata">

**Author:** [@piyushpohekar3003](https://discourse.processing.org/u/piyushpohekar3003)\
**Replies:** 5\
**Last updated:** [March 4, 2019, 5:08pm UTC](https://discourse.processing.org/t/track-relative-motion-of-fingers-leapmotion/8718 "2019-03-04T17:08:48Z")

</div>

Please refer the code available at the link above. I wanted to track finger-tips independently. But when I tried using ‘specific finger’ part of the code, i notices that the PVector values were changing even if I mov…

---

## [Conflict between a TTS and Sound Object](https://discourse.processing.org/t/conflict-between-a-tts-and-sound-object/8597)

<div class="topic-metadata">

**Author:** [@gbv34](https://discourse.processing.org/u/gbv34)\
**Replies:** 2\
**Last updated:** [March 4, 2019, 8:34am UTC](https://discourse.processing.org/t/conflict-between-a-tts-and-sound-object/8597 "2019-03-04T08:34:55Z")

</div>

Hello, I’m currently working on a Text To Speech project. I want to change the voice in real time, adding some effects in a sound software (Live). For that purpose, I use Soundflower to route the sound from Processing t…

---

## [Send JSON over HTTP in Processing](https://discourse.processing.org/t/send-json-over-http-in-processing/8774)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 5\
**Last updated:** [March 3, 2019, 12:13am UTC](https://discourse.processing.org/t/send-json-over-http-in-processing/8774 "2019-03-03T00:13:20Z")

</div>

Hey! Looking for tutorials on how to use HTTP to send images and/or data in JSON-format. Locally/localhost is fine, not over the internet. All hints much appreciated :slight\_smile:

---

## [Issue with Geomerative library](https://discourse.processing.org/t/issue-with-geomerative-library/8684)

<div class="topic-metadata">

**Author:** [@lolonulu](https://discourse.processing.org/u/lolonulu)\
**Replies:** 3\
**Last updated:** [March 1, 2019, 5:25pm UTC](https://discourse.processing.org/t/issue-with-geomerative-library/8684 "2019-03-01T17:25:25Z")

</div>

Hello, I face an issue I don’t mange to solve. I show a multilines text written with the Geomerative library, to each sentence corresponds a sound, when the stanza is written the program switch to the next one. My quest…

---

## [Problem with AI for 2D games libr](https://discourse.processing.org/t/problem-with-ai-for-2d-games-libr/2068)

<div class="topic-metadata">

**Author:** [@Tymek](https://discourse.processing.org/u/Tymek)\
**Replies:** 1\
**Last updated:** [February 28, 2019, 11:00pm UTC](https://discourse.processing.org/t/problem-with-ai-for-2d-games-libr/2068 "2019-02-28T23:00:21Z")

</div>

Hello, im trying to make bot for simple pong game. I have problem with reseting bots position after scoring point. Any suggestions? //main func. import game2dai.\*; import game2dai.entities.\*; import game2dai.entityshap…

---

## [Sending images/JSON data over OSC w. oscP5?](https://discourse.processing.org/t/sending-images-json-data-over-osc-w-oscp5/8734)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 2\
**Last updated:** [February 28, 2019, 5:54pm UTC](https://discourse.processing.org/t/sending-images-json-data-over-osc-w-oscp5/8734 "2019-02-28T17:54:30Z")

</div>

Hi Perhaps a bit of a weird question, but are there any tutorials on how to send images and/or data in JSON-format over OSC using the oscP5 library? Or anyone here who has experience doing that kind of thing?

---

## [\[SOLVED\] Using minim getLineIn() to listen to the speaker output](https://discourse.processing.org/t/solved-using-minim-getlinein-to-listen-to-the-speaker-output/8723)

<div class="topic-metadata">

**Author:** [@Xabdro](https://discourse.processing.org/u/Xabdro)\
**Replies:** 2\
**Last updated:** [February 26, 2019, 4:21pm UTC](https://discourse.processing.org/t/solved-using-minim-getlinein-to-listen-to-the-speaker-output/8723 "2019-02-26T16:21:31Z")

</div>

I want to use minim to visualise the music playing on my computer from spotify. I have looked around online and the only way I have found to do this is to use stereo mix which my computer doesn’t support. I have found a …

---

## [SimpleOpenNI - Kinect depth map size](https://discourse.processing.org/t/simpleopenni-kinect-depth-map-size/8722)

<div class="topic-metadata">

**Author:** [@Jackieh111](https://discourse.processing.org/u/Jackieh111)\
**Replies:** 0\
**Last updated:** [February 25, 2019, 9:44pm UTC](https://discourse.processing.org/t/simpleopenni-kinect-depth-map-size/8722 "2019-02-25T21:44:04Z")

</div>

I’m using a Kinect for Windows on OSx with SimpleOpenNI - can anyone tell me why the depthMap is giving me a size of 640x480 when I am expecting it to be 512x424 which is the resolution for Kinect2?

---

## [How to mute minim filter](https://discourse.processing.org/t/how-to-mute-minim-filter/8610)

<div class="topic-metadata">

**Author:** [@b\_and\_z](https://discourse.processing.org/u/b_and_z)\
**Replies:** 6\
**Last updated:** [February 25, 2019, 5:30pm UTC](https://discourse.processing.org/t/how-to-mute-minim-filter/8610 "2019-02-25T17:30:01Z")

</div>

So I am building a synthesizer using the minim and oscP5 (controlling the synthesizer via touchOSC). Now I have this minim bandPass Filter set up, but I only want the filter to be active when a certain button is active (…

---

## [New Mac, Unable to Use Sound Library!](https://discourse.processing.org/t/new-mac-unable-to-use-sound-library/8695)

<div class="topic-metadata">

**Author:** [@storchzr](https://discourse.processing.org/u/storchzr)\
**Replies:** 1\
**Last updated:** [February 25, 2019, 12:50am UTC](https://discourse.processing.org/t/new-mac-unable-to-use-sound-library/8695 "2019-02-25T00:50:02Z")

</div>

Can anyone help me with this? I have a piece of code that uses input from the mic to create graphics. It worked on my old computer but won’t work on the new mac with touchbar for some reason. // Example 20-5: Live Input…

---

## [Scrubbing video with Microphone input](https://discourse.processing.org/t/scrubbing-video-with-microphone-input/8060)

<div class="topic-metadata">

**Author:** [@Sigsound](https://discourse.processing.org/u/Sigsound)\
**Replies:** 3\
**Last updated:** [February 25, 2019, 12:25am UTC](https://discourse.processing.org/t/scrubbing-video-with-microphone-input/8060 "2019-02-25T00:25:12Z")

</div>

Hello! I’m trying to create an animation that goes from very little complexity to very great complexity based on the volume level in a room. I started with the processing.sound library and this basic tutorial for mic i…

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

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