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

From Medien Wiki
No edit summary
No edit summary
Line 2: Line 2:
I made a simple little drum beat for my first Max patch.
I made a simple little drum beat for my first Max patch.


[[First Max Patch]]
[[/First Max Patch]]


= Main Project =
= Main Project =
Line 37: Line 37:
For the Max patch, I needed to translate the data read from the sensor into one value. By using the message box, I was able to see the values that were output when I tapped the sensor. I created a range 0 to 300 and have it bang if the value is higher than 300, because the value when tapped is usually higher than 300. The bang triggers the on/off switch for the kick bass drum. I added a 300 millisecond delay to the bang to act as an off button so once the drum is turned on and produces a sound, it will then turn off.
For the Max patch, I needed to translate the data read from the sensor into one value. By using the message box, I was able to see the values that were output when I tapped the sensor. I created a range 0 to 300 and have it bang if the value is higher than 300, because the value when tapped is usually higher than 300. The bang triggers the on/off switch for the kick bass drum. I added a 300 millisecond delay to the bang to act as an off button so once the drum is turned on and produces a sound, it will then turn off.


[[First Drum Kit Patch]]
[[/First Drum Kit Patch]]


[[File:max_1.jpg|400px]]
[[File:max_1.jpg|400px]]
Line 58: Line 58:
Here is the coding for Arduino and Max/MSP:
Here is the coding for Arduino and Max/MSP:


[[Arduino 2 Drum Piece]]
[[/Arduino 2 Drum Piece]]


[[Max 2 Drum Piece]]
[[/Max 2 Drum Piece]]


= Adding Third Drum Piece  =
= Adding Third Drum Piece  =
Line 77: Line 77:
Here is the coding for Arduino and Max/MSP:
Here is the coding for Arduino and Max/MSP:


[[Arduino 3 Drum Piece]]
[[/Arduino 3 Drum Piece]]


[[Max 3 Drum Piece]]
[[/Max 3 Drum Piece]]


= Adding Fourth Drum Piece  =
= Adding Fourth Drum Piece  =
Line 97: Line 97:
Here is the coding for Arduino and Max/MSP:
Here is the coding for Arduino and Max/MSP:


[[Arduino 4 Drum Piece]]
[[/Arduino 4 Drum Piece]]


[[Max 4 Drum Piece]]
[[/Max 4 Drum Piece]]


= Adding Fifth Drum Piece  =
= Adding Fifth Drum Piece  =
Line 118: Line 118:
Here is the coding for Arduino and Max/MSP:
Here is the coding for Arduino and Max/MSP:


[[Arduino 5 Drum Piece]]
[[/Arduino 5 Drum Piece]]


[[Max 5 Drum Piece]]
[[/Max 5 Drum Piece]]


= Final Result  =
= Final Result  =
Line 133: Line 133:
As you can see, I was able to hook up 5 Piezo sensors to the Arduino by using a breadboard, alligator clips, jumper cables, and 1M resistors. One problem I encountered was that when I hooked up more than one sensor, there would be some noise, some of the sensors would constantly output a low signal when other sensors were struck, but the number is usually very low and negated because of the threshold that I put in the Arduino and Max/MSP code. When each sensor is struck it outputs the assigned drum noise.
As you can see, I was able to hook up 5 Piezo sensors to the Arduino by using a breadboard, alligator clips, jumper cables, and 1M resistors. One problem I encountered was that when I hooked up more than one sensor, there would be some noise, some of the sensors would constantly output a low signal when other sensors were struck, but the number is usually very low and negated because of the threshold that I put in the Arduino and Max/MSP code. When each sensor is struck it outputs the assigned drum noise.


See [[Arduino 5 Drum Piece]] and [[Max 5 Drum Piece]] for final coding.
See [[/Arduino 5 Drum Piece]] and [[/Max 5 Drum Piece]] for final coding.