# Processing

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

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

**Page:** 191

---

## [How do you choose what class you add to a list with a variable?](https://discourse.processing.org/t/how-do-you-choose-what-class-you-add-to-a-list-with-a-variable/22987)

<div class="topic-metadata">

**Author:** [@no\_spaces](https://discourse.processing.org/u/no_spaces)\
**Replies:** 4\
**Last updated:** [August 2, 2020, 8:36pm UTC](https://discourse.processing.org/t/how-do-you-choose-what-class-you-add-to-a-list-with-a-variable/22987 "2020-08-02T20:36:48Z")

</div>

So I want to do something like this, where you add a new instance of a class determined by a variable (trust me, I have a good reason for this, but I can’t tell…) Class type; dummy1 list\[\] = new dummy1\[3\]; void setup()…

---

## [Would anyone know how to get the tempo/speed of a song using import processing.sound.\* library?](https://discourse.processing.org/t/would-anyone-know-how-to-get-the-tempo-speed-of-a-song-using-import-processing-sound-library/22928)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 8\
**Last updated:** [August 2, 2020, 1:40pm UTC](https://discourse.processing.org/t/would-anyone-know-how-to-get-the-tempo-speed-of-a-song-using-import-processing-sound-library/22928 "2020-08-02T13:40:24Z")

</div>

Been trying to search through the Internet. I can’t quite seem to find anything in regards to how to get the tempo/speed of a song, does anyone know any built in function or even a library? Edit: I tried to use the Mini…

---

## [Get User Input and Save It](https://discourse.processing.org/t/get-user-input-and-save-it/22935)

<div class="topic-metadata">

**Author:** [@greenArtist7](https://discourse.processing.org/u/greenArtist7)\
**Replies:** 11\
**Last updated:** [August 2, 2020, 11:10am UTC](https://discourse.processing.org/t/get-user-input-and-save-it/22935 "2020-08-02T11:10:53Z")

</div>

Hello, I need to create an app using processing for a homework assignment. I’m thinking about an app that requires the user to input text information, and use that to randomize a selection. What would be the best way fo…

---

## [Changing strokeweight / radius when mousePressed](https://discourse.processing.org/t/changing-strokeweight-radius-when-mousepressed/22871)

<div class="topic-metadata">

**Author:** [@karate29](https://discourse.processing.org/u/karate29)\
**Replies:** 13\
**Last updated:** [August 2, 2020, 12:40pm UTC](https://discourse.processing.org/t/changing-strokeweight-radius-when-mousepressed/22871 "2020-08-02T12:40:32Z")

</div>

I am trying to create a free hand drawing program. I already made the colors and when you press them it changes the color and you can draw with the selected color. The problem I am coming across is I want the user to be …

---

## [With 'Essentia', is this compatible with Processing? Additionally can it get the tempo, key signature and loudness?](https://discourse.processing.org/t/with-essentia-is-this-compatible-with-processing-additionally-can-it-get-the-tempo-key-signature-and-loudness/22967)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 6\
**Last updated:** [August 2, 2020, 12:26pm UTC](https://discourse.processing.org/t/with-essentia-is-this-compatible-with-processing-additionally-can-it-get-the-tempo-key-signature-and-loudness/22967 "2020-08-02T12:26:51Z")

</div>

I was looking at Essentia and it said it is compatible with Python and JavaScript but I am not sure if this is compatible with Processing or not? This library deals with audio. Here is the link to its Github repo https:/…

---

## [Storing points to create gradient of shapes](https://discourse.processing.org/t/storing-points-to-create-gradient-of-shapes/21635)

<div class="topic-metadata">

**Author:** [@mrbro](https://discourse.processing.org/u/mrbro)\
**Replies:** 8\
**Last updated:** [August 2, 2020, 9:14am UTC](https://discourse.processing.org/t/storing-points-to-create-gradient-of-shapes/21635 "2020-08-02T09:14:18Z")

</div>

Hi There! So I am trying to create a smooth gradation of polygons using storing. I need to dynamically change the amount of points and store them to fade consequently. However, the code changes all the polygons at t…

---

## [I can't add stuff to my array](https://discourse.processing.org/t/i-cant-add-stuff-to-my-array/18772)

<div class="topic-metadata">

**Author:** [@alkilum](https://discourse.processing.org/u/alkilum)\
**Replies:** 10\
**Last updated:** [August 2, 2020, 4:48am UTC](https://discourse.processing.org/t/i-cant-add-stuff-to-my-array/18772 "2020-08-02T04:48:38Z")

</div>

I have an short\[\] array, and i want to add a bunch of 0s to it. Here is my code: size(800,600); short \[\] visible; for(int n=0;n\<2985984;n+=1) { visible.add(0); } I get an error saying “Cannot invoke add(int) an th…

---

## [Cannot specify sphereDetail when using createShape SPHERE](https://discourse.processing.org/t/cannot-specify-spheredetail-when-using-createshape-sphere/22912)

<div class="topic-metadata">

**Author:** [@danieltorrer](https://discourse.processing.org/u/danieltorrer)\
**Replies:** 3\
**Last updated:** [August 2, 2020, 2:41am UTC](https://discourse.processing.org/t/cannot-specify-spheredetail-when-using-createshape-sphere/22912 "2020-08-02T02:41:34Z")

</div>

When creating a sphere() you are able to specify the number of vertices it has if you previously call sphereDetail(). However seems that there is no way to specify the detail when using createShape(SPHERE, size). Does a…

---

## [Using the FFT library, is it possible to get the beats per minute?](https://discourse.processing.org/t/using-the-fft-library-is-it-possible-to-get-the-beats-per-minute/22965)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 5\
**Last updated:** [August 2, 2020, 2:11am UTC](https://discourse.processing.org/t/using-the-fft-library-is-it-possible-to-get-the-beats-per-minute/22965 "2020-08-02T02:11:33Z")

</div>

Using the FFT library, is it possible to get the beats per minute? If so what would I type exactly?

---

## [Can I make fill() static?](https://discourse.processing.org/t/can-i-make-fill-static/22978)

<div class="topic-metadata">

**Author:** [@alkilum](https://discourse.processing.org/u/alkilum)\
**Replies:** 4\
**Last updated:** [August 2, 2020, 2:01am UTC](https://discourse.processing.org/t/can-i-make-fill-static/22978 "2020-08-02T02:01:04Z")

</div>

So I wanted to call fill() in a subroutine and it apparently cannot be called in a static function. So I removed the static keyword and now there is no error, but the function doesn’t work anymore, it simply renders the …

---

## [Is it possible for me to use the 'aubio' library for processing?](https://discourse.processing.org/t/is-it-possible-for-me-to-use-the-aubio-library-for-processing/22963)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 8\
**Last updated:** [August 1, 2020, 1:18pm UTC](https://discourse.processing.org/t/is-it-possible-for-me-to-use-the-aubio-library-for-processing/22963 "2020-08-01T13:18:21Z")

</div>

Is it possible for me to use the aubio library for processing?

---

## [loadImage does not Load Image from data folder](https://discourse.processing.org/t/loadimage-does-not-load-image-from-data-folder/22951)

<div class="topic-metadata">

**Author:** [@JohnnyWhy](https://discourse.processing.org/u/JohnnyWhy)\
**Replies:** 7\
**Last updated:** [August 1, 2020, 12:46pm UTC](https://discourse.processing.org/t/loadimage-does-not-load-image-from-data-folder/22951 "2020-08-01T12:46:51Z")

</div>

2020-07-31T07:00:00Z (UTC) I am using the loadImage example, and definately have the image saved in the data folder of the active sketch. Except for the web URL example below, I get the error message: “The file “moire.…

---

## [How to load the HTLM from HTTPS](https://discourse.processing.org/t/how-to-load-the-htlm-from-https/22956)

<div class="topic-metadata">

**Author:** [@Dozii](https://discourse.processing.org/u/Dozii)\
**Replies:** 1\
**Last updated:** [July 31, 2020, 8:11pm UTC](https://discourse.processing.org/t/how-to-load-the-htlm-from-https/22956 "2020-07-31T20:11:37Z")

</div>

I try to load the html from https, but loadImage doesn’t work. Load from https://unicorninwonderland.com/ void setup(){ // Load from https://unicorninwonderland.com/ PImage image = loadImage( "https://unicorninwond…

---

## [Removing objects from ArrayList doesnt work after index higher than 0](https://discourse.processing.org/t/removing-objects-from-arraylist-doesnt-work-after-index-higher-than-0/22930)

<div class="topic-metadata">

**Author:** [@Bastilling](https://discourse.processing.org/u/Bastilling)\
**Replies:** 5\
**Last updated:** [July 31, 2020, 3:26pm UTC](https://discourse.processing.org/t/removing-objects-from-arraylist-doesnt-work-after-index-higher-than-0/22930 "2020-07-31T15:26:45Z")

</div>

Hey! I have been using Processing recently to create small games just for fun since I am stuck at home a lot due to the Covid 19 Situation. So this is my first time posting on the forum because I ran into a problem this…

---

## [Writing a rotate() to PGraphics for SVG output seems to convert to degrees](https://discourse.processing.org/t/writing-a-rotate-to-pgraphics-for-svg-output-seems-to-convert-to-degrees/22861)

<div class="topic-metadata">

**Author:** [@makoho](https://discourse.processing.org/u/makoho)\
**Replies:** 3\
**Last updated:** [July 31, 2020, 11:06am UTC](https://discourse.processing.org/t/writing-a-rotate-to-pgraphics-for-svg-output-seems-to-convert-to-degrees/22861 "2020-07-31T11:06:21Z")

</div>

I have exported a drawing that I create on a PGraphics object for SVG like this: p = createGraphics((int)drawingSize.x, (int)drawingSize.y, SVG, filename + ".svg"); p.beginDraw(); float angleIncrement = TAU/lineCo…

---

## [How do I maximize the sketch window?](https://discourse.processing.org/t/how-do-i-maximize-the-sketch-window/11620)

<div class="topic-metadata">

**Author:** [@notcatfish2017](https://discourse.processing.org/u/notcatfish2017)\
**Replies:** 12\
**Last updated:** [July 31, 2020, 4:00am UTC](https://discourse.processing.org/t/how-do-i-maximize-the-sketch-window/11620 "2020-07-31T04:00:11Z")

</div>

Hi, How do I maximize the sketch window? (not fullscreen) Thanks!

---

## [Using Minim in processing, how do I get the tempo of an audio file?](https://discourse.processing.org/t/using-minim-in-processing-how-do-i-get-the-tempo-of-an-audio-file/22864)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 5\
**Last updated:** [July 31, 2020, 12:41am UTC](https://discourse.processing.org/t/using-minim-in-processing-how-do-i-get-the-tempo-of-an-audio-file/22864 "2020-07-31T00:41:55Z")

</div>

Using Minim in processing, how do I get the tempo of an audio file? I have been trying to search the Internet but I got no clue as to how to do this?

---

## [Is P3D inherently slow and/or is there a fast alternative?](https://discourse.processing.org/t/is-p3d-inherently-slow-and-or-is-there-a-fast-alternative/22889)

<div class="topic-metadata">

**Author:** [@capbap](https://discourse.processing.org/u/capbap)\
**Replies:** 7\
**Last updated:** [July 30, 2020, 9:25pm UTC](https://discourse.processing.org/t/is-p3d-inherently-slow-and-or-is-there-a-fast-alternative/22889 "2020-07-30T21:25:17Z")

</div>

I started making a simple 3d game in processing using P3D, but it lags severely when drawing more than about 5,000 textured rectangles. Here is the code that I am using to draw the rectangles. void disp(PImage img) { …

---

## [About Google Maps](https://discourse.processing.org/t/about-google-maps/22925)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 3\
**Last updated:** [July 30, 2020, 11:13am UTC](https://discourse.processing.org/t/about-google-maps/22925 "2020-07-30T11:13:18Z")

</div>

Is there a way to display values on a map or on google maps

---

## [Draw a number on each side of a box](https://discourse.processing.org/t/draw-a-number-on-each-side-of-a-box/22916)

<div class="topic-metadata">

**Author:** [@hugoromo](https://discourse.processing.org/u/hugoromo)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 2:13am UTC](https://discourse.processing.org/t/draw-a-number-on-each-side-of-a-box/22916 "2020-07-30T02:13:10Z")

</div>

Hello, I think a possible solution would be using the shapes3d library and drawing a PImage on each side of the box. But I’m new with all this and I wasn’t able to come up with a solution using this library, so I was wo…

---

## [Lost keyPressed events](https://discourse.processing.org/t/lost-keypressed-events/22903)

<div class="topic-metadata">

**Author:** [@marek](https://discourse.processing.org/u/marek)\
**Replies:** 3\
**Last updated:** [July 29, 2020, 8:52pm UTC](https://discourse.processing.org/t/lost-keypressed-events/22903 "2020-07-29T20:52:15Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’m using the SHIFT and ALT keys as modifiers on mouse operations, but seem to be losing keyPressed events on the ALT key. Simple code example b…

---

## [Adding texture to 2D circle](https://discourse.processing.org/t/adding-texture-to-2d-circle/22914)

<div class="topic-metadata">

**Author:** [@Chafari](https://discourse.processing.org/u/Chafari)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 8:13pm UTC](https://discourse.processing.org/t/adding-texture-to-2d-circle/22914 "2020-07-29T20:13:39Z")

</div>

Hi there . Is it possible to asign an image to a 2D circle or it must be a p3D shape? Edit. Stupid me !! I should have read references first.

---

## [Memory leak with size() and setResizable()](https://discourse.processing.org/t/memory-leak-with-size-and-setresizable/22887)

<div class="topic-metadata">

**Author:** [@processor1](https://discourse.processing.org/u/processor1)\
**Replies:** 2\
**Last updated:** [July 29, 2020, 7:33pm UTC](https://discourse.processing.org/t/memory-leak-with-size-and-setresizable/22887 "2020-07-29T19:33:02Z")

</div>

Hi everyone, I have exported a processing application (version 3.5.3) to Eclipse using the proclipsing plugin in order to identify a memory leak. The leak points to PGraphics and after playing around with the code a lit…

---

## [Processing does not run code, Java related issues for Arch-Linux based operating system](https://discourse.processing.org/t/processing-does-not-run-code-java-related-issues-for-arch-linux-based-operating-system/22860)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 16\
**Last updated:** [July 29, 2020, 5:27pm UTC](https://discourse.processing.org/t/processing-does-not-run-code-java-related-issues-for-arch-linux-based-operating-system/22860 "2020-07-29T17:27:27Z")

</div>

// Declaring the sound Library import ddf.minim.\*; // Declearing global class variables Minim minim; AudioPlayer audio; void setup() { minim = new Minim(this); audio = minim.loadFile("audio.mp3"); size(800, 80…

---

## [Geomerative: controlling caps and joins appearances](https://discourse.processing.org/t/geomerative-controlling-caps-and-joins-appearances/22910)

<div class="topic-metadata">

**Author:** [@Eamoex](https://discourse.processing.org/u/Eamoex)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 5:08pm UTC](https://discourse.processing.org/t/geomerative-controlling-caps-and-joins-appearances/22910 "2020-07-29T17:08:54Z")

</div>

Hello Everyone, I am trying to learn how to use Geomerative to achieve a specific effect. I want to map/grow an SVG path according to a unit value (0.0 - 1.0). This code works well, but I can’t change the style of the c…

---

## [Editing Processing IDE shortcuts / hotkeys?](https://discourse.processing.org/t/editing-processing-ide-shortcuts-hotkeys/22894)

<div class="topic-metadata">

**Author:** [@pablohotsauce](https://discourse.processing.org/u/pablohotsauce)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 3:10pm UTC](https://discourse.processing.org/t/editing-processing-ide-shortcuts-hotkeys/22894 "2020-07-29T15:10:28Z")

</div>

Is there a way to edit the default shortcuts used in the Processing IDE? In particular, I want to change Redo’s shortcut away from the default Ctrl+Y to Ctrl+Shift+Z. Is there a custom line I can add to preferences.txt…

---

## [Challenges with static methods](https://discourse.processing.org/t/challenges-with-static-methods/22904)

<div class="topic-metadata">

**Author:** [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 2:12pm UTC](https://discourse.processing.org/t/challenges-with-static-methods/22904 "2020-07-29T14:12:31Z")

</div>

There have been a few questions about static methods with processing IDE. Because everything in Processing IDE is nested code static methods can be used only with static classes (https://discourse.processing.org/t/questi…

---

## [How can i get value from optical flow? (PixelFlow libary)](https://discourse.processing.org/t/how-can-i-get-value-from-optical-flow-pixelflow-libary/22896)

<div class="topic-metadata">

**Author:** [@NodKeras](https://discourse.processing.org/u/NodKeras)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 6:06am UTC](https://discourse.processing.org/t/how-can-i-get-value-from-optical-flow-pixelflow-libary/22896 "2020-07-29T06:06:13Z")

</div>

Hello, I’m trying to get direction and length values of those line in screanshot but i’m stucked in long time. Is there any way to get these value in to processing? If so, how can i do it? This is the OpticalFlow\_Basi…

---

## [Get most recent online file?](https://discourse.processing.org/t/get-most-recent-online-file/22879)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 3\
**Last updated:** [July 29, 2020, 3:20am UTC](https://discourse.processing.org/t/get-most-recent-online-file/22879 "2020-07-29T03:20:28Z")

</div>

Imagine a public directory online, like this one: https://neo.sci.gsfc.nasa.gov/archive/rgb/MOD\_LSTD\_E/ This directory has a file put into it usually every 8 days. I would like to get the newest file whenever the sketch…

---

## [saveFrame to byte array](https://discourse.processing.org/t/saveframe-to-byte-array/22840)

<div class="topic-metadata">

**Author:** [@alexis.lacasse.1](https://discourse.processing.org/u/alexis.lacasse.1)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 11:25pm UTC](https://discourse.processing.org/t/saveframe-to-byte-array/22840 "2020-07-28T23:25:07Z")

</div>

Hi, I’m making an HTTP server using processing. This server will host an HTML file and an image. The HTML file will tell the clients browser to request and display the image periodically. The image is the last frame dre…

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

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