jcrisafu – Project 1: Sample Theremin

One of my primary fascinations with audio concerns sampling: what can be a sample? And how can I make a sample sound so, so bad different? While there are instruments out there made to deal with samples like MPCs, loop pedals, etc, I decided to create a theremin that was meant to manipulate samples instead for this project, using an Arduino, sensors, and Max.

In this project, I found a chandelier from Construction Junction, gutted it, and rewired four infra-red sensors into each of the arms, which are then housed in glass fixtures. Each sensor sends serial information to the Arduino, who packages and passes it on to Max. Max then separates out each sensors information into the appropriate outlets to manipulate whatever attributes I desire in real time.

I had also tried to implement some more chopped-and-screwed functionality into this, which left me with a BPM reader to allow for looping a number of measures from a start point, but I was not able to figure out how to use the sensor information to work with that function in any consistent way.

(A video was taken of a performance I did with this, which is ended up being a very large file, so I will upload that once I am able to download it onto a computer myself.)


----------begin_max5_patcher----------
5574.3oc68rsjihikOm0WgCOyC6tQ1Yn6BlYdX2+f48d6HCRaRmzkM3AvYV0
z6Te6Kni.KvbQ1HrcUSkQ2UlxfgyMctoiN5O9zCKeI4KgYKW7WV7qKd3g+3S
O7f5iJ+fGzieX4tfurZaPl51VtKLKKXS3xGgqkG9kb0mmkmru5C2mFlEFmGj
GkD+bZ3pb3EHjdOgdbAlyJ+EEW9uDxSnE+l96kbHeaXd9W2GBegkKquj4ir7
h3pOOHe0aQwaLdMXl5Iyv3ddMwG1EEW7hTHD43GBu9LyGezZExk7xu+KXjbY
4G9u9zmJ+mGsjdsM58vm1DDE+sJpy6AowA6Bac0ek+aiP93Tf7Ufd7heQEJr
TND8KKZSbv1kOZ9Wk++qaSBxK+isQY4iSjKPlBpbPbb31UIGhUvCp5clFYIe
gi3kPrvS8qtfeKXL7tXLrZJWPZAkMOL84v3fW1FZBQYAuGt94f77znWNjGd7
uxzbOM6qjAs8PXxqUeb0ma93ydKIMePtXiauhkf53ZGhixyx+J.rrNtgcEDk
xq8KRzSc8.1lDuwdPYWgzY4cVP8gKpjmq90YJb2uxffz7wDmQDSsAjYRafOy
TY.wYJCnWhxf3vOJ91mPt1uM3qeawqkyjViWN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