GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann: Difference between revisions

From Medien Wiki
Line 79: Line 79:
For this step, I just used the same Arduino code as before, but added the extra data for reading the third sensor. I added another analogPin, another val, and another Serial.print. I also added a threshold of 900 to the Arduino code so that the sensor wouldn't bang when I wasn't trying to make it bang.
For this step, I just used the same Arduino code as before, but added the extra data for reading the third sensor. I added another analogPin, another val, and another Serial.print. I also added a threshold of 900 to the Arduino code so that the sensor wouldn't bang when I wasn't trying to make it bang.


[[File:arduino_3_drum_1.png|400px]]
<gallery>
[[File:arduino_3_drum_2.png|400px]]
File:arduino_3_drum_1.png
File:arduino_3_drum_2.png
</gallery>


=== Adding Third Drum Piece to Max/MSP ===
=== Adding Third Drum Piece to Max/MSP ===
For this step, I added another element to unpack and then copied everything from below from one of the other drum pieces and connected it to unpack. I changed the drum audio that it would play for the new sensor. I also raised the split to 900, but this may be redundant since I added a threshold to the Arduino code as well.
For this step, I added another element to unpack and then copied everything from below from one of the other drum pieces and connected it to unpack. I changed the drum audio that it would play for the new sensor. I also raised the split to 900, but this may be redundant since I added a threshold to the Arduino code as well.


[[File:max_3_drum.png|400px]]
<gallery>
File:max_3_drum.png
</gallery>