YAML in Processing?
Are there any example code / are there any recommended libraries for parsing YAML in Processing? I am aware of loadJSON() etc., in the reference / API, but would greatly prefer to add YAML headers to...
View ArticleSound Loops Not Working
Hello, I was just wondering if anyone knows why my sound won't loop, I am trying to make background music but it won't loop. Any help would be great, thanks. (I know it's just the default processing...
View ArticleControlP5: Keep the value label placement steady at a certain place for a...
Heyy! I am using ControlP5 for project! Anybody know how to keep the value label placement steady at a certain place for a vertical slider? Default it is set to follow the bar within the slider as you...
View Articlehow to play sound when mouse pressed
I want a 1 second sound to play when mouse is pressed in the following code that I have so far. I am new to programing and the problem is that I cannot find out where and how to write the code for...
View ArticleSaving the results of inverse FFT as an audio file
Hi there, I have just recently (last night, really) started using Processing and the Minim library with the intention to do some sound processing. The idea is to load an audio file (both for live and...
View ArticleOpen CV
Hi everyone, I need your help with open CV, I would like to learn to use the librairy Open CV but I have a problem I can't install this library : https://github.com/opencv/opencv/wiki/ChangeLog I use...
View ArticleControlP5: User enters text (DNA) in Text field, output as text drawn char by...
Hey all. I'm quite new to Processing and I'm starting a first project in which I want to display DNA drawn by a user on screen following their mouse. For now DNA (consisting of four letters A,C,T,G )...
View ArticleReading .CSV file and displaying visuals in accordance with the data
Hello everyone, I have a spreadsheet with the first 1 million numbers in PI. The goal is to have different visuals displayed along with music tones in accordance with the numbers in the chart (0-9)....
View ArticleThe Midibus, Examples, Basic: Not receiving noteOn() and noteOff.
Hello, I am trying to connect my Midistudio2-keyboard to a processing 3 sketch with the midibus library. (under Ubuntu 14.04) Starting the file "Basic" of the examples I get this output: Available MIDI...
View ArticleHow to constrain body movement when using box2d ?
Hi, I'm trying to limit the movement of my hero in a 2d game using box2d. Here is the MCVE of what I'm trying to do. As in my previous post, no error pops up but my hero can still roam outside the...
View Articlebox2D collisions and chainshape failing
So... i was making "the nature of code chapter 5" that uses Pbox2D to work with physics. Here are the tutorials : https://www.youtube.com/playlist?list=PLRqwX-V7Uu6akvoNKE4GAxf6ZeBYoJ4uh Okay, so I...
View ArticleHow to connect points generated from a for loop
Hi everyone! I'm working on a function plotter, utilizing controlP5 as an interface, so that I can easily manipulate the values of the functions. The problem is that im generating points to make the...
View ArticleChanging color wheel settings - controlP5
Hey! I would like to be able to control the settings for this color wheel. I would like to remove the grey background behind the color wheel, so its just the wheel and a white background all over +...
View ArticleVideo error on reverse on video library
Hi! Im made this sketch but as soon as I hit reverse on the videolibrary with help of negative movie.speed it causes a error. Any solution?: (Processing core video:475): GStreamer-WARNING **: wrong...
View ArticleHow can i use an image inside of an simple point marker
Hi Im really new in programming and im trying to use an image.png like a parameter of a draw() method of simplePointMarker (PGraphics pg, float x, float y) and i cant figure how i suppose to do it i...
View ArticleThe package http does not exist in SimplehttpServer
I have downloaded the SimplehttpServer library, extracted the zip and put into the libraries folder. Even when i run a simple example, I recieve a "The package http does not exist" the code is: import...
View ArticleHow to avoid lag when using parallax effect in fullscreen ?
Hi, I'm making a 2D game with, hopefully, side-scrolling. Following a discussion with Chrisir, I'm posting my lag issue here with a MCVE. I run the following code and when I add the parallax function...
View ArticleHow can you 'split' the void draw, in a part that doesn't loop and a part...
I wrote a code that I want to connect to a arduino. If you press a button, you should see an animation and hear a sound. I wrote the code for the animation and the sound in two different functions (one...
View ArticleThe constructor "Sdrop(xx_xx)" does not exist.
Hi, I am working on a code (still really new) and I get the error of : The constructor "Sdrop (knitty_main)" does not exist. void setup() { dh = new DisposeHandler(this); knittySettings = new...
View ArticleHow to avoid failure of the beginContact() function when using box2d?
Hi everyone, I'm making a 2d game and I've implemented collisions with box2d. Now, I get this error almost everytime I run my code, usually after a few seconds : Could not invoke the "beginContact()"...
View Article