<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ka%C3%ABl</id>
	<title>Medien Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ka%C3%ABl"/>
	<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/Special:Contributions/Ka%C3%ABl"/>
	<updated>2026-05-24T19:49:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=112856</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=112856"/>
		<updated>2019-12-03T15:05:44Z</updated>

		<summary type="html">&lt;p&gt;Kaël: /* Conclusions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Drum Set ==&lt;br /&gt;
Project &lt;br /&gt;
&lt;br /&gt;
[[File:breadboard_final.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
The concept of this project is to create a digital drum set. The idea will be conceived using four major components: an Arduino, Max/MSP, Piezo sensors and drum samples. The scope of this project is scalable depending on the amount of analog inputs in the Arduino, Piezo sensors, and drum samples, but for my project the goal is to create a standard drum set, which is five pieces. By writing the proper code for Arduino and Max/MSP to interpret the data from the sensors, it should be possible to use the values to output the chosen drum samples in Max/MSP when the sensors are struck.&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov|400px]]&lt;br /&gt;
&lt;br /&gt;
== Preliminary Tests  ==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:piezo_kael.jpg&lt;br /&gt;
File:cylinder_kael.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Arduino Knock Test ===&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. I will use plastic containers to house the Piezo sensors. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:knock_sensor.jpg&lt;br /&gt;
File:knock_setup.jpg&lt;br /&gt;
File:knock_output.png&lt;br /&gt;
File:knock_light.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating First Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:kael_arduino_setup1_1.jpg&lt;br /&gt;
File:kael_arduino_setup1_2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting Up Arduino Software to Output Sensor Data ===&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:kael_arduino_piezo.jpg&lt;br /&gt;
File:kael_arduino_output.jpg &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Creating Max Patch ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[/First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_1.jpg&lt;br /&gt;
File:max_2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:kael_arduino_2_sensor_1.jpeg&lt;br /&gt;
File:kael_arduino_2_sensor_2.jpeg&lt;br /&gt;
File:arduino_2_kit.png&lt;br /&gt;
File:arduino_output_2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding Second Drum Piece to Max/MSP ===&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_2_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:arduino_3_drum_1.png&lt;br /&gt;
File:arduino_3_drum_2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding Third Drum Piece to Max/MSP ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_3_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:arduino_4_drum_1.png&lt;br /&gt;
File:arduino_4_drum_2.png&lt;br /&gt;
File:arduino_4_drum_3.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding Fourth Drum Piece to Max/MSP ===&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_4_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:arduino_5_drum_1.png&lt;br /&gt;
File:arduino_5_drum_2.png&lt;br /&gt;
File:arduino_5_drum_3.png&lt;br /&gt;
File:arduino_5_drum_3.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Fifth Drum Piece to Max/MSP ===&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_5_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Final Result  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File: arduino_final.jpg&lt;br /&gt;
File:breadboard_final.jpg&lt;br /&gt;
File:drum_kit_5_pieces.mov&lt;br /&gt;
File:drum_kit_beat.mov&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[/Arduino 5 Drum Piece]] and [[/Max 5 Drum Piece]] for final coding.&lt;br /&gt;
&lt;br /&gt;
==Conclusions==&lt;br /&gt;
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 I negated it 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, thus successfully creating a digital drum set using Arduino and Max/MSP.&lt;br /&gt;
&lt;br /&gt;
==Future Improvements==&lt;br /&gt;
Although I was able to create a digital drum set, it isn&#039;t very practical. The way the project is setup, one cannot simply play it like it were a real drum set. Future improvements would be to create better constructed drum heads, which would pick up the vibrations more clearly and would be able to handle being struck by a drum stick.&lt;br /&gt;
&lt;br /&gt;
== First Assignment ==&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[/First Max Patch]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=112853</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=112853"/>
		<updated>2019-12-03T14:52:11Z</updated>

		<summary type="html">&lt;p&gt;Kaël: /* Arduino Knock Test */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Drum Set ==&lt;br /&gt;
