148
edits
No edit summary |
|||
Line 62: | Line 62: | ||
= Adding Third Drum Piece = | = Adding Third Drum Piece = | ||
== Setting Up Arduino Hardware == | == Setting Up Arduino Hardware == | ||
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. | 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]] | [[File:arduino_3_drum_1.png|400px]] | ||
Line 68: | Line 68: | ||
== 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 | 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]] | [[File:max_3_drum.png|400px]] |
edits