jzabala – Project 1 – Time Stretching with Sensors

My project takes in data from two HC-SR04 ultrasonic sensors and using that distance data to change the speed and pitch of a sample.

External Input

This is the set-up of the two sensors connected to Arduino. Users would move their hands closer or farther from the sensors on either side to increase/decrease pitch or increase/decrease the speed/length of the sample. The sensor pointing left in the image controls pitch and the right controls speed. The data is read into the Arduino through the sensors using a sketch that reads two sensors that is based on a three sensor sketch from the Arduino new ping wiki (three sensor sketch).

Patching Mode

The data is then read into the “arduivis_Max7_model1_output-read _sensor” patch that was shared during class. Then the data is separated so that the int values are used to timeshift the sample using pitch and speed.

Presentation Mode

In the presentation mode, the user can start the update and choose the port and then press start to begin the communication. They would then see the distance values in the two number boxes and can put in their sample and turn on the audio,

Below are two examples of works creating this system. One using the drum loop inside of Max and the other using a song called Probably Up by Lawrence.

Drum Loop:

Probably Up:

Overall, this system can jazz up a track or make your favorite song sound like a part of a horror movie soundtrack.

Google Drive Link: https://drive.google.com/drive/u/1/folders/19Q8pz2YbgpYe22K62rQPrKi3zzXBHEBV