Project &lt;br /&gt;
&lt;br /&gt;
[[File:breadboard_final.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
The concept of this project is to create a digital drum set. The idea will be conceived using four major components: an Arduino, Max/MSP, Piezo sensors and drum samples. The scope of this project is scalable depending on the amount of analog inputs in the Arduino, Piezo sensors, and drum samples, but for my project the goal is to create a standard drum set, which is five pieces. By writing the proper code for Arduino and Max/MSP to interpret the data from the sensors, it should be possible to use the values to output the chosen drum samples in Max/MSP when the sensors are struck.&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov|400px]]&lt;br /&gt;
&lt;br /&gt;
== Preliminary Tests  ==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:piezo_kael.jpg&lt;br /&gt;
File:cylinder_kael.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Arduino Knock Test ===&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. I will use plastic containers to house the Piezo sensors. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:knock_sensor.jpg&lt;br /&gt;
File:knock_setup.jpg&lt;br /&gt;
File:knock_output.png&lt;br /&gt;
File:knock_light.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating First Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:kael_arduino_setup1_1.jpg&lt;br /&gt;
File:kael_arduino_setup1_2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting Up Arduino Software to Output Sensor Data ===&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:kael_arduino_piezo.jpg&lt;br /&gt;
File:kael_arduino_output.jpg &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Creating Max Patch ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[/First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_1.jpg&lt;br /&gt;
File:max_2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:kael_arduino_2_sensor_1.jpeg&lt;br /&gt;
File:kael_arduino_2_sensor_2.jpeg&lt;br /&gt;
File:arduino_2_kit.png&lt;br /&gt;
File:arduino_output_2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding Second Drum Piece to Max/MSP ===&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_2_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:arduino_3_drum_1.png&lt;br /&gt;
File:arduino_3_drum_2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding Third Drum Piece to Max/MSP ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_3_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:arduino_4_drum_1.png&lt;br /&gt;
File:arduino_4_drum_2.png&lt;br /&gt;
File:arduino_4_drum_3.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding Fourth Drum Piece to Max/MSP ===&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_4_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:arduino_5_drum_1.png&lt;br /&gt;
File:arduino_5_drum_2.png&lt;br /&gt;
File:arduino_5_drum_3.png&lt;br /&gt;
File:arduino_5_drum_3.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Fifth Drum Piece to Max/MSP ===&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_5_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Final Result  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File: arduino_final.jpg&lt;br /&gt;
File:breadboard_final.jpg&lt;br /&gt;
File:drum_kit_5_pieces.mov&lt;br /&gt;
File:drum_kit_beat.mov&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[/Arduino 5 Drum Piece]] and [[/Max 5 Drum Piece]] for final coding.&lt;br /&gt;
&lt;br /&gt;
==Conclusions==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Assignment ==&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[/First Max Patch]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=112852</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=112852"/>
		<updated>2019-12-03T14:47:13Z</updated>

		<summary type="html">&lt;p&gt;Kaël: /* drum set */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Drum Set ==&lt;br /&gt;
