Sonic Pi was a very interesting program that allowed me to make music pieces by coding which made me understand much better the concept of loop, thread, variables and others. It was in a way that it was actually fun and you could instantly hear what you was coding. At the beginning I made a lot of mistakes that where shown in the log. Whenever it was shown it also will tell you the line you made your mistake on and what it could be. Thanks to this, I fixed my mistakes and by the end of the trimester I was able to live code without making any mistakes and with a complete understanding of the basic program syntax.
When we moved from Sonic Pi to Processing I found the way of coding different and this is because it was using a language called Java. At the beginning I found it quite challenging, now I understand much better the language, but still I find it quite challenging to make some sketches that I have seen in other people’s websites.
Unity was also another challenging program but really useful because you could make not only visuals, but also games with it. I would love to continue using unity in the future with new projects.
I chose Processing because I thought it will go better with Sonic pi in the way of making visuals and because I was already getting into learning the language and the program.
We had a task to get into groups and prepare a song and some visuals for a performance taking place in May.
My teammate did the music based on some tracks of the TV show Mr. Robot. I did some visuals in Processing to go with it based on the experiments I have been doing over the weeks.
I found the code on how to do a rainbow wave in https://www.openprocessing.org/sketch/100832
(Although the code there now is changed into a simple one)
In this version of the code there is text constantly being redrawn in random positions of the screen. It uses a blur filter and the colours are as well randomize.
Every time the mouse is clicked the colour will invert thanks to the invert filter.
In this test I started with 3 boxes in the middle, one that goes up and the other two down in a diagonal direction.
As they move they leave a black path due to the stroke of the boxes, and as they reach the bottom of the screen they stay there but new boxes appear again in the middle following the same path.
In this week we have been learning about functions, variables and images.
For this task I decided to make an animation using an artwork done by the artist Candivase http://candivase.tumblr.com/
I loaded up the image, and set a variable that will change with an ‘if’ condition. I also added a command that saves frame by frame of the sketch while playing so I could make a gif from it.
Code
PImage mercy;
void setup() {
size(500, 500);
mercy = loadImage("mercy1.png");
}
int x = 200;
void draw() {
background(#A6EDF5);
void draw (){
fill(66,37,8);
rect(75,75,150,200);
fill(252,246,204);
ellipse (150,150,130,140);
fill(0);
ellipse (110,160,30,30);
ellipse (190,160,30,30);
noStroke();
//hair
fill (66,37,8);
rect (150,75,75,60);
//skin
fill (252,246,204);
rect (150,120,20,20);
//hair
fill (66,37,8);
rect (150,75,75,60);
//skin
fill (252,246,204);
rect (150,120,20,20);
//hair
fill (66,37,8);
rect (130,75,20,30);
rect (195,125,20,20);
rect (100,60,100,20);
//blush
fill (255,140,198);
ellipse (100,180,20,10);
ellipse (200,180,20,10);