RECENT WORK ︎︎︎

ITP BLOG ︎︎︎

ABOUT ︎︎︎

crandall.lily@gmail.com

@dullhouze



WEEK 10 - SOUND


LINK TO SKETCH

 
This week, I created a digital iPod that cycled through a set of 3 songs. I had some trouble figuring out the best way to do this (I got some help from the Coding Lab). Austen helped me figure out the key to making this thing work, to be able to toggle through a set of songs and loop back to the beginning if the user reaches the end of the playlist:



After creating an array and setting the 3 uploaded tracks as part of that array, I made functions to carry out the previous song & next song buttons. Using the position of currentSong, I added 1 for the playNext function, and subtracted 1 for the playPrevious button.


Creating the interface was fairly simple, and then it was time to figure out how to display the sound while the songs played. I decided to use amplitude. This is the code I used to make the rectangles move with the amplitude in each song. 



Another issue I ran into with this sketch is the size limit of files that can be uploaded to p5.  I kept getting error messages and had to cut off big parts of each song so that it would upload.

If I were continue with this project, I’d want to have the title & artist of the song to show up when the song plays. Also, right now nothing happens when the user clicks “Menu”, so that’s another thing I can expand on.