# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=326

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

**Page:** 327

---

## [Loading audio from mic](https://discourse.processing.org/t/loading-audio-from-mic/22419)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 7:02pm UTC](https://discourse.processing.org/t/loading-audio-from-mic/22419 "2020-07-06T19:02:28Z")

</div>

I’m trying to configure processing to accept microphone input for audio processing, however I keep getting the same error no matter what example sketch I try. error; Audio Input not configured in start() method. sketc…

---

## [Serial write() blocks on Bluetooth ports](https://discourse.processing.org/t/serial-write-blocks-on-bluetooth-ports/22413)

<div class="topic-metadata">

**Author:** [@processor](https://discourse.processing.org/u/processor)\
**Replies:** 1\
**Last updated:** [July 6, 2020, 5:37pm UTC](https://discourse.processing.org/t/serial-write-blocks-on-bluetooth-ports/22413 "2020-07-06T17:37:49Z")

</div>

Hello, I am developing a desktop app on Processing that reads data arriving on a Serial port. The app will be distributed to users running either Windows or MacOS. They will have an Arduino Uno set up to stream data to …

---

## [How to play sound in prcsng](https://discourse.processing.org/t/how-to-play-sound-in-prcsng/22418)

<div class="topic-metadata">

**Author:** [@Pro\_why\_not](https://discourse.processing.org/u/Pro_why_not)\
**Replies:** 0\
**Last updated:** [July 6, 2020, 4:36pm UTC](https://discourse.processing.org/t/how-to-play-sound-in-prcsng/22418 "2020-07-06T16:36:07Z")

</div>

how to play sound in processing for my length volume e.t.c.

---

## [What is PSurface used for?](https://discourse.processing.org/t/what-is-psurface-used-for/22409)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 12:10pm UTC](https://discourse.processing.org/t/what-is-psurface-used-for/22409 "2020-07-06T12:10:24Z")

</div>

Sorry if this is very trivial question but I can’t seem to find any documentation for this. http://processing.github.io/processing-javadocs/core/processing/core/PSurfaceNone.html The above link is what I found but the …

---

## [Learning new libraries without tutorials](https://discourse.processing.org/t/learning-new-libraries-without-tutorials/22152)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 12\
**Last updated:** [June 30, 2020, 6:55pm UTC](https://discourse.processing.org/t/learning-new-libraries-without-tutorials/22152 "2020-06-30T18:55:54Z")

</div>

Hi everyone. I wanna ask how to learn Processing libraries without tutorials ? I want to learn sound libraries but there isn’t any tutorials about them. Also, I want to learn Geomerative library.

---

## [Coding Different Trigonometric Functions in Processing](https://discourse.processing.org/t/coding-different-trigonometric-functions-in-processing/22257)

<div class="topic-metadata">

**Author:** [@Adi](https://discourse.processing.org/u/Adi)\
**Replies:** 16\
**Last updated:** [July 6, 2020, 2:45am UTC](https://discourse.processing.org/t/coding-different-trigonometric-functions-in-processing/22257 "2020-07-06T02:45:28Z")

</div>

I am trying to code functions that will put a variable or number through the sigmoid function and another one for the step function.

---

## [Is Minim's FFT non-deterministic?](https://discourse.processing.org/t/is-minims-fft-non-deterministic/22363)

<div class="topic-metadata">

**Author:** [@Kevin](https://discourse.processing.org/u/Kevin)\
**Replies:** 3\
**Last updated:** [July 6, 2020, 2:36am UTC](https://discourse.processing.org/t/is-minims-fft-non-deterministic/22363 "2020-07-06T02:36:18Z")

</div>

I’m trying to create a music visualizer that takes a song and outputs an image. I’m very new to this, and I’ve been trying to understand FFT. I put together this sketch: import ddf.minim.\*; import ddf.minim.analysis.\*;…

---

## [Built in constant: displayWidth and displayHeight](https://discourse.processing.org/t/built-in-constant-displaywidth-and-displayheight/22404)

<div class="topic-metadata">

**Author:** [@RenanRabelo](https://discourse.processing.org/u/RenanRabelo)\
**Replies:** 3\
**Last updated:** [July 6, 2020, 1:08am UTC](https://discourse.processing.org/t/built-in-constant-displaywidth-and-displayheight/22404 "2020-07-06T01:08:51Z")

</div>

Is somehow possible to get the display width and height? I was reading an old forum topic (from 5 years ago) and it said that displayWidth/Height is deprecated. Is there any method I can use to extract those constants …

---

## [bRigid import workaround for Python Mode](https://discourse.processing.org/t/brigid-import-workaround-for-python-mode/22402)

<div class="topic-metadata">

**Author:** [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Replies:** 1\
**Last updated:** [July 5, 2020, 9:22pm UTC](https://discourse.processing.org/t/brigid-import-workaround-for-python-mode/22402 "2020-07-05T21:22:35Z")

</div>

Arbitrarily picked bRigid’s “Box” example & converted it to “Python Mode”: :snake: """ bRigid BBox (v1.0.4) by Daniel Köhler (2013) mod GoToLoop (2020-Jul-05) Discourse.Processing.org/t/brigid-import-workaround-for-…

---

## [How to read each stereo channel separately](https://discourse.processing.org/t/how-to-read-each-stereo-channel-separately/22395)

<div class="topic-metadata">

**Author:** [@spade](https://discourse.processing.org/u/spade)\
**Replies:** 1\
**Last updated:** [July 5, 2020, 5:46pm UTC](https://discourse.processing.org/t/how-to-read-each-stereo-channel-separately/22395 "2020-07-05T17:46:01Z")

</div>

Hi, I’m starting a project in which I would like to read one channel of a stereo track (from an external file) and analyze it and mute it, while simultaneously outputting the other channel. The idea is to have the click…

---

## [Passing shader texture with negative values/accesing 32bit floats shader texture](https://discourse.processing.org/t/passing-shader-texture-with-negative-values-accesing-32bit-floats-shader-texture/22354)

<div class="topic-metadata">

**Author:** [@Beervangeer](https://discourse.processing.org/u/Beervangeer)\
**Replies:** 8\
**Last updated:** [July 5, 2020, 4:02pm UTC](https://discourse.processing.org/t/passing-shader-texture-with-negative-values-accesing-32bit-floats-shader-texture/22354 "2020-07-05T16:02:59Z")

</div>

Hi there, In my processing sketch I am passing textures between two shaders by first drawing into a PGraphics and than passing the PGraphics with the .set function of the shader. This works fine,but the PGraphics clamp…

---

## [Why are my lines moving the same?](https://discourse.processing.org/t/why-are-my-lines-moving-the-same/22392)

<div class="topic-metadata">

**Author:** [@vreakz](https://discourse.processing.org/u/vreakz)\
**Replies:** 5\
**Last updated:** [July 5, 2020, 9:48am UTC](https://discourse.processing.org/t/why-are-my-lines-moving-the-same/22392 "2020-07-05T09:48:18Z")

</div>

Hello, I am trying to figure out why my 2 lines are moving the same. I thought that “for every i” the line move different because of the ‘random’ a. This is my first what own written code. My experience with coding bef…

---

## [Is it possible to check if a sprite was destroyed?](https://discourse.processing.org/t/is-it-possible-to-check-if-a-sprite-was-destroyed/22369)

<div class="topic-metadata">

**Author:** [@The99thTroll](https://discourse.processing.org/u/The99thTroll)\
**Replies:** 1\
**Last updated:** [July 5, 2020, 8:44am UTC](https://discourse.processing.org/t/is-it-possible-to-check-if-a-sprite-was-destroyed/22369 "2020-07-05T08:44:03Z")

</div>

The title basically says it all. Is there a way to detect if a sprite is destroyed so I can manipulate a different sprite later on?

---

## [How to put up ads in APDE](https://discourse.processing.org/t/how-to-put-up-ads-in-apde/22381)

<div class="topic-metadata">

**Author:** [@Why\_I\_Use\_Processing](https://discourse.processing.org/u/Why_I_Use_Processing)\
**Replies:** 6\
**Last updated:** [July 5, 2020, 7:29am UTC](https://discourse.processing.org/t/how-to-put-up-ads-in-apde/22381 "2020-07-05T07:29:23Z")

</div>

I want to know, how I can put up ads on my sketch made using APDE (processing android)… Already frustrated finding help on google… Please help…

---

## [How to draw pixel at specific location on the buffer?](https://discourse.processing.org/t/how-to-draw-pixel-at-specific-location-on-the-buffer/21881)

<div class="topic-metadata">

**Author:** [@R1S8K](https://discourse.processing.org/u/R1S8K)\
**Replies:** 18\
**Last updated:** [July 5, 2020, 12:04am UTC](https://discourse.processing.org/t/how-to-draw-pixel-at-specific-location-on-the-buffer/21881 "2020-07-05T00:04:48Z")

</div>

Hi, I want to develop a function that put a pixel on the main image buffer. Because I want to draw a bitmap from 1024 byte array. This what I got so far: PImage pi; void draw\_pixel(int x,int y){ pi = createImage(1…

---

## [Expected DOT, found 'array name'](https://discourse.processing.org/t/expected-dot-found-array-name/22347)

<div class="topic-metadata">

**Author:** [@what42](https://discourse.processing.org/u/what42)\
**Replies:** 5\
**Last updated:** [July 4, 2020, 11:42pm UTC](https://discourse.processing.org/t/expected-dot-found-array-name/22347 "2020-07-04T23:42:17Z")

</div>

I think I’ve found a bug with the IDE. If it’s not a bug, please tell what I’m doing wrong. Whenever I have something like this byte\[\] TestByteArray = new byte\[\] { 0b0 }; it gives me this error: expecting DOT, found…

---

## [How to change a line stroke after its been set?](https://discourse.processing.org/t/how-to-change-a-line-stroke-after-its-been-set/22386)

<div class="topic-metadata">

**Author:** [@FireMe](https://discourse.processing.org/u/FireMe)\
**Replies:** 5\
**Last updated:** [July 4, 2020, 6:40pm UTC](https://discourse.processing.org/t/how-to-change-a-line-stroke-after-its-been-set/22386 "2020-07-04T18:40:46Z")

</div>

Hi All, Im completely new here and to code tbh, I followed this tutorial on a gift wrapping algorithm, which of course was fairly easy to follow, problems arise when i want to do something different to the tutorial. The…

---

## [How to use Kinect v1 openNI skeleton data for mocap](https://discourse.processing.org/t/how-to-use-kinect-v1-openni-skeleton-data-for-mocap/22383)

<div class="topic-metadata">

**Author:** [@vowelled](https://discourse.processing.org/u/vowelled)\
**Replies:** 0\
**Last updated:** [July 4, 2020, 4:07pm UTC](https://discourse.processing.org/t/how-to-use-kinect-v1-openni-skeleton-data-for-mocap/22383 "2020-07-04T16:07:37Z")

</div>

I have SimpleOpenNI skeleton tracking working for Kinect with Processing 2.2.1 & OSX 10.9.5. I would like to save/pipe the 3D skeleton data from each frame so I can use it in Blender/Maya. I’m new, could someone poi…

---

## [Comm to Arduino](https://discourse.processing.org/t/comm-to-arduino/22334)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 3\
**Last updated:** [July 4, 2020, 3:48pm UTC](https://discourse.processing.org/t/comm-to-arduino/22334 "2020-07-04T15:48:37Z")

</div>

I’m building a GUI for an Arduino project I have. The GUI has some switches and sliders. My question is, What is a good method to ID which control is communicating to the Arduino at anyone time. For example suppose there…

---

## [Mouse dragged in P5js](https://discourse.processing.org/t/mouse-dragged-in-p5js/22066)

<div class="topic-metadata">

**Author:** [@AKAC](https://discourse.processing.org/u/AKAC)\
**Replies:** 6\
**Last updated:** [July 4, 2020, 3:08pm UTC](https://discourse.processing.org/t/mouse-dragged-in-p5js/22066 "2020-07-04T15:08:33Z")

</div>

Hi I’m new in P5 and need a help with “mouse dragged” my code is: let imgB; let imgC; let imgD; let sz = 70 let y = 0; let x = 0; let y1 = 0; let x1 = 0; let y2 = 0; let x2 = 0; let startX = 0; let startY =…

---

## [I got the java.lang.reflect.InvocationTargetException in my code](https://discourse.processing.org/t/i-got-the-java-lang-reflect-invocationtargetexception-in-my-code/22374)

<div class="topic-metadata">

**Author:** [@yurim](https://discourse.processing.org/u/yurim)\
**Replies:** 1\
**Last updated:** [July 4, 2020, 11:49am UTC](https://discourse.processing.org/t/i-got-the-java-lang-reflect-invocationtargetexception-in-my-code/22374 "2020-07-04T11:49:16Z")

</div>

I’m making calendar program in processing. In the process of adding a schedule for each day, I should make Plan\_Day class array in This\_Day class. But I got java.lang.reflect.InvocationTargetException on and over again.…

---

## [Can someone tell me what is wrong with my conversion of this code?](https://discourse.processing.org/t/can-someone-tell-me-what-is-wrong-with-my-conversion-of-this-code/22370)

<div class="topic-metadata">

**Author:** [@tinkrit](https://discourse.processing.org/u/tinkrit)\
**Replies:** 1\
**Last updated:** [July 4, 2020, 1:17am UTC](https://discourse.processing.org/t/can-someone-tell-me-what-is-wrong-with-my-conversion-of-this-code/22370 "2020-07-04T01:17:36Z")

</div>

// // Conversione in P5.js di "Quasicrystals as sums of waves in the plane" // http://mainisusuallyafunction.blogspot.it/2011/10/quasicrystals-as-sums-of-waves-in-plane.html // var dimPix = 0.4; var numeroLivelli = 7; …

---

## [Segway City (Processing P3D) (Need to convert to P5.js)](https://discourse.processing.org/t/segway-city-processing-p3d-need-to-convert-to-p5-js/22368)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 0\
**Last updated:** [July 3, 2020, 9:52pm UTC](https://discourse.processing.org/t/segway-city-processing-p3d-need-to-convert-to-p5-js/22368 "2020-07-03T21:52:18Z")

</div>

I have created a PC game: Segway City. using Processing P3D Segway City 1.7 splash screen Segway City is a game, where you drive the segway, around crates and potholes, and try to last as long as you can, break your …

---

## [Problema con NullPointerException](https://discourse.processing.org/t/problema-con-nullpointerexception/22349)

<div class="topic-metadata">

**Author:** [@Francesco](https://discourse.processing.org/u/Francesco)\
**Replies:** 2\
**Last updated:** [July 3, 2020, 7:55pm UTC](https://discourse.processing.org/t/problema-con-nullpointerexception/22349 "2020-07-03T19:55:19Z")

</div>

Aca esta mi problema: la idea es que cuando le de click al cuadrado se cambie de imagen, pero no sucede nada. String estado; PImage castilloM; PImage castilloM2; PImage charla2; PImage jhon; PImage dama; PImage cu…

---

## [Virtual CC Fest - creative coding fest - July 11 2 pm ET (-4 GMT)](https://discourse.processing.org/t/virtual-cc-fest-creative-coding-fest-july-11-2-pm-et-4-gmt/22361)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 0\
**Last updated:** [July 3, 2020, 3:39pm UTC](https://discourse.processing.org/t/virtual-cc-fest-creative-coding-fest-july-11-2-pm-et-4-gmt/22361 "2020-07-03T15:39:58Z")

</div>

Hey everyone, We are doing a three hour CC Fest via Zoom on July 11, Saturday, at 2 pm ET to 5 pm ET (-4 GMT). You can see the details and RSVP at http://ccfest.rocks. Donations go to TRANSIT ART, a youth art developmen…

---

## [How to access p5js functions when using ES6 modules](https://discourse.processing.org/t/how-to-access-p5js-functions-when-using-es6-modules/21359)

<div class="topic-metadata">

**Author:** [@dansumption](https://discourse.processing.org/u/dansumption)\
**Replies:** 6\
**Last updated:** [July 3, 2020, 3:36pm UTC](https://discourse.processing.org/t/how-to-access-p5js-functions-when-using-es6-modules/21359 "2020-07-03T15:36:39Z")

</div>

I am trying to write an app using ES6 modules and the voronoi library, and in this environment all of the processing instance functions (background, stroke, random, etc) are not in the module’s namespace. I have got aro…

---

## [Very simple question - I think](https://discourse.processing.org/t/very-simple-question-i-think/21851)

<div class="topic-metadata">

**Author:** [@alu](https://discourse.processing.org/u/alu)\
**Replies:** 9\
**Last updated:** [July 3, 2020, 3:35pm UTC](https://discourse.processing.org/t/very-simple-question-i-think/21851 "2020-07-03T15:35:19Z")

</div>

Hi ! I’ve been teaching myself Processing with online resources and the Learning Processing book for a couple of months now. It’s so I can execute a project I’m working on. But I can’t seem to find a way to do this seem…

---

## [Do ... while ... throws 'Unexpected token '{' when line break inside](https://discourse.processing.org/t/do-while-throws-unexpected-token-when-line-break-inside/22352)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 4\
**Last updated:** [July 3, 2020, 2:34pm UTC](https://discourse.processing.org/t/do-while-throws-unexpected-token-when-line-break-inside/22352 "2020-07-03T14:34:03Z")

</div>

Hi everyone, Maybe I’m very tired and have a a dummy question but I’m in trouble with a simple do … while … statement… The following one: var number; do{ number = random(1, 101); print(number); …

---

## [Error with video= IndexSizeError: Index or size is negative or greater than the allowed amount](https://discourse.processing.org/t/error-with-video-indexsizeerror-index-or-size-is-negative-or-greater-than-the-allowed-amount/22306)

<div class="topic-metadata">

**Author:** [@akenaton](https://discourse.processing.org/u/akenaton)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 5:18pm UTC](https://discourse.processing.org/t/error-with-video-indexsizeerror-index-or-size-is-negative-or-greater-than-the-allowed-amount/22306 "2020-07-02T17:18:01Z")

</div>

i have a sketch in which there is a video; not any problem with the code (it seems!) - When i run the sketch i get often and not always this error: “IndexSizeError: Index or size is negative or greater than the allowed …

---

## [Automatic serial port finder for Arduino](https://discourse.processing.org/t/automatic-serial-port-finder-for-arduino/22300)

<div class="topic-metadata">

**Author:** [@Ardubora](https://discourse.processing.org/u/Ardubora)\
**Replies:** 6\
**Last updated:** [July 3, 2020, 10:37am UTC](https://discourse.processing.org/t/automatic-serial-port-finder-for-arduino/22300 "2020-07-03T10:37:02Z")

</div>

I have an Arduino and I wish to automatically adjust the COM serial port number. Let’s say I have a variable names arduinoSerialPortNumber and I have the following line: String portName = Serial.list()\[arduinoSerialPort…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=325)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=327)