Project &lt;br /&gt;
&lt;br /&gt;
[[File:breadboard_final.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
The concept of this project is to create a digital drum set. The idea will be conceived using four major components: an Arduino, Max/MSP, Piezo sensors and drum samples. The scope of this project is scalable depending on the amount of analog inputs in the Arduino, Piezo sensors, and drum samples, but for my project the goal is to create a standard drum set, which is five pieces. By writing the proper code for Arduino and Max/MSP to interpret the data from the sensors, it should be possible to use the values to output the chosen drum samples in Max/MSP when the sensors are struck.&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov|400px]]&lt;br /&gt;
&lt;br /&gt;
== Preliminary Tests  ==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:piezo_kael.jpg&lt;br /&gt;
File:cylinder_kael.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Arduino Knock Test ===&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:knock_sensor.jpg&lt;br /&gt;
File:knock_setup.jpg&lt;br /&gt;
File:knock_output.png&lt;br /&gt;
File:knock_light.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating First Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:kael_arduino_setup1_1.jpg&lt;br /&gt;
File:kael_arduino_setup1_2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting Up Arduino Software to Output Sensor Data ===&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:kael_arduino_piezo.jpg&lt;br /&gt;
File:kael_arduino_output.jpg &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Creating Max Patch ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[/First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_1.jpg&lt;br /&gt;
File:max_2.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:kael_arduino_2_sensor_1.jpeg&lt;br /&gt;
File:kael_arduino_2_sensor_2.jpeg&lt;br /&gt;
File:arduino_2_kit.png&lt;br /&gt;
File:arduino_output_2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding Second Drum Piece to Max/MSP ===&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_2_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:arduino_3_drum_1.png&lt;br /&gt;
File:arduino_3_drum_2.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding Third Drum Piece to Max/MSP ===&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_3_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:arduino_4_drum_1.png&lt;br /&gt;
File:arduino_4_drum_2.png&lt;br /&gt;
File:arduino_4_drum_3.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding Fourth Drum Piece to Max/MSP ===&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_4_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece  ==&lt;br /&gt;
=== Setting Up Arduino Hardware ===&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:arduino_5_drum_1.png&lt;br /&gt;
File:arduino_5_drum_2.png&lt;br /&gt;
File:arduino_5_drum_3.png&lt;br /&gt;
File:arduino_5_drum_3.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Fifth Drum Piece to Max/MSP ===&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:max_5_drum.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[/Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[/Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
== Final Result  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File: arduino_final.jpg&lt;br /&gt;
File:breadboard_final.jpg&lt;br /&gt;
File:drum_kit_5_pieces.mov&lt;br /&gt;
File:drum_kit_beat.mov&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[/Arduino 5 Drum Piece]] and [[/Max 5 Drum Piece]] for final coding.&lt;br /&gt;
&lt;br /&gt;
==Conclusions==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Assignment ==&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[/First Max Patch]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110614</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 5 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110614"/>
		<updated>2019-08-20T17:53:22Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:max_5_drum_kit.maxpat]]&lt;br /&gt;
&lt;br /&gt;
Drum samples below. Extract aif&#039;s in same folder as Max patch.&lt;br /&gt;
&lt;br /&gt;
[[:File:drum_kit_pieces.zip]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110613</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 4 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110613"/>
		<updated>2019-08-20T17:52:59Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:max_4_drum_kit.maxpat]]&lt;br /&gt;
&lt;br /&gt;
Drum samples below. Extract aif&#039;s in same folder as Max patch.&lt;br /&gt;
&lt;br /&gt;
[[:File:drum_kit_pieces.zip]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110612</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110612"/>
		<updated>2019-08-20T12:42:43Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[File: arduino_final.jpg|400px]]&lt;br /&gt;
[[File:breadboard_final.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov|400px]]&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_beat.mov|400px]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
See [[Arduino 5 Drum Piece]] and [[Max 5 Drum Piece]] for final coding.&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110611</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110611"/>
		<updated>2019-08-20T12:30:17Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[File: arduino_final.jpg|400px]]&lt;br /&gt;
[[File:breadboard_final.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov|400px]]&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_beat.mov|400px]]&lt;br /&gt;
&lt;br /&gt;
See [[Arduino 5 Drum Piece]] and [[Max 5 Drum Piece]] for coding.&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110610</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110610"/>
		<updated>2019-08-20T12:29:05Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[File: arduino_final.jpg|400px]]&lt;br /&gt;
[[File:breadboard_final.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov|400px]]&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_beat.mov|400px]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110609</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110609"/>
		<updated>2019-08-20T12:28:51Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[File: arduino_final.jpg|400px]]&lt;br /&gt;
[[File:breadboard_final.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov]]&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_beat.mov]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110608</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110608"/>
		<updated>2019-08-20T12:28:22Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[File: arduino_final.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
[[File:breadboard_final.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov|400px]]&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_beat.mov|400px]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_final.jpg&amp;diff=110607</id>
		<title>File:Arduino final.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_final.jpg&amp;diff=110607"/>
		<updated>2019-08-20T12:27:51Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Breadboard_final.jpg&amp;diff=110606</id>
		<title>File:Breadboard final.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Breadboard_final.jpg&amp;diff=110606"/>
		<updated>2019-08-20T12:27:37Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110604</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110604"/>
		<updated>2019-08-17T13:26:57Z</updated>

		<summary type="html">&lt;p&gt;Kaël: /* Final Result */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov]]&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_beat.mov]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110603</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110603"/>
		<updated>2019-08-17T13:26:41Z</updated>

		<summary type="html">&lt;p&gt;Kaël: /* Final Result */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov]]&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_beat.mov]]&lt;br /&gt;
