# Processing

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

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

**Page:** 196

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Data from PDE to Arduinio IDE on continual basis](https://discourse.processing.org/t/data-from-pde-to-arduinio-ide-on-continual-basis/22310)

<div class="topic-metadata">

**Author:** [@kmot](https://discourse.processing.org/u/kmot)\
**Replies:** 3\
**Last updated:** [July 3, 2020, 9:14am UTC](https://discourse.processing.org/t/data-from-pde-to-arduinio-ide-on-continual-basis/22310 "2020-07-03T09:14:12Z")

</div>

"Building" a PDE / IDE connection to pass ongoing and changing data from PC (W10/64) to an Arduino board with an LCD. Eventual goal is an LCD-display clock. \*My existing code succeeds,up to a point.\*. In the test se…

---

## [Batch Edit: Load Multiple images from data folder](https://discourse.processing.org/t/batch-edit-load-multiple-images-from-data-folder/22344)

<div class="topic-metadata">

**Author:** [@CKMJPEG](https://discourse.processing.org/u/CKMJPEG)\
**Replies:** 7\
**Last updated:** [July 3, 2020, 3:31am UTC](https://discourse.processing.org/t/batch-edit-load-multiple-images-from-data-folder/22344 "2020-07-03T03:31:24Z")

</div>

Hi Processing Community! In most examples I have seen that work with loadImage, you usually work with single images, but what If you want to process at least 100 images with the same script? How would you load images f…

---

## [Move Pixels Based on Brightness](https://discourse.processing.org/t/move-pixels-based-on-brightness/22343)

<div class="topic-metadata">

**Author:** [@CKMJPEG](https://discourse.processing.org/u/CKMJPEG)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 11:36pm UTC](https://discourse.processing.org/t/move-pixels-based-on-brightness/22343 "2020-07-02T23:36:53Z")

</div>

Hi Processing community. I am new to processing, but have used many scripts and am somewhat familiar with the interface and in thinking through the code. My question is I would like to move the pixels of an image based…

---

## [Detecting mouse clicks that are outside the canvas?](https://discourse.processing.org/t/detecting-mouse-clicks-that-are-outside-the-canvas/22335)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 4\
**Last updated:** [July 2, 2020, 9:37pm UTC](https://discourse.processing.org/t/detecting-mouse-clicks-that-are-outside-the-canvas/22335 "2020-07-02T21:37:14Z")

</div>

I have researched all that I could for this, there is not many stuff to see. I read somewhere that this is not possible but I feel like it is. Does anyone know? Like when I do void mousePressed() { } that only works w…

---

## [Processing in Swing](https://discourse.processing.org/t/processing-in-swing/22120)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 3\
**Last updated:** [July 2, 2020, 9:26pm UTC](https://discourse.processing.org/t/processing-in-swing/22120 "2020-07-02T21:26:30Z")

</div>

Is there any way to get Processing to render into a JFrame (or something along those lines)? I’ve been reading and trying for myself but coudn’t get it to work The idea is to be able to make a UI using swing on top of …

---

## [About Local and global variables](https://discourse.processing.org/t/about-local-and-global-variables/22333)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 2\
**Last updated:** [July 2, 2020, 7:40pm UTC](https://discourse.processing.org/t/about-local-and-global-variables/22333 "2020-07-02T19:40:54Z")

</div>

import controlP5.\*; ControlP5 cp5; RadioButton r1, r2; void setup() { size(700,400); cp5 = new ControlP5(this); r1 = cp5.addRadioButton("radioButton") .setPosition(100,180) .setSize(40,20) …

---

## [Render a lot of same images](https://discourse.processing.org/t/render-a-lot-of-same-images/22289)

<div class="topic-metadata">

**Author:** [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Replies:** 7\
**Last updated:** [July 2, 2020, 3:43pm UTC](https://discourse.processing.org/t/render-a-lot-of-same-images/22289 "2020-07-02T15:43:44Z")

</div>

Is there a way to render a lot of same images fast?i made a array with 2 PImage objects…and rendering 2304 of them on the screen…with this i have 23-24 FPS on average…how can i(if possible) make this faster?thanks)

---

## [Text in loop to in several rows](https://discourse.processing.org/t/text-in-loop-to-in-several-rows/22323)

<div class="topic-metadata">

**Author:** [@Maxnotabletoprogramm](https://discourse.processing.org/u/Maxnotabletoprogramm)\
**Replies:** 3\
**Last updated:** [July 2, 2020, 2:00pm UTC](https://discourse.processing.org/t/text-in-loop-to-in-several-rows/22323 "2020-07-02T14:00:52Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hey, I want to make a loop that counts the Numbers up to 1500 and draws them. The size is (700, 700) so I have to make rows of numbers. Just so…

---

## [Processing saving empty PDF](https://discourse.processing.org/t/processing-saving-empty-pdf/22315)

<div class="topic-metadata">

**Author:** [@TimoL](https://discourse.processing.org/u/TimoL)\
**Replies:** 4\
**Last updated:** [July 2, 2020, 9:22am UTC](https://discourse.processing.org/t/processing-saving-empty-pdf/22315 "2020-07-02T09:22:16Z")

</div>

I’ve run into this problem where my pdf is coming out blank even though there is stuff on the screen. I think it has to do with how I’m drawing to the canvas using mousePressed. any ideas? import processing.pdf.\*; boo…

---

## [Arrange array in ascending order](https://discourse.processing.org/t/arrange-array-in-ascending-order/22314)

<div class="topic-metadata">

**Author:** [@alex](https://discourse.processing.org/u/alex)\
**Replies:** 3\
**Last updated:** [July 2, 2020, 6:19am UTC](https://discourse.processing.org/t/arrange-array-in-ascending-order/22314 "2020-07-02T06:19:05Z")

</div>

Hi, How do i arrange an array of number for e.g. int \[\] array = {3,2,7,4,9,1}; into ascending order without using the sort() function? Thanks

---

## [Data exchanges via PORTS - Arduino and Processing](https://discourse.processing.org/t/data-exchanges-via-ports-arduino-and-processing/22264)

<div class="topic-metadata">

**Author:** [@kmot](https://discourse.processing.org/u/kmot)\
**Replies:** 8\
**Last updated:** [July 1, 2020, 6:19pm UTC](https://discourse.processing.org/t/data-exchanges-via-ports-arduino-and-processing/22264 "2020-07-01T18:19:52Z")

</div>

BASIC QUESTION: : reading and / writing short data streams (char, int, binary. strings).VIA THE ports The code for each side (IDE and PDE) is from a tutorial web site: https://forum.arduino.cc/index.php?topic=434516.0 …

---

## [How to find min X and Y of pixel](https://discourse.processing.org/t/how-to-find-min-x-and-y-of-pixel/22222)

<div class="topic-metadata">

**Author:** [@Morzin](https://discourse.processing.org/u/Morzin)\
**Replies:** 6\
**Last updated:** [July 1, 2020, 5:45pm UTC](https://discourse.processing.org/t/how-to-find-min-x-and-y-of-pixel/22222 "2020-07-01T17:45:55Z")

</div>

Hello, I want to make a program that finds the object in the picture. I decided that it would be easiest to recognize it by color, because the background under the object could have any other color. So far I managed t…

---

## [Problems with Exception Handling](https://discourse.processing.org/t/problems-with-exception-handling/22302)

<div class="topic-metadata">

**Author:** [@raphael](https://discourse.processing.org/u/raphael)\
**Replies:** 0\
**Last updated:** [July 1, 2020, 3:50pm UTC](https://discourse.processing.org/t/problems-with-exception-handling/22302 "2020-07-01T15:50:31Z")

</div>

In my project I need to make a socket connection, however I realized that there is a chance that the user will not start the server. When this happens, it is obvious that the client will not be able to connect to the ser…

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

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