A tribute to the record player in times of distance
The Main.pd file holds the Pure Data code used. It is a bit of a spider web, but does the trick. If you want to play with it yourself, make sure to change the sound files to ones that you have downloaded on your pc, and place them in the same folder as the Main.pd file. The Arduino code is straightforward, sending the distance measured by the ultrasonic sensor over to the Pure Data patch.