&lt;br /&gt;
[[Drum Kit Pieces Check]]&lt;br /&gt;
&lt;br /&gt;
[[Drum Beat Preview]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Drum_kit_beat.mov&amp;diff=110602</id>
		<title>File:Drum kit beat.mov</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Drum_kit_beat.mov&amp;diff=110602"/>
		<updated>2019-08-17T13:25:34Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
== Copyright status: ==&lt;br /&gt;
&lt;br /&gt;
== Source: ==&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110598</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110598"/>
		<updated>2019-08-17T13:22:32Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[Drum Kit Pieces Check]]&lt;br /&gt;
&lt;br /&gt;
[[Drum Beat Preview]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110597</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110597"/>
		<updated>2019-08-17T13:22:13Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[Drum Kit Pieces Check]]&lt;br /&gt;
&lt;br /&gt;
[[Drum Beat Preview]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Drum_kit_5_pieces.mov&amp;diff=110596</id>
		<title>File:Drum kit 5 pieces.mov</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Drum_kit_5_pieces.mov&amp;diff=110596"/>
		<updated>2019-08-17T13:20:44Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
== Copyright status: ==&lt;br /&gt;
&lt;br /&gt;
== Source: ==&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110595</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110595"/>
		<updated>2019-08-17T13:20:12Z</updated>

		<summary type="html">&lt;p&gt;Kaël: /* Final Result */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[Media:drum_kit_5_pieces.mov]]&lt;br /&gt;
&lt;br /&gt;
[[Media:drum_kit_beat.mov]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110594</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110594"/>
		<updated>2019-08-17T13:17:59Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Final Result  =&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_5_pieces.mov]]&lt;br /&gt;
&lt;br /&gt;
[[File:drum_kit_beat.mov]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110593</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110593"/>
		<updated>2019-08-17T13:11:08Z</updated>

		<summary type="html">&lt;p&gt;Kaël: /* Adding Fourth Drum Piece to Max/MSP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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 I added sound files that I had of different drum pieces. I was able to link them with open and sfplay~. I added live gain to each piece so you can adjust them separately to the appropriate volume.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110592</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110592"/>
		<updated>2019-08-17T13:09:30Z</updated>

		<summary type="html">&lt;p&gt;Kaël: /* Adding Third Drum Piece */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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&#039;t bang when I wasn&#039;t trying to make it bang.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110591</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110591"/>
		<updated>2019-08-17T13:00:50Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
I made a simple little drum beat for my first Max patch.&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my main project I am creating drum set. The drum setup would be to have a kick drum, a snare, a clap, a tom, and a hi-hat. The idea is to install Piezo sensors into different plastic cylinders. When each cylinder is struck it would produce the specific sound that I assigned to that Piezo sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a plastic container. With this test, when I tap on the lid of the container, Arduino would output knock! and the LED light would toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the Piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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 also changed the drum audio that it would play for the new sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum.ino&amp;diff=110590</id>
		<title>File:Arduino 5 drum.ino</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum.ino&amp;diff=110590"/>
		<updated>2019-08-17T12:37:24Z</updated>

		<summary type="html">&lt;p&gt;Kaël: Kaël uploaded a new version of File:Arduino 5 drum.ino&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110559</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 4 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110559"/>
		<updated>2019-08-11T20:18:27Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:max_4_drum_kit.maxpat]]&lt;br /&gt;
&lt;br /&gt;
Extract aif&#039;s in same folder as Max patch.&lt;br /&gt;
&lt;br /&gt;
[[:File:drum_kit_pieces.zip]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110558</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 5 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110558"/>
		<updated>2019-08-11T20:18:02Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:max_5_drum_kit.maxpat]]&lt;br /&gt;
