# Latest

**URL:** https://discourse.processing.org/latest.md?page=548

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

**Page:** 549

---

## [Help with P5.js and ML5.js](https://discourse.processing.org/t/help-with-p5-js-and-ml5-js/6446)

<div class="topic-metadata">

**Author:** [@zack](https://discourse.processing.org/u/zack)\
**Replies:** 1\
**Last updated:** [December 12, 2018, 2:03am UTC](https://discourse.processing.org/t/help-with-p5-js-and-ml5-js/6446 "2018-12-12T02:03:12Z")

</div>

Hello Community :slight\_smile: I’ve been playing with p5.js and the new ml5.js machine learning library. I’m having an issue using a p5 image as an input for the ml5 style transfer function. Maybe someone can help me fi…

---

## [Running PiCrate Sketches in GeanyIDE](https://discourse.processing.org/t/running-picrate-sketches-in-geanyide/6517)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [December 11, 2018, 8:26pm UTC](https://discourse.processing.org/t/running-picrate-sketches-in-geanyide/6517 "2018-12-11T20:26:21Z")

</div>

PiCrate is a ruby wrapper around processing, developed to run on the RaspberryPi. You can easily install picrate on Raspbian Stretch OS using my simple Rakefile. See sketch running from GeanyIDE:-

---

## [Translate p5js code to processing code?](https://discourse.processing.org/t/translate-p5js-code-to-processing-code/6505)

<div class="topic-metadata">

**Author:** [@Anaibuk](https://discourse.processing.org/u/Anaibuk)\
**Replies:** 8\
**Last updated:** [December 11, 2018, 11:49pm UTC](https://discourse.processing.org/t/translate-p5js-code-to-processing-code/6505 "2018-12-11T23:49:58Z")

</div>

Hello everyone, I’m just having a wild crash curse of processing (generative Design) at university. As we haven’t enough time, we are just learning to code with processing and not with p5js. Unfortunaly most of the exam…

---

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

---

## [Processing Renderer in NetBeans](https://discourse.processing.org/t/processing-renderer-in-netbeans/6477)

<div class="topic-metadata">

**Author:** [@flecheria](https://discourse.processing.org/u/flecheria)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 3:02pm UTC](https://discourse.processing.org/t/processing-renderer-in-netbeans/6477 "2018-12-10T15:02:14Z")

</div>

HI I’m using processing in NetBeans but I got this error when I try to set P3D renderer in settings; public void settings() { size(300, 300, "P3D"); } java.lang.RuntimeException: The P3D renderer is not in the cl…

---

## [Loop after loop in setup](https://discourse.processing.org/t/loop-after-loop-in-setup/6472)

<div class="topic-metadata">

**Author:** [@netphysicist](https://discourse.processing.org/u/netphysicist)\
**Replies:** 5\
**Last updated:** [December 10, 2018, 12:59pm UTC](https://discourse.processing.org/t/loop-after-loop-in-setup/6472 "2018-12-10T12:59:04Z")

</div>

If i want to use a specific loop for two different functions inside the draw what am i suppose to do?? For example if i want to use this : for (int i=0; i\<table.getRowCount(); i++) { for two different function insid…

---

## [How do I make sure that a function is used properly/as intended when called?](https://discourse.processing.org/t/how-do-i-make-sure-that-a-function-is-used-properly-as-intended-when-called/6447)

<div class="topic-metadata">

**Author:** [@klaik30](https://discourse.processing.org/u/klaik30)\
**Replies:** 3\
**Last updated:** [December 10, 2018, 10:49am UTC](https://discourse.processing.org/t/how-do-i-make-sure-that-a-function-is-used-properly-as-intended-when-called/6447 "2018-12-10T10:49:00Z")

</div>

I want to make some code that just converts an int of value 0 or 1 to a boolean but I don’t want the value inputted to be anything other than 0 or 1. If that is the case I want to throw an error and stop the program like…

---

## [Out Of Memory Error](https://discourse.processing.org/t/out-of-memory-error/6442)

<div class="topic-metadata">

**Author:** [@dragon\_hatcher](https://discourse.processing.org/u/dragon_hatcher)\
**Replies:** 6\
**Last updated:** [December 10, 2018, 10:10am UTC](https://discourse.processing.org/t/out-of-memory-error/6442 "2018-12-10T10:10:04Z")

</div>

My project keeps getting an out of memory error after 15 - 20 minutes. However when I looked online at the problem it seemed that this almost always happens when you load some sort of file but I’m not doing this. Does a …

---

## [(Processing 3.0) how to sort string array by value of substrings?](https://discourse.processing.org/t/processing-3-0-how-to-sort-string-array-by-value-of-substrings/6436)

<div class="topic-metadata">

**Author:** [@epicwyvern](https://discourse.processing.org/u/epicwyvern)\
**Replies:** 5\
**Last updated:** [December 10, 2018, 7:47am UTC](https://discourse.processing.org/t/processing-3-0-how-to-sort-string-array-by-value-of-substrings/6436 "2018-12-10T07:47:53Z")

</div>

hello guys im in a bit of a dilemma. i am trying to sort the following text file: a a 1 aasd asdasa 23 aghf bsad 12 ytyi qwea 1222313 hlkjojto erewrui 1222 aerwjdu sdahdsu 1…

---

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

---

## [Check which renderer is active?](https://discourse.processing.org/t/check-which-renderer-is-active/6452)

<div class="topic-metadata">

**Author:** [@ffd8](https://discourse.processing.org/u/ffd8)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 12:17am UTC](https://discourse.processing.org/t/check-which-renderer-is-active/6452 "2018-12-10T00:17:27Z")

</div>

Was checking out the source code on GitHub and found many mentions to ‘this.renderer’ for internal use to see which renderer is in use (P2D, P3D) – just wondering if we’re able to access this variable? Was interested to …

---

## [Code to transform content for Holographic Pyramid with PGraphics](https://discourse.processing.org/t/code-to-transform-content-for-holographic-pyramid-with-pgraphics/6277)

<div class="topic-metadata">

**Author:** [@olotropic\_world](https://discourse.processing.org/u/olotropic_world)\
**Replies:** 2\
**Last updated:** [December 9, 2018, 11:14pm UTC](https://discourse.processing.org/t/code-to-transform-content-for-holographic-pyramid-with-pgraphics/6277 "2018-12-09T23:14:17Z")

</div>

Hello everyone I’ve created a code that can transform a three-dimensional content into holographic video for pyramid. For the purposes of example, a three-dimensional shape taken from the Processing examples was used. …

---

## [Hidden line removal for wireframe obj as PShape](https://discourse.processing.org/t/hidden-line-removal-for-wireframe-obj-as-pshape/4253)

<div class="topic-metadata">

**Author:** [@ffd8](https://discourse.processing.org/u/ffd8)\
**Replies:** 10\
**Last updated:** [December 9, 2018, 9:44pm UTC](https://discourse.processing.org/t/hidden-line-removal-for-wireframe-obj-as-pshape/4253 "2018-12-09T21:44:47Z")

</div>

Starting to play with importing an obj file using loadShape() and rendering it as a wireframe. Now comes the tricky part… how to do ‘hidden line removal’ (similar to back-face detection, culling… still sorting out exact…

---

## [Mouseclick colorswitch (RGB)](https://discourse.processing.org/t/mouseclick-colorswitch-rgb/6387)

<div class="topic-metadata">

**Author:** [@Student\_NL](https://discourse.processing.org/u/Student_NL)\
**Replies:** 6\
**Last updated:** [December 9, 2018, 8:41pm UTC](https://discourse.processing.org/t/mouseclick-colorswitch-rgb/6387 "2018-12-09T20:41:52Z")

</div>

Hello, I’m trying to figure out how to switch the color of the screen multiple times by using mouseclick/ mousepressed. The background has to switch from black to red, then blue, then green, (and then back to red.) Th…

---

## [How do I draw a continuous line between several points?](https://discourse.processing.org/t/how-do-i-draw-a-continuous-line-between-several-points/6091)

<div class="topic-metadata">

**Author:** [@klaik30](https://discourse.processing.org/u/klaik30)\
**Replies:** 5\
**Last updated:** [December 9, 2018, 6:03pm UTC](https://discourse.processing.org/t/how-do-i-draw-a-continuous-line-between-several-points/6091 "2018-12-09T18:03:46Z")

</div>

I’d like to draw a continuous line between several points. It should be any shape what so ever and not fill anything between any of the points, like drawing with a pen. Picture for reference: I know that if I don’t up…

---

## [Setting a class field array via reflection](https://discourse.processing.org/t/setting-a-class-field-array-via-reflection/6444)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 7\
**Last updated:** [December 9, 2018, 5:20pm UTC](https://discourse.processing.org/t/setting-a-class-field-array-via-reflection/6444 "2018-12-09T17:20:11Z")

</div>

Hello once again. The pipeline I’m developing uses a csv file to drive the animations. I’ve hit a stumbling block: I’d like to be able to parse a string into a class’s float array field using reflection. I feel like I’m…

---

## [Couple of questions about lights, snow and rain](https://discourse.processing.org/t/couple-of-questions-about-lights-snow-and-rain/6422)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 7\
**Last updated:** [December 9, 2018, 1:26pm UTC](https://discourse.processing.org/t/couple-of-questions-about-lights-snow-and-rain/6422 "2018-12-09T13:26:39Z")

</div>

Working on a project and I have a few questions before it’s complete. First, on the third stage of my code it is snowing, but when I went to go use the same code I made for rain on my fourth stage the rain is not moving.…

---

## [Steinhaus Cube Sketch](https://discourse.processing.org/t/steinhaus-cube-sketch/5632)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 1\
**Last updated:** [December 9, 2018, 1:23pm UTC](https://discourse.processing.org/t/steinhaus-cube-sketch/5632 "2018-12-09T13:23:02Z")

</div>

The Steinhaus Cube is a riddle where you have ro make a 3D cube from 6 wooden pieces. (Steinhaus Cube (Mikusiñski’s Cube)) see graphic: http://www.puzzlewillbeplayed.com/333/Steinhaus/ I made a 3D sketch where you ca…

---

## [How to count steps with TYPE\_STEP\_DETECTOR?](https://discourse.processing.org/t/how-to-count-steps-with-type-step-detector/6411)

<div class="topic-metadata">

**Author:** [@craftthis](https://discourse.processing.org/u/craftthis)\
**Replies:** 3\
**Last updated:** [December 9, 2018, 8:58am UTC](https://discourse.processing.org/t/how-to-count-steps-with-type-step-detector/6411 "2018-12-09T08:58:05Z")

</div>

I am trying to use the sensor TYPE\_STEP\_DETECTOR to detect when the user steps, but i don’t know exactly the sintax for this, if anyone could help it would help.

[Previous page](https://discourse.processing.org/latest.md?page=547)

[Next page](https://discourse.processing.org/latest.md?page=549)
