Toby suggested that adding a pause button would be beneficial to the program. In order to do this I needed to look in to noLoop() and loop(), which are both Processing functions to stop Processing from calling draw() and then to resume calling draw(). This lead me to https://forum.processing.org/one/topic/start-stop-pause-processing.html which user GoToLoop describes how toContinue reading “Adding a Pause Button”
Category Archives: Uncategorized
Threading and Phillips Hue
Updating the Phillips Hue was giving some performance issues, since it would pause the sketch until it sent its PUT HTTP request. Although this didn’t happen every time, when it did happen it would pause the visualisation for about half a second which took away from the immersive experience I was looking to create inContinue reading “Threading and Phillips Hue”
Updating the Lissajous Figure
I have updated the Lissajous figure so that it will come out of the FFT spectrum in the middle of my sketch. The FFT spectrum used to look like this: To incorporate the Lissajous figure, I found where the parametric equations gave a line that was near the FFT spectrum and used an if statementContinue reading “Updating the Lissajous Figure”
Incorporating Phillips Hue
Phillips Hue uses the CIE colour mode; it takes just two float inputs between 0 and 1 instead of the three inputs for RGB. Therefore, I need to be able to convert from RGB to CIE. Luckily, Tim on StackOverflow has uploaded a function to convert RGB to CIE specifically for Phillips Hue (https://stackoverflow.com/questions/22564187/rgb-to-philips-hue-hsb). IContinue reading “Incorporating Phillips Hue”
Controlling Phillips Hue using Processing
Firstly, I used https://developers.meethue.com/develop/get-started-2/ to find the IP address that my Phillips Hue Bridge was on, generate an API key, as well as looking at what lights I have connected. There is also some information on what HTTP requests are used to control the light; I have used GET requests to see what state theContinue reading “Controlling Phillips Hue using Processing”
Parametric Equations
A parametric equation is an equation that are mainly used to express point co-ordinates. The x and y values are expressed in terms of another independent variable; usually t. This independent variable is then usually expressed as a trigonometric function such as sine or cosine. I have used parametric equations to create a 3D lookingContinue reading “Parametric Equations”
Adjusting the FFT Visuals
The main visualisation of the frequency bands from the FFT values is a circular ring in the middle of the screen where each line represents a frequency band. I have added a change to how this is visualised. Instead of it being just a normal circular shape, I have added some effects so the shapeContinue reading “Adjusting the FFT Visuals”
Circular Shapes
When I initially implemented the moving circular shapes in the background, the majority of the shape’s attributes were randomised. I then went about changing the randomness and having each attribute be directly affected by an element of the music. A new circle appears every time there is a beat. Once there are 20 circles onContinue reading “Circular Shapes”
Morphing Shapes
I have been trying to get some of the background objects to morph between different shapes. At the moment, I am drawing the background circles using the ellipse() function. I know you can morph between shapes after seeing this: https://processing.org/examples/morph.html. I attempted to make a different kind of object that will flick between both aContinue reading “Morphing Shapes”
Dynamic Background
After my last meeting with Toby, a suggestion was made to fade different colours in the background. The colours being faded into would have some correlation to the sum of the frequencies within a 5 second period and would go on indefinitely while a song was running. To do this, I first attempted to drawContinue reading “Dynamic Background”