&lt;br /&gt;
Extract aifs in same folder as Max patch.&lt;br /&gt;
&lt;br /&gt;
[[:File:drum_kit_pieces.zip]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110557</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 5 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110557"/>
		<updated>2019-08-11T20:17:42Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:max_5_drum_kit.maxpat]]&lt;br /&gt;
&lt;br /&gt;
Extract aif&#039;s in same folder as Max patch.&lt;br /&gt;
[[:File:drum_kit_pieces.zip]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110556</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 5 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110556"/>
		<updated>2019-08-11T20:17:01Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:max_5_drum_kit.maxpat]]&lt;br /&gt;
&lt;br /&gt;
[[:File:drum_kit_pieces.zip]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110555</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 4 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110555"/>
		<updated>2019-08-11T20:16:46Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:max_4_drum_kit.maxpat]]&lt;br /&gt;
&lt;br /&gt;
[[:File:drum_kit_pieces.zip]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110554</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 4 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110554"/>
		<updated>2019-08-11T20:16:22Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:drum_kit_pieces.zip]]&lt;br /&gt;
&lt;br /&gt;
[[:File:max_4_drum_kit.maxpat]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110553</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 4 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110553"/>
		<updated>2019-08-11T20:16:17Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:drum_kit_pieces.zip]]&lt;br /&gt;
[[:File:max_4_drum_kit.maxpat]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Drum_kit_pieces.zip&amp;diff=110552</id>
		<title>File:Drum kit pieces.zip</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Drum_kit_pieces.zip&amp;diff=110552"/>
		<updated>2019-08-11T20:16:05Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110547</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 5 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_5_Drum_Piece&amp;diff=110547"/>
		<updated>2019-08-10T20:54:41Z</updated>

		<summary type="html">&lt;p&gt;Kaël: Created page with &amp;quot;:File:max_5_drum_kit.maxpat&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:max_5_drum_kit.maxpat]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Max_5_drum_kit.maxpat&amp;diff=110546</id>
		<title>File:Max 5 drum kit.maxpat</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Max_5_drum_kit.maxpat&amp;diff=110546"/>
		<updated>2019-08-10T20:54:37Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Arduino_5_Drum_Piece&amp;diff=110545</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Arduino 5 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Arduino_5_Drum_Piece&amp;diff=110545"/>
		<updated>2019-08-10T20:54:04Z</updated>

		<summary type="html">&lt;p&gt;Kaël: Created page with &amp;quot;:File:arduino_5_drum.ino&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:arduino_5_drum.ino]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum.ino&amp;diff=110544</id>
		<title>File:Arduino 5 drum.ino</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum.ino&amp;diff=110544"/>
		<updated>2019-08-10T20:54:01Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110543</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110543"/>
		<updated>2019-08-10T20:53:20Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my project I would like to create a drum set. The drum setup would be to have a kick drum, a snare, a tom and two hi-hats; one hi-hat that is open and one hi-hat that is closed. The idea would be to install piezo sensors into different cylinders. When each cylinder is struck it would produce the sound from a different piece of the drum kit.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a mixed nuts container. With this test, when I tap on the lid of the container, Arduino should output knock! and the LED light should toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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 also changed the drum audio that it would play for the new sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 5 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 5 Drum Piece]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110542</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110542"/>
		<updated>2019-08-10T20:53:04Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my project I would like to create a drum set. The drum setup would be to have a kick drum, a snare, a tom and two hi-hats; one hi-hat that is open and one hi-hat that is closed. The idea would be to install piezo sensors into different cylinders. When each cylinder is struck it would produce the sound from a different piece of the drum kit.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a mixed nuts container. With this test, when I tap on the lid of the container, Arduino should output knock! and the LED light should toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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 also changed the drum audio that it would play for the new sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before. I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fifth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
