# Libraries

**URL:** https://discourse.processing.org/c/processing/processing-libraries/19.md?page=36

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

**Page:** 37

---

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

---

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

---

## [First Person View Cam (FPVCam)](https://discourse.processing.org/t/first-person-view-cam-fpvcam/22816)

<div class="topic-metadata">

**Author:** [@LuisFerreira](https://discourse.processing.org/u/LuisFerreira)\
**Replies:** 10\
**Last updated:** [July 27, 2020, 8:06pm UTC](https://discourse.processing.org/t/first-person-view-cam-fpvcam/22816 "2020-07-27T20:06:00Z")

</div>

Hello everyone, I spent some time searching for ways or libraries to move a camera with the WASD keys but i could never find something, until now… I didn’t want to reinvent the wheel, and since Peasycam is one of the mo…

---

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

---

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

---

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

---

## [Tuple problem in processing](https://discourse.processing.org/t/tuple-problem-in-processing/22789)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 5\
**Last updated:** [July 24, 2020, 5:01am UTC](https://discourse.processing.org/t/tuple-problem-in-processing/22789 "2020-07-24T05:01:28Z")

</div>

I’m working with a magnetometer and want to port a calibration program to processing. The problem is it relies on Tuples and was originally written in C#. It looked a lot like Java so I stuck it in a sketch to see what…

---

## [Beginner help with sound and interaction of objects](https://discourse.processing.org/t/beginner-help-with-sound-and-interaction-of-objects/22743)

<div class="topic-metadata">

**Author:** [@ahagele](https://discourse.processing.org/u/ahagele)\
**Replies:** 3\
**Last updated:** [July 20, 2020, 1:18pm UTC](https://discourse.processing.org/t/beginner-help-with-sound-and-interaction-of-objects/22743 "2020-07-20T13:18:43Z")

</div>

I am very VERY new at coding and I’m not sure how to make it so if the apple touches the basket then the score will increase by one; instead the score increases by one when it crosses the Y-axis of the basket so every ti…

---

## [Each argument is accessed by a MIDI controller. Camera eyeX,Y,Z control](https://discourse.processing.org/t/each-argument-is-accessed-by-a-midi-controller-camera-eyex-y-z-control/22716)

<div class="topic-metadata">

**Author:** [@sq20](https://discourse.processing.org/u/sq20)\
**Replies:** 1\
**Last updated:** [July 19, 2020, 9:48am UTC](https://discourse.processing.org/t/each-argument-is-accessed-by-a-midi-controller-camera-eyex-y-z-control/22716 "2020-07-19T09:48:39Z")

</div>

I’m trying to control the camera view using a MIDI controller. For each knob, we want to control it by attaching it to X, Y, and Z. But when I do X,Y,Z control in my code, when I touch the X knob, other knobs such as Y…

---

## [Could not run the sketch (Target VM failed to initialize). Kinect V2](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize-kinect-v2/22687)

<div class="topic-metadata">

**Author:** [@HugoD](https://discourse.processing.org/u/HugoD)\
**Replies:** 0\
**Last updated:** [July 17, 2020, 2:20pm UTC](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize-kinect-v2/22687 "2020-07-17T14:20:30Z")

</div>

Hi, I’m getting this error when I run the examples from the OpenCV\_Processing library with a kinect V2. “Could not run the sketch (Target VM failed to initialize).” I’m using Windows 10 Pro 64-bit Intel® Core™ i7-975…

---

## [About Live Video Capturing](https://discourse.processing.org/t/about-live-video-capturing/22298)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 8\
**Last updated:** [July 16, 2020, 2:36pm UTC](https://discourse.processing.org/t/about-live-video-capturing/22298 "2020-07-16T14:36:24Z")

</div>

Is there a way to capture live videos and render those live videos

---

## [Problem mapping audio to different output device](https://discourse.processing.org/t/problem-mapping-audio-to-different-output-device/22663)

<div class="topic-metadata">

**Author:** [@chickman](https://discourse.processing.org/u/chickman)\
**Replies:** 0\
**Last updated:** [July 16, 2020, 2:22pm UTC](https://discourse.processing.org/t/problem-mapping-audio-to-different-output-device/22663 "2020-07-16T14:22:13Z")

</div>

Hey guys, I’m trying to play audio files to a different sound card connected to my laptop. I attached my code below. I keep getting the following error when attempting to write to the sound card (I do this through line …

---

## [Sound library lag](https://discourse.processing.org/t/sound-library-lag/22632)

<div class="topic-metadata">

**Author:** [@Bubloo7](https://discourse.processing.org/u/Bubloo7)\
**Replies:** 0\
**Last updated:** [July 15, 2020, 8:24am UTC](https://discourse.processing.org/t/sound-library-lag/22632 "2020-07-15T08:24:50Z")

</div>

Hi, I’m a beginner to processing and I’m trying to use the sound library. It works as it should but whenever I run the sketch it takes 2-3 minutes of loading before the sketch actually starts. While it’s loading, all I s…

---

## [Mapping sound files to different sound cards](https://discourse.processing.org/t/mapping-sound-files-to-different-sound-cards/22616)

<div class="topic-metadata">

**Author:** [@chickman](https://discourse.processing.org/u/chickman)\
**Replies:** 0\
**Last updated:** [July 14, 2020, 3:11pm UTC](https://discourse.processing.org/t/mapping-sound-files-to-different-sound-cards/22616 "2020-07-14T15:11:00Z")

</div>

Hi! I’m trying to play different WAV files to different sound cards. I’m going to have 6 sound cards connected (Over a Dante audio network). I see that with a “Sound” object you can select the output device (Ex: Sound zo…

---

## [Hardware optimization for the Hamoid Video Export Library (FFMPEG)](https://discourse.processing.org/t/hardware-optimization-for-the-hamoid-video-export-library-ffmpeg/22617)

<div class="topic-metadata">

**Author:** [@gudmundursteinn](https://discourse.processing.org/u/gudmundursteinn)\
**Replies:** 0\
**Last updated:** [July 14, 2020, 3:18pm UTC](https://discourse.processing.org/t/hardware-optimization-for-the-hamoid-video-export-library-ffmpeg/22617 "2020-07-14T15:18:39Z")

</div>

I’m a big fan of the Hamoid Video Export Library and have been using it recently with great results. I do have encountered frame drop with some sketches, however, and usually, they are longer, and have more things going …

---

## [Processing PRError: setPenT4: invalid pen transformation (singular)](https://discourse.processing.org/t/processing-prerror-setpent4-invalid-pen-transformation-singular/22595)

<div class="topic-metadata">

**Author:** [@Leo\_Aguiar](https://discourse.processing.org/u/Leo_Aguiar)\
**Replies:** 0\
**Last updated:** [July 13, 2020, 8:57pm UTC](https://discourse.processing.org/t/processing-prerror-setpent4-invalid-pen-transformation-singular/22595 "2020-07-13T20:57:59Z")

</div>

Hi forum, I was working on a sketch using the scale() function and a control P5 slider to set one of the values for it. I got the above error when one of the scale parameters was set to zero. I couldn’t find any documen…

---

## [About 3D Animations](https://discourse.processing.org/t/about-3d-animations/22556)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 1\
**Last updated:** [July 12, 2020, 3:01pm UTC](https://discourse.processing.org/t/about-3d-animations/22556 "2020-07-12T15:01:56Z")

</div>

I’m Trying to understand how “Collada Loader For SketchUp and Blender” works. Can I visualise my 3D Object and move it as I want ?

---

## ['serverEvent' operates within the time of performing the delay in 'draw()'](https://discourse.processing.org/t/serverevent-operates-within-the-time-of-performing-the-delay-in-draw/22548)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [July 11, 2020, 11:12pm UTC](https://discourse.processing.org/t/serverevent-operates-within-the-time-of-performing-the-delay-in-draw/22548 "2020-07-11T23:12:19Z")

</div>

import processing.net.\*; int port = 10002; Server myServer; long COUNT\_NUM = 0; void setup() { size(400, 400); background(0); myServer = new Server(this, port); } void draw() { background(255); delay(10000); …

---

## [Getting file length in minutes with minim](https://discourse.processing.org/t/getting-file-length-in-minutes-with-minim/22555)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 4\
**Last updated:** [July 12, 2020, 7:15am UTC](https://discourse.processing.org/t/getting-file-length-in-minutes-with-minim/22555 "2020-07-12T07:15:33Z")

</div>

The length() function gives it in miliseconds as an integer so dividing doesn’t work. Did some research but couldn’t find anything and it seems like there is no other function similar to length(). Can somebody help?

---

## [MIDI: from Processing to DAW (Windows)](https://discourse.processing.org/t/midi-from-processing-to-daw-windows/22411)

<div class="topic-metadata">

**Author:** [@minty](https://discourse.processing.org/u/minty)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 2:03pm UTC](https://discourse.processing.org/t/midi-from-processing-to-daw-windows/22411 "2020-07-10T14:03:54Z")

</div>

I’m trying to get my Processing sketch to send MIDI to my DAW. Running the AdvancedMIDIMessageIO example from TheMIDIBus, I can send note on / off messages to Microsoft Sound Mapper and hear the built-in general MIDI in…

---

## [A music player that automatically adds .wav or .mp3 files in the data folder to list?](https://discourse.processing.org/t/a-music-player-that-automatically-adds-wav-or-mp3-files-in-the-data-folder-to-list/22473)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 9\
**Last updated:** [July 8, 2020, 6:05pm UTC](https://discourse.processing.org/t/a-music-player-that-automatically-adds-wav-or-mp3-files-in-the-data-folder-to-list/22473 "2020-07-08T18:05:24Z")

</div>

So I’m trying to make a music player using the minim library and here is the code: import ddf.minim.analysis.\*; import ddf.minim.\*; BeatDetect heart = new BeatDetect(); Minim minim; AudioPlayer file; FFT …

---

## [VIDEO CAPTURE Processing 3.5.4 and Mojave/Catalina - 64 bit](https://discourse.processing.org/t/video-capture-processing-3-5-4-and-mojave-catalina-64-bit/22460)

<div class="topic-metadata">

**Author:** [@ggort](https://discourse.processing.org/u/ggort)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 3:56pm UTC](https://discourse.processing.org/t/video-capture-processing-3-5-4-and-mojave-catalina-64-bit/22460 "2020-07-08T15:56:17Z")

</div>

Has anyone worked out the Video Capture function for 64 bit? I teach and rely on it for classroom examples. Will this be bundled in any new versions of Processing or video libraries so the corrections don’t have to be do…

---

## [Movie plays nomore, from one day to another](https://discourse.processing.org/t/movie-plays-nomore-from-one-day-to-another/22434)

<div class="topic-metadata">

**Author:** [@qualidax](https://discourse.processing.org/u/qualidax)\
**Replies:** 0\
**Last updated:** [July 6, 2020, 11:45pm UTC](https://discourse.processing.org/t/movie-plays-nomore-from-one-day-to-another/22434 "2020-07-06T23:45:42Z")

</div>

PC with Windows 7 Pro 64 Bit. My app plays a mp4 video since twoo years in a museum. Nobody has changed the system. From one day to another, it does not play my video. I must see this message after killing my app by task…

---

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

---

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

---

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

---

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

---

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

---

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

[Previous page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=35)

[Next page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=37)
