# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=338

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

**Page:** 339

---

## [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 …

---

## [Jumping from processing to c++](https://discourse.processing.org/t/jumping-from-processing-to-c/6544)

<div class="topic-metadata">

**Author:** [@bryan](https://discourse.processing.org/u/bryan)\
**Replies:** 8\
**Last updated:** [December 13, 2018, 8:42am UTC](https://discourse.processing.org/t/jumping-from-processing-to-c/6544 "2018-12-13T08:42:46Z")

</div>

Hi there, i want to start learning c++, in the past i studied it, but felt that it was very complicated, and get frustrated. Then i start learning processing and now i think that i have good knowledge, and understanding …

---

## [AI-Post-Processing Job of Lunar Eclipse Foto Series](https://discourse.processing.org/t/ai-post-processing-job-of-lunar-eclipse-foto-series/2179)

<div class="topic-metadata">

**Author:** [@consuli](https://discourse.processing.org/u/consuli)\
**Replies:** 2\
**Last updated:** [December 13, 2018, 8:20am UTC](https://discourse.processing.org/t/ai-post-processing-job-of-lunar-eclipse-foto-series/2179 "2018-12-13T08:20:08Z")

</div>

Hello! I’ve made an interesting foto series of the lunar eclipse yesterday, when the moon has left the eclipse and dropped into light again. The conditions have been perfect. Unfortunately I did not have a professional…

---

## [Copying from NYTimes API JSON to a local JSON file](https://discourse.processing.org/t/copying-from-nytimes-api-json-to-a-local-json-file/6462)

<div class="topic-metadata">

**Author:** [@Niloo](https://discourse.processing.org/u/Niloo)\
**Replies:** 2\
**Last updated:** [December 13, 2018, 7:19am UTC](https://discourse.processing.org/t/copying-from-nytimes-api-json-to-a-local-json-file/6462 "2018-12-13T07:19:09Z")

</div>

Hi all, I really appreciate if you take the time and help me solve this issue as I have spent hours and haven’t made any progress. What’s the project I’m creating a data visualization project using New York Times Arti…

---

## [Has anyone used the mousewheel to select between shapes onscreen](https://discourse.processing.org/t/has-anyone-used-the-mousewheel-to-select-between-shapes-onscreen/6547)

<div class="topic-metadata">

**Author:** [@CalvinBreene](https://discourse.processing.org/u/CalvinBreene)\
**Replies:** 4\
**Last updated:** [December 13, 2018, 4:28am UTC](https://discourse.processing.org/t/has-anyone-used-the-mousewheel-to-select-between-shapes-onscreen/6547 "2018-12-13T04:28:20Z")

</div>

Hi Experts, I have 3 rectangles onscreen and want to use the mouse wheel to highlight each one in turn. Has anyone done something similar? I would appreciate an example if possible. Thank you. KB

---

## [I need help coming up with a very simple little polymorphism animation](https://discourse.processing.org/t/i-need-help-coming-up-with-a-very-simple-little-polymorphism-animation/6291)

<div class="topic-metadata">

**Author:** [@starkid](https://discourse.processing.org/u/starkid)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 1:02am UTC](https://discourse.processing.org/t/i-need-help-coming-up-with-a-very-simple-little-polymorphism-animation/6291 "2018-12-07T01:02:48Z")

</div>

I need to make a very simple and small animation using polymorphism. I have looked at examples and watched video but most of them are too complicated or large, and I want something small. Any suggestions on what I could …

---

## [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 …

---

## [What is the keyword "do"](https://discourse.processing.org/t/what-is-the-keyword-do/6433)

<div class="topic-metadata">

**Author:** [@dragon\_hatcher](https://discourse.processing.org/u/dragon_hatcher)\
**Replies:** 7\
**Last updated:** [December 12, 2018, 11:12pm UTC](https://discourse.processing.org/t/what-is-the-keyword-do/6433 "2018-12-12T23:12:21Z")

</div>

I can see that when I type “do” in processing it is highlighted so it is a keyword however I can’t find any reference to in the manual or online. I was wondering what it does.

---

## [Calling exit() using FX2D renderer doesn't stop program](https://discourse.processing.org/t/calling-exit-using-fx2d-renderer-doesnt-stop-program/6414)

<div class="topic-metadata">

**Author:** [@Sarah](https://discourse.processing.org/u/Sarah)\
**Replies:** 8\
**Last updated:** [December 12, 2018, 10:26pm UTC](https://discourse.processing.org/t/calling-exit-using-fx2d-renderer-doesnt-stop-program/6414 "2018-12-12T22:26:30Z")

</div>

Hi, I’ve noticed that when I call exit(); in a program using the FX2D renderer, an error appears in the console: Not on FX application thread; currentThread = JavaFX Application Thread. This error usually appears when t…

---

## [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 …

---

## [Image processing and pattern recognition](https://discourse.processing.org/t/image-processing-and-pattern-recognition/6412)

<div class="topic-metadata">

**Author:** [@bryan](https://discourse.processing.org/u/bryan)\
**Replies:** 3\
**Last updated:** [December 12, 2018, 9:50pm UTC](https://discourse.processing.org/t/image-processing-and-pattern-recognition/6412 "2018-12-12T21:50:06Z")

</div>

Hi, I’m going to start learning this topics, and wanted to know, where can I start? I only know a little bit of processing, Matlab and c++(too llitle). Is processing powerful enough to solve this tasks? I want to focus i…

---

## [Compatibility with Mac OS Mojave](https://discourse.processing.org/t/compatibility-with-mac-os-mojave/6400)

<div class="topic-metadata">

**Author:** [@ktgmonster](https://discourse.processing.org/u/ktgmonster)\
**Replies:** 3\
**Last updated:** [December 12, 2018, 9:39pm UTC](https://discourse.processing.org/t/compatibility-with-mac-os-mojave/6400 "2018-12-12T21:39:25Z")

</div>

Hi All, I have a sketch which plays a video of animal behaviour and allows you to record keypresses and the timestamp for analysis. The first part of the sketch is a gui allowing loading of a csv file with the keypresses…

---

## [Scaling on High-DPI Monitor is Incorrect](https://discourse.processing.org/t/scaling-on-high-dpi-monitor-is-incorrect/6407)

<div class="topic-metadata">

**Author:** [@RecursiveCursive](https://discourse.processing.org/u/RecursiveCursive)\
**Replies:** 1\
**Last updated:** [December 12, 2018, 8:58pm UTC](https://discourse.processing.org/t/scaling-on-high-dpi-monitor-is-incorrect/6407 "2018-12-12T20:58:23Z")

</div>

I wrote a sketch using Processing 2 but rather than using the Processing IDE, I used Eclipse. I now want to export the sketch as a jar file, but I am having an annoying issue when trying to run the resulting jar on a dis…

---

## [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 …

---

## [Object stop upon collision?](https://discourse.processing.org/t/object-stop-upon-collision/6498)

<div class="topic-metadata">

**Author:** [@MartinM](https://discourse.processing.org/u/MartinM)\
**Replies:** 7\
**Last updated:** [December 12, 2018, 1:51pm UTC](https://discourse.processing.org/t/object-stop-upon-collision/6498 "2018-12-12T13:51:02Z")

</div>

I am currently having a problem with collision, I do not want an object to pass through another of which I understand the basics of. For instance: nt\[\] player1; int\[\] player2; int p1width = 50; int p1height = 50; int p2…

---

## [Random circles using arrays](https://discourse.processing.org/t/random-circles-using-arrays/6536)

<div class="topic-metadata">

**Author:** [@Jrekz](https://discourse.processing.org/u/Jrekz)\
**Replies:** 1\
**Last updated:** [December 12, 2018, 1:13pm UTC](https://discourse.processing.org/t/random-circles-using-arrays/6536 "2018-12-12T13:13:39Z")

</div>

Hello, So I have these tasks: 1. When the sketch starts, a circle with a random size, position and border color is displayed in the window and a first circle with a radius of 10 pixels on the mouse position. 2. Every…

---

## [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…

---

## [Whack-a-Mole Game. Make Mole Change Color When Hit](https://discourse.processing.org/t/whack-a-mole-game-make-mole-change-color-when-hit/6523)

<div class="topic-metadata">

**Author:** [@Rapide](https://discourse.processing.org/u/Rapide)\
**Replies:** 2\
**Last updated:** [December 12, 2018, 6:00am UTC](https://discourse.processing.org/t/whack-a-mole-game-make-mole-change-color-when-hit/6523 "2018-12-12T06:00:58Z")

</div>

I’m making a whack a mole game for my class assignment. I’m pretty much finished besides the final step, which is to make the mole change color when it is clicked on by the mouse, but I’m having trouble doing so. I want…

---

## [MazzSweeper Game](https://discourse.processing.org/t/mazzsweeper-game/6519)

<div class="topic-metadata">

**Author:** [@Jolak101](https://discourse.processing.org/u/Jolak101)\
**Replies:** 7\
**Last updated:** [December 11, 2018, 11:32pm UTC](https://discourse.processing.org/t/mazzsweeper-game/6519 "2018-12-11T23:32:35Z")

</div>

Hey, I am attempting to create a Minesweeper game with a chemistry twist to it on processing. In my code, the if statement to unveil what is hidden under the square (bomb or number) did not work. I attempted to println w…

---

## [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!

---

## [StringDict.get() Problem](https://discourse.processing.org/t/stringdict-get-problem/6435)

<div class="topic-metadata">

**Author:** [@JoshElliott](https://discourse.processing.org/u/JoshElliott)\
**Replies:** 9\
**Last updated:** [December 11, 2018, 11:01am UTC](https://discourse.processing.org/t/stringdict-get-problem/6435 "2018-12-11T11:01:21Z")

</div>

Hi All, Sorry, I’m pretty new to all this. I have a project I’m working on that saves keyboard input to a StringDict with a keyword for each of a number of associated textfield objects. It seems to be mostly operationa…

---

## [Processing compiled .exe will not start in win7 startup folder](https://discourse.processing.org/t/processing-compiled-exe-will-not-start-in-win7-startup-folder/6450)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 12\
**Last updated:** [December 11, 2018, 10:33am UTC](https://discourse.processing.org/t/processing-compiled-exe-will-not-start-in-win7-startup-folder/6450 "2018-12-11T10:33:29Z")

</div>

Greets to all! I have a Processing project completed and exported as a Win32 .dot-exe file. It is being run on a Lenovo Atom processor. Newly installed Win7. Absolutely nothing I’ve tried will allow this program to r…

---

## [Zooming + Scrolling in a Procedural Drawing Application need some help finishing off](https://discourse.processing.org/t/zooming-scrolling-in-a-procedural-drawing-application-need-some-help-finishing-off/5177)

<div class="topic-metadata">

**Author:** [@FyodorKrasniy](https://discourse.processing.org/u/FyodorKrasniy)\
**Replies:** 3\
**Last updated:** [December 11, 2018, 10:06am UTC](https://discourse.processing.org/t/zooming-scrolling-in-a-procedural-drawing-application-need-some-help-finishing-off/5177 "2018-12-11T10:06:22Z")

</div>

Hi guys, I made a post a long while ago working on the zoom interface for this drawing app Ive been working on, Ive got it closish to what I want but am having issues with figuring out how to make the zoom focus on the m…

---

## [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 …

---

## [Loop inside class instancing problem](https://discourse.processing.org/t/loop-inside-class-instancing-problem/6494)

<div class="topic-metadata">

**Author:** [@Rangerz132](https://discourse.processing.org/u/Rangerz132)\
**Replies:** 1\
**Last updated:** [December 11, 2018, 7:49am UTC](https://discourse.processing.org/t/loop-inside-class-instancing-problem/6494 "2018-12-11T07:49:16Z")

</div>

Hi guys! I’m currently developping a 3D game with processing for a University project. The game is actually a fighter jet poursuit. I have a radar in 2D who map the distance between the enemies and my jet. I have an Arr…

---

## [Seems to be performance issues, but only with one player](https://discourse.processing.org/t/seems-to-be-performance-issues-but-only-with-one-player/6489)

<div class="topic-metadata">

**Author:** [@MartinM](https://discourse.processing.org/u/MartinM)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 9:22pm UTC](https://discourse.processing.org/t/seems-to-be-performance-issues-but-only-with-one-player/6489 "2018-12-10T21:22:07Z")

</div>

I am currently in the process in making a modified version of capture the flag and a quarter way though the process I ran into a weird issue. For some reason when moving player 2, the yellow player, around the board the …

---

## [\[SOLVED\] How can I turn off any filtering? solved thanks to the wonderful @jb4x](https://discourse.processing.org/t/solved-how-can-i-turn-off-any-filtering-solved-thanks-to-the-wonderful-jb4x/6488)

<div class="topic-metadata">

**Author:** [@lord\_berto](https://discourse.processing.org/u/lord_berto)\
**Replies:** 2\
**Last updated:** [December 10, 2018, 8:52pm UTC](https://discourse.processing.org/t/solved-how-can-i-turn-off-any-filtering-solved-thanks-to-the-wonderful-jb4x/6488 "2018-12-10T20:52:23Z")

</div>

Im fairly new to processing. Im using PGraphics to try a simple paint program. but I want my program to be primitive looking ( low resolution ), I’ve managed to get it in fullscreen with a custom low-res resolution, but…

---

## [Making a for loop ( or timer )](https://discourse.processing.org/t/making-a-for-loop-or-timer/6483)

<div class="topic-metadata">

**Author:** [@Sunnylimenoid](https://discourse.processing.org/u/Sunnylimenoid)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 4:58pm UTC](https://discourse.processing.org/t/making-a-for-loop-or-timer/6483 "2018-12-10T16:58:12Z")

</div>

Hello, I am new to processing, but have been trying to figure out how to implement a for loop for my code below. I have only used while loops before, so i’m not used to for loops, but I’m told that they are efficient and…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=337)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=339)