The setup was the same as before. I added in another analogPin, another val, and another Serial.print to accomadate the fifth and final peice.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_5_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
[[File:arduino_5_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fifth Drum Piece to Max/MSP ==&lt;br /&gt;
Since I had already setup using my own sound files for the drums when I added the fourth piece, this step was simple enough. Added another element to unpack and then copied the everything below from a another drum piece and connected it to unpack, changed the audio file, and connect it to the output.&lt;br /&gt;
&lt;br /&gt;
[[File:max_5_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Max_5_drum.png&amp;diff=110541</id>
		<title>File:Max 5 drum.png</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Max_5_drum.png&amp;diff=110541"/>
		<updated>2019-08-10T20:38:31Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum_4.png&amp;diff=110540</id>
		<title>File:Arduino 5 drum 4.png</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum_4.png&amp;diff=110540"/>
		<updated>2019-08-10T20:38:27Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum_3.png&amp;diff=110539</id>
		<title>File:Arduino 5 drum 3.png</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum_3.png&amp;diff=110539"/>
		<updated>2019-08-10T20:38:25Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum_2.png&amp;diff=110538</id>
		<title>File:Arduino 5 drum 2.png</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum_2.png&amp;diff=110538"/>
		<updated>2019-08-10T20:38:22Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum_1.png&amp;diff=110537</id>
		<title>File:Arduino 5 drum 1.png</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_5_drum_1.png&amp;diff=110537"/>
		<updated>2019-08-10T20:38:20Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110536</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Max 4 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Max_4_Drum_Piece&amp;diff=110536"/>
		<updated>2019-08-10T20:04:43Z</updated>

		<summary type="html">&lt;p&gt;Kaël: Created page with &amp;quot;:File:max_4_drum_kit.maxpat&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:max_4_drum_kit.maxpat]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Max_4_drum_kit.maxpat&amp;diff=110535</id>
		<title>File:Max 4 drum kit.maxpat</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Max_4_drum_kit.maxpat&amp;diff=110535"/>
		<updated>2019-08-10T20:04:38Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110534</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110534"/>
		<updated>2019-08-10T20:03:30Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my project I would like to create a drum set. The drum setup would be to have a kick drum, a snare, a tom and two hi-hats; one hi-hat that is open and one hi-hat that is closed. The idea would be to install piezo sensors into different cylinders. When each cylinder is struck it would produce the sound from a different piece of the drum kit.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a mixed nuts container. With this test, when I tap on the lid of the container, Arduino should output knock! and the LED light should toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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 also changed the drum audio that it would play for the new sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before . I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110533</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110533"/>
		<updated>2019-08-10T20:00:24Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my project I would like to create a drum set. The drum setup would be to have a kick drum, a snare, a tom and two hi-hats; one hi-hat that is open and one hi-hat that is closed. The idea would be to install piezo sensors into different cylinders. When each cylinder is struck it would produce the sound from a different piece of the drum kit.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a mixed nuts container. With this test, when I tap on the lid of the container, Arduino should output knock! and the LED light should toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before . I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110532</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann&amp;diff=110532"/>
		<updated>2019-08-10T19:57:04Z</updated>

		<summary type="html">&lt;p&gt;Kaël: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= First Assignment =&lt;br /&gt;
[[First Max Patch]]&lt;br /&gt;
&lt;br /&gt;
= Main Project =&lt;br /&gt;
== Project Idea ==&lt;br /&gt;
For my project I would like to create a drum set. The drum setup would be to have a kick drum, a snare, a tom and two hi-hats; one hi-hat that is open and one hi-hat that is closed. The idea would be to install piezo sensors into different cylinders. When each cylinder is struck it would produce the sound from a different piece of the drum kit.&lt;br /&gt;
&lt;br /&gt;
[[File:piezo_kael.jpg|400px]]&lt;br /&gt;
[[File:cylinder_kael.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Preliminary Tests  =&lt;br /&gt;
== Arduino Knock Test ==&lt;br /&gt;
For the beginning test of my project I followed the knock tutorial found on Arduino [https://www.arduino.cc/en/Tutorial/Knock].&lt;br /&gt;
The hardware setup for the example was simple enough. Unlike the example, I used a breadboard and taped my Piezo sensor to the bottom of a lid from a mixed nuts container. With this test, when I tap on the lid of the container, Arduino should output knock! and the LED light should toggle on/off.&lt;br /&gt;
&lt;br /&gt;
[[File:knock_sensor.jpg|400px]]&lt;br /&gt;
[[File:knock_setup.jpg|400px]]&lt;br /&gt;
[[File:knock_output.png|400px]]&lt;br /&gt;
[[File:knock_light.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Creating First Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
This is how I set up my sensor to the Arduino Uno.&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_setup1_1.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_setup1_2.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Setting Up Arduino Software to Output Sensor Data ==&lt;br /&gt;
Although the knock test worked, I realized that I need to output the numerical data that the piezo sensor detects. Here is the coding   and output:&lt;br /&gt;
&lt;br /&gt;
[[File:kael_arduino_piezo.jpg|400px]]&lt;br /&gt;
[[File:kael_arduino_output.jpg|400px]] &lt;br /&gt;
&lt;br /&gt;
== Creating Max Patch ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[First Drum Kit Patch]]&lt;br /&gt;
&lt;br /&gt;
[[File:max_1.jpg|400px]]&lt;br /&gt;
[[File:max_2.jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
= Adding Second Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Although, my drum piece was working, I found out when attaching the second sensor that my hardware setup was wrong. I had the circuit connect only through the analog input and ground, so I needed to connect to the 5V to create a true circuit. I did that and then I added the second sensor data to Arduino code and cleaned up the code. The only issue that I&#039;m still dealing with is the values given from the sonsors. For some reason, when I add a second sensor to Arduino, one of the sensors always outputs variable data above 0 when it has not been triggered.&lt;br /&gt;
[[File:kael_arduino_2_sensor_1.jpeg|400px]]&lt;br /&gt;
[[File:kael_arduino_2_sensor_2.jpeg|400px]]&lt;br /&gt;
[[File:arduino_2_kit.png|400px]]&lt;br /&gt;
[[File:arduino_output_2.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Second Drum Piece to Max/MSP ==&lt;br /&gt;
The most difficult part of this was trying to separate the data from each of the sensors. Initially, I tried an unpack, but that was unsuccessful. Luckily, with the help from class, I rewrote the Arduino code, as shown above, and was able to separate the sensors. Once, that was done, it was not difficult to add the next drum piece.&lt;br /&gt;
&lt;br /&gt;
[[File:max_2_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 2 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Third Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before . I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_3_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_3_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Third Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_3_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 3 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
= Adding Fourth Drum Piece  =&lt;br /&gt;
== Setting Up Arduino Hardware ==&lt;br /&gt;
Adding the fourth was the procedure as before . I added in another analogPin, another val, and another Serial.print.&lt;br /&gt;
&lt;br /&gt;
[[File:arduino_4_drum_1.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_2.png|400px]]&lt;br /&gt;
[[File:arduino_4_drum_3.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Adding Fourth Drum Piece to Max/MSP ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:max_4_drum.png|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the coding for Arduino and Max/MSP:&lt;br /&gt;
&lt;br /&gt;
[[Arduino 4 Drum Piece]]&lt;br /&gt;
&lt;br /&gt;
[[Max 4 Drum Piece]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Arduino_4_Drum_Piece&amp;diff=110531</id>
		<title>GMU:My Computer, Max, and I/Kaël Skyhawk Hauptmann/Arduino 4 Drum Piece</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:My_Computer,_Max,_and_I/Ka%C3%ABl_Skyhawk_Hauptmann/Arduino_4_Drum_Piece&amp;diff=110531"/>
		<updated>2019-08-10T19:54:33Z</updated>

		<summary type="html">&lt;p&gt;Kaël: Created page with &amp;quot;:File:arduino_drum_4.ino&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:File:arduino_drum_4.ino]]&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_drum_4.ino&amp;diff=110530</id>
		<title>File:Arduino drum 4.ino</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=File:Arduino_drum_4.ino&amp;diff=110530"/>
		<updated>2019-08-10T19:54:25Z</updated>

		<summary type="html">&lt;p&gt;Kaël: File uploaded with MsUpload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;File uploaded with MsUpload&lt;/div&gt;</summary>
		<author><name>Kaël</name></author>
	</entry>
</feed>