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

From Medien Wiki
No edit summary
No edit summary
Line 59: Line 59:
[[Max 2 Drum Piece]]
[[Max 2 Drum Piece]]


= Adding Third Drum Piece  =
= Adding Fourth Drum Piece  =
== Setting Up Arduino Hardware ==
== Setting Up Arduino Hardware ==
Adding the third piece was the same as the second. I added in another analogPin, another val, and another Serial.print.
Adding the fourth was the procedure as before . I added in another analogPin, another val, and another Serial.print.


[[File:arduino_3_drum_1.png|400px]]
[[File:arduino_4_drum_1.png|400px]]
[[File:arduino_3_drum_2.png|400px]]
[[File:arduino_4_drum_2.png|400px]]
[[File:arduino_4_drum_3.png|400px]]


== Adding Third Drum Piece to Max/MSP ==
== Adding Third Drum Piece to Max/MSP ==
Since I already figured out how to separate the values output from the piezo speakers, it was no problem at all adding the third drum in Max/MSP. I added another element to unpack and then copied the drum setup from below unpack, apart from the audio, which I changed to a cymbal.
This time adding the fourth instrument was not the same procedure as before. I realized that the audio files provided by Max/MSP did not have enough drum sounds to complete the 5 pieces that I desired. Because of this added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I also added live gain to each piece so you can adjust them separately to the appropriate volume.
 
[[File:max_4_drum.png|400px]]


[[File:max_3_drum.png|400px]]


Here is the coding for Arduino and Max/MSP:
Here is the coding for Arduino and Max/MSP:


[[Arduino 3 Drum Piece]]
[[Arduino 4 Drum Piece]]


[[Max 3 Drum Piece]]
[[Max 4 Drum Piece]]