# Latest

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

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

**Page:** 321

---

## [How do I get the amplitude from an audio file?](https://discourse.processing.org/t/how-do-i-get-the-amplitude-from-an-audio-file/22845)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 3\
**Last updated:** [July 27, 2020, 11:39am UTC](https://discourse.processing.org/t/how-do-i-get-the-amplitude-from-an-audio-file/22845 "2020-07-27T11:39:06Z")

</div>

import processing.sound.\*; Amplitude amp; AudioIn in; SoundFile file; float\[\] amp\_values; void setup() { file = new SoundFile(this, "audio.mp3"); in = new AudioIn(this); file.play(); in.start(); amp.inpu…

---

## [Processing keeps failing to install sound library on Arch Linux based distro](https://discourse.processing.org/t/processing-keeps-failing-to-install-sound-library-on-arch-linux-based-distro/22857)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 3\
**Last updated:** [July 27, 2020, 7:58am UTC](https://discourse.processing.org/t/processing-keeps-failing-to-install-sound-library-on-arch-linux-based-distro/22857 "2020-07-27T07:58:19Z")

</div>

I am trying to install the Sound library but I keep on getting this error. Could not download https://github.com/processing/processing-sound/releases/download/latest/sound.zip to /tmp/download5615604968353773816sound.zi…

---

## [P2D & P3D (OpenGL) not working on secondary displays](https://discourse.processing.org/t/p2d-p3d-opengl-not-working-on-secondary-displays/2906)

<div class="topic-metadata">

**Author:** [@EliTheIceMan](https://discourse.processing.org/u/EliTheIceMan)\
**Replies:** 3\
**Last updated:** [July 27, 2020, 1:19am UTC](https://discourse.processing.org/t/p2d-p3d-opengl-not-working-on-secondary-displays/2906 "2020-07-27T01:19:24Z")

</div>

I have a new desktop Windows 10 computer that has NVS 810 and NVS 310 graphics cards added to expand the amount of screens which can be attached. I have an older version of this project working fine with the exact same …

---

## [I think I've made a huge mistake (function overloading)](https://discourse.processing.org/t/i-think-ive-made-a-huge-mistake-function-overloading/22835)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 5\
**Last updated:** [July 26, 2020, 4:35pm UTC](https://discourse.processing.org/t/i-think-ive-made-a-huge-mistake-function-overloading/22835 "2020-07-26T16:35:31Z")

</div>

So, I was writing a (personal) library for complex numbers. I know there’s an existing library for that, but some of the syntax kinda bugged me and, wouldn’t you know it, I already made it anyway. But, I ended up overl…

---

## [Cube with rounded edges](https://discourse.processing.org/t/cube-with-rounded-edges/22064)

<div class="topic-metadata">

**Author:** [@Mesalcode](https://discourse.processing.org/u/Mesalcode)\
**Replies:** 6\
**Last updated:** [July 26, 2020, 8:38pm UTC](https://discourse.processing.org/t/cube-with-rounded-edges/22064 "2020-07-26T20:38:59Z")

</div>

Hi there! I am working on a mobile quizapp based on rotating a cube. I am currently using this code for drawing a cube: beginShape(QUADS); texture(front); vertex(-1, -1, 1, 0, 0); vertex( 1, -1, 1, 1, 0); ve…

---

## [Converting Processing to Processing.js... please help?](https://discourse.processing.org/t/converting-processing-to-processing-js-please-help/22846)

<div class="topic-metadata">

**Author:** [@Quinny](https://discourse.processing.org/u/Quinny)\
**Replies:** 10\
**Last updated:** [July 26, 2020, 4:10pm UTC](https://discourse.processing.org/t/converting-processing-to-processing-js-please-help/22846 "2020-07-26T16:10:06Z")

</div>

Hello, I’m trying to convert a sketch made in Processing.js to standard Processing so I can port it as a canvass, using screen broadcast, onto surfaces in Unity. I’ve made all the obvious changes like var to int etc., …

---

## [P5.gui text area instead of text input](https://discourse.processing.org/t/p5-gui-text-area-instead-of-text-input/22848)

<div class="topic-metadata">

**Author:** [@hath](https://discourse.processing.org/u/hath)\
**Replies:** 0\
**Last updated:** [July 26, 2020, 4:08pm UTC](https://discourse.processing.org/t/p5-gui-text-area-instead-of-text-input/22848 "2020-07-26T16:08:35Z")

</div>

Is there a way to create a multi-line text area (as opposed to text input) using p5.gui? Assuming both quicksettings.js and p5.gui.js have been imported, the code below automatically generates a text input. I can’t seem…

---

## [My First Project - The "Frequency Spectrum" example](https://discourse.processing.org/t/my-first-project-the-frequency-spectrum-example/22842)

<div class="topic-metadata">

**Author:** [@basic](https://discourse.processing.org/u/basic)\
**Replies:** 2\
**Last updated:** [July 26, 2020, 3:38pm UTC](https://discourse.processing.org/t/my-first-project-the-frequency-spectrum-example/22842 "2020-07-26T15:38:00Z")

</div>

Hello All, I’m trying to create my first project, and so far failing miserably. As a self-taught programmer who learns by looking through other people’s code, I thought I’d start by getting one of the “example” project…

---

## [ArrayList out of boundary](https://discourse.processing.org/t/arraylist-out-of-boundary/22817)

<div class="topic-metadata">

**Author:** [@klap](https://discourse.processing.org/u/klap)\
**Replies:** 3\
**Last updated:** [July 26, 2020, 2:19pm UTC](https://discourse.processing.org/t/arraylist-out-of-boundary/22817 "2020-07-26T14:19:33Z")

</div>

Hi, Playing with objects and ArrayList. I’ve trouble removing objects from the ArrayList when they disappear from the screen. IndexOutOfBoundsException: Index: 49, Size: 49 ArrayList\<Bubble\> bubble = new ArrayList\<Bu…

---

## [Making rectangles behave like pixels after exporting](https://discourse.processing.org/t/making-rectangles-behave-like-pixels-after-exporting/22834)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 4\
**Last updated:** [July 26, 2020, 7:36am UTC](https://discourse.processing.org/t/making-rectangles-behave-like-pixels-after-exporting/22834 "2020-07-26T07:36:14Z")

</div>

I don’t exactly know what should I title this but basically, I have the main simple function of a pixelart program here: ArrayList\<Sq\> fill; boolean f = true; void setup() { size(1000, 600); fill = new ArrayList\<Sq\>…

---

## [Confusion on classes and objects](https://discourse.processing.org/t/confusion-on-classes-and-objects/22838)

<div class="topic-metadata">

**Author:** [@Edgard142ofWelshdale](https://discourse.processing.org/u/Edgard142ofWelshdale)\
**Replies:** 2\
**Last updated:** [July 26, 2020, 1:03am UTC](https://discourse.processing.org/t/confusion-on-classes-and-objects/22838 "2020-07-26T01:03:43Z")

</div>

Hello! I just started using classes in my processing games(as in, this is my first attempt). I am incredibly lost as to how to do it correctly. I looked at the processing 3 language reference and it doesn’t have much on …

---

## [How do I fix error "The operator && is undefined for the argument types boolean\[\], boolean"](https://discourse.processing.org/t/how-do-i-fix-error-the-operator-is-undefined-for-the-argument-types-boolean-boolean/21566)

<div class="topic-metadata">

**Author:** [@s.k9](https://discourse.processing.org/u/s.k9)\
**Replies:** 3\
**Last updated:** [July 25, 2020, 8:33pm UTC](https://discourse.processing.org/t/how-do-i-fix-error-the-operator-is-undefined-for-the-argument-types-boolean-boolean/21566 "2020-07-25T20:33:45Z")

</div>

Hi all, I am making a trivia game for a class project and I am getting this error I have not seen before and cannot figure out how to fix it. Context is I am using XML to load information into the game and overMulti is …

---

## [How to loop function when contact in Box2d](https://discourse.processing.org/t/how-to-loop-function-when-contact-in-box2d/22832)

<div class="topic-metadata">

**Author:** [@weijie](https://discourse.processing.org/u/weijie)\
**Replies:** 0\
**Last updated:** [July 25, 2020, 4:04pm UTC](https://discourse.processing.org/t/how-to-loop-function-when-contact-in-box2d/22832 "2020-07-25T16:04:10Z")

</div>

I am trying to create a program so that the robots and the box will attract to each other when they are in contact (figure below) I want them to keep being attracted when they are in contact But my problem now is the c…

---

## [Canvas size / dimensions on save](https://discourse.processing.org/t/canvas-size-dimensions-on-save/22829)

<div class="topic-metadata">

**Author:** [@Honkitonkie](https://discourse.processing.org/u/Honkitonkie)\
**Replies:** 3\
**Last updated:** [July 25, 2020, 4:01pm UTC](https://discourse.processing.org/t/canvas-size-dimensions-on-save/22829 "2020-07-25T16:01:37Z")

</div>

Hello, When I create a canvas of 1200\*627 and save it (saveCanvas or manually) the dimensions change to 2400 \* 1254. I believe this didn’t occur before so I figured it must be something I’ve done that triggered this but…

---

## [Selling a p5.js code](https://discourse.processing.org/t/selling-a-p5-js-code/22830)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 1\
**Last updated:** [July 25, 2020, 3:26pm UTC](https://discourse.processing.org/t/selling-a-p5-js-code/22830 "2020-07-25T15:26:45Z")

</div>

Hello I know very little of MIT licensing. I got two questions. First: Am I allowed to sell my processing.js or p5.js project without any trouble? I’m not talking about p5.js library; only the source code of the app I…

---

## [What’s new for Pi & ARM in 3.4](https://discourse.processing.org/t/what-s-new-for-pi-arm-in-3-4/2152)

<div class="topic-metadata">

**Author:** [@gohai](https://discourse.processing.org/u/gohai)\
**Replies:** 1\
**Last updated:** [July 25, 2020, 8:33am UTC](https://discourse.processing.org/t/what-s-new-for-pi-arm-in-3-4/2152 "2020-07-25T08:33:09Z")

</div>

Processing 3.4 is out of the oven. Here’s the build for ARM as well as our pre-configured Raspbian image. See our steps how to get started with this those. Hope you enjoy! What’s new in 3.4: IO: New example sketch sho…

---

## [Maths question relating to TAU](https://discourse.processing.org/t/maths-question-relating-to-tau/22828)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 1\
**Last updated:** [July 25, 2020, 2:38am UTC](https://discourse.processing.org/t/maths-question-relating-to-tau/22828 "2020-07-25T02:38:22Z")

</div>

The following code plots a circle which is going to be a path for an image or a Pshape to follow. Where I’ve used a = (i \* TAU) / 90 seems a bit clumsy and I’m wondering if anyone can suggest what I should have done here…

---

## [Error message when attempting to import Java library](https://discourse.processing.org/t/error-message-when-attempting-to-import-java-library/22799)

<div class="topic-metadata">

**Author:** [@11OutOf10](https://discourse.processing.org/u/11OutOf10)\
**Replies:** 2\
**Last updated:** [July 24, 2020, 9:59pm UTC](https://discourse.processing.org/t/error-message-when-attempting-to-import-java-library/22799 "2020-07-24T21:59:52Z")

</div>

As the title says. I was attempting to import java.util.random using “import java.util.random;” and got an error message: Libraries must be installed in a folder named ‘libraries’ inside the sketchbook folder (see the P…

---

## [Open Android wallpaper picker when launching live wallpaper apk created by Processing](https://discourse.processing.org/t/open-android-wallpaper-picker-when-launching-live-wallpaper-apk-created-by-processing/22811)

<div class="topic-metadata">

**Author:** [@shysd](https://discourse.processing.org/u/shysd)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 8:46pm UTC](https://discourse.processing.org/t/open-android-wallpaper-picker-when-launching-live-wallpaper-apk-created-by-processing/22811 "2020-07-24T20:46:15Z")

</div>

I’m using Calsign’s APDE for developing live wallpaper packages for Android, and it is working well. But as of now, (I think even for Processing) the created Live wallpaper signed and exported APK does not open the wallp…

---

## [Java Access Modifiers](https://discourse.processing.org/t/java-access-modifiers/22821)

<div class="topic-metadata">

**Author:** [@Markus](https://discourse.processing.org/u/Markus)\
**Replies:** 3\
**Last updated:** [July 24, 2020, 8:31pm UTC](https://discourse.processing.org/t/java-access-modifiers/22821 "2020-07-24T20:31:06Z")

</div>

https://processing.org/reference/private.html: This keyword is used to disallow other classes access to the fields and methods within a class. The private keyword is used before a field or method that you want to be ava…

---

## [Screen capture?](https://discourse.processing.org/t/screen-capture/22812)

<div class="topic-metadata">

**Author:** [@3rayio1](https://discourse.processing.org/u/3rayio1)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 8:28pm UTC](https://discourse.processing.org/t/screen-capture/22812 "2020-07-24T20:28:49Z")

</div>

Hello! Im new to coding and I really like the p5.js editor as it is simple to learn and non-intimidating. I want to see if there is a way to have the program recognise things that occur on my computer screen and have it …

---

## [Quad grid collisions and spacial partitioning](https://discourse.processing.org/t/quad-grid-collisions-and-spacial-partitioning/15426)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [July 24, 2020, 7:20pm UTC](https://discourse.processing.org/t/quad-grid-collisions-and-spacial-partitioning/15426 "2020-07-24T19:20:44Z")

</div>

Hi there, last time I posted about this question, I was attempting to create a program that would help in calculating collisions, in circular bodies, the standard calculation without any grid management involves n to the…

---

## [loadStrings only works in the editor](https://discourse.processing.org/t/loadstrings-only-works-in-the-editor/22807)

<div class="topic-metadata">

**Author:** [@CND](https://discourse.processing.org/u/CND)\
**Replies:** 3\
**Last updated:** [July 24, 2020, 5:43pm UTC](https://discourse.processing.org/t/loadstrings-only-works-in-the-editor/22807 "2020-07-24T17:43:55Z")

</div>

I downloaded this working sketch but it didn’t work on my desktop. Do I need a server to make loadStrings() get me a local disc file? I will downloaded the project in the future when I figure out how:) Mac 10.14.6. Th…

---

## [PeasyCam library - take more control](https://discourse.processing.org/t/peasycam-library-take-more-control/11899)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 3\
**Last updated:** [July 24, 2020, 1:41pm UTC](https://discourse.processing.org/t/peasycam-library-take-more-control/11899 "2020-07-24T13:41:22Z")

</div>

Hey all :slight\_smile: I use PeasyCam quite a lot, and I think many of you do too. It’s perfect for getting that immediate 3D camera, with minimum code. But when i dug a little deeper in the library docs I found some…

---

## [ArrayIndexOutOfBounds](https://discourse.processing.org/t/arrayindexoutofbounds/22809)

<div class="topic-metadata">

**Author:** [@Kai](https://discourse.processing.org/u/Kai)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 9:47am UTC](https://discourse.processing.org/t/arrayindexoutofbounds/22809 "2020-07-24T09:47:09Z")

</div>

Hello guys, I am new to processing and I’ve been recently trying to learn from some youtube tutorials. However, I encountered a problem and hope someone could help me to fix it. This is the link of the video I watched…

---

## [Parent function not using overwritten array from child](https://discourse.processing.org/t/parent-function-not-using-overwritten-array-from-child/22796)

<div class="topic-metadata">

**Author:** [@NikolafTheGreat](https://discourse.processing.org/u/NikolafTheGreat)\
**Replies:** 3\
**Last updated:** [July 24, 2020, 9:12am UTC](https://discourse.processing.org/t/parent-function-not-using-overwritten-array-from-child/22796 "2020-07-24T09:12:22Z")

</div>

I am coding an application and ran into an issue where I have created a function in the parent class that references an array also in the parent class. I then overwrite the array in a child class and run the parent funct…

---

## [Digital Aquatics](https://discourse.processing.org/t/digital-aquatics/9731)

<div class="topic-metadata">

**Author:** [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 8:36am UTC](https://discourse.processing.org/t/digital-aquatics/9731 "2020-07-24T08:36:24Z")

</div>

A Processing.py port of an old Nodebox sketch (by Lieven Menschaert ). It’s a great exercise for messing around with procedural generation. You can make these microbial beasties as simple or complex as you wish. sourc…

---

## [Controlp5 - got error that I can't understand](https://discourse.processing.org/t/controlp5-got-error-that-i-cant-understand/22730)

<div class="topic-metadata">

**Author:** [@marrrta](https://discourse.processing.org/u/marrrta)\
**Replies:** 6\
**Last updated:** [July 24, 2020, 7:48am UTC](https://discourse.processing.org/t/controlp5-got-error-that-i-cant-understand/22730 "2020-07-24T07:48:44Z")

</div>

Hi there, I got this error Can anyone help me on this please? Thank you lug 19, 2020 5:34:52 PM controlP5.ControlBroadcaster printMethodError GRAVE: An error occured while forwarding a Controller event, please check…

---

## [Windows style dialogue boxes](https://discourse.processing.org/t/windows-style-dialogue-boxes/22147)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 4\
**Last updated:** [July 24, 2020, 6:41am UTC](https://discourse.processing.org/t/windows-style-dialogue-boxes/22147 "2020-07-24T06:41:42Z")

</div>

I would like to use windows 10 style dialogue boxes, where should I start looking in-order to learn how do this within processing? The provided dialogue boxes in processing feel dated and seemingly cant return a valuePr…

---

## [Scaling a custom PShape without changing line thickness](https://discourse.processing.org/t/scaling-a-custom-pshape-without-changing-line-thickness/11437)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 10\
**Last updated:** [July 24, 2020, 6:35am UTC](https://discourse.processing.org/t/scaling-a-custom-pshape-without-changing-line-thickness/11437 "2020-07-24T06:35:31Z")

</div>

I am teaching myself to code through coding games, I am currently working on asteroids. I have a custom PShape called ast that uses a fair bit of vertices. I create a separate instance of it called n in the asteroid cl…

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

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