// For this assignment, we were asked to "script" and perform
something, using the word script very loosely;
// From one perspective, the script in p5.js could be considered
what's happening "behind the scenes", while the site that's created is
the performance;
// As someone who loves music and appreciates a good playlist or
movie score, I wanted to "script" our class's background music;
// What song is on repeat in your head when you're writing code? When
you're walking to class? What do you imagine is the background music
to your life? Come up with one song and one by one everyone will add
it to the playlist;
// I'll add the screen recording of this process post-critique;
// x is a variable for the number of people in class, including
Grey;
let x = 10;
function setup() {
- // Grey gets to name the playlist!
- createPlaylist('Spotify');
- g === grey();
- n === grey(randName());
- createName(g, editDetails, Name, typeName(n));
}
function draw() {
- // Everyone will come up and add a song they like to the spotify playlist
- let lovedSong = favSong(x)
- for (let x = 0; x < 10; x = x + 1)
- add.lovedSong()
}
play(n)
// Press Play!