The servo is connected to pin 7 on the Arduino. It rotates 180 degrees. I included the servo library and created an object to control the servo.
This striking mechanism was made using an Arduino and a servo with a Lego arm attached to the top. A stand was also created using Lego, and chimes were hung from this. The servo was then instructed to move to strike the chimes at particular intervals.
Push Button turns off the LED:
This was just a simple exercise using code to turn off an LED using a button. The LED was connected to digital pin 13 while the button was connected to digital pin 7. The button was also connected to ground and 5V and a 10k resistor was used.
Arduino to Pure Data to Processing:
Using a Piezo:
When the Piezo is touched it writes 'IMedia' to the serial monitor.
Digital Musical Instrument:
The instrument is an electronic drum controller and is physically comprised of an Arduino micro-controller and seven sensors. It uses MAX/MSP and Ableton Live to generate sound. The DMI incorporates both deterministic and non-deterministic mapping strategies and its creation has been influenced by authors such as Sidney Fels and Andy Hunt and Marcelo M. Wanderley.
The DMI stars and stops the different beats while also controlling and implementing audio affects on each drum beat. To achieve this tabla drums and traditional African percussive beats are used in Ableton and are triggered and affected by the different sensors. The playing technique of these drums have traditionally been complex. Tabla in particular involves extensive use of the fingers and palms in different configurations. This creates a wide variety of rhythms and sounds, reflected in mnemonic syllables. The goal of this digital musical instrument is to recreate these complex sounds using sensors that are simple to operate so that no great level of skill is required to become familiar with the instrument and create interesting and varied drum beats. The playing technique used to operate the instrument is simple but it also takes some time to figure out and to familiarise oneself with the DMI. This playing technique is gestural in nature. Simple hand actions, such as twisting, holding, and pressing, are sufficient to output a range of sounds from the instrument.
Code: The values are received from the sensors and can be viewed in the serial monitor. These values are then sent to Max/MSP and are received through the same port that the Arduino programme uses to upload to the board and receive values from the sensors.
Sensors are used to convert the physical parameters of a performer’s gestural actions into digital values which are used to alter parameters within the synthesis engine. Four push-buttons along with two potentiometers, and a force sensing resistor are used. The buttons simply stop and start the sounds in Ableton, while the potentiometers and force sensor apply effects to the sounds being generated. A flex sensor is used to affect different parameters of a performance partner’s Ableton track when performing in a ensemble.
Buttons A push-button is a simple switch mechanism used to control certain facets of a device or a process. The smallest button on the instrument is mapped to the master control in Ableton. It serves to trigger and stop all the Ableton clips at once. The three other buttons used trigger the clips individually in Ableton. They have been soldered to wires that vary in colour. The colours of the wires correspond with the colour of the clip the button is triggering in Ableton. The buttons are colour coded in order to make it easy for the performer to distinguish between them and to recognise which clip they are triggering.
Potentiometers A potentiometer is a resistor that is usually operated by sliding or rotating its shaft. It has three terminals and is commonly used to control electrical devices like volume controls on audio equipment. The potentiometers on this digital musical instrument are mapped to variables on two separate clips in Ableton. The first (and smaller potentiometer) is mapped to the KitCore drum beat. The smaller potentiometer was used for this sound as the author felt that it was the less dynamic of the two sounds that make use of potentiometers. The performer could then use this size difference to recall which potentiometer is mapped to which clip if they associate the smaller potentiometer with the less dynamic drum beat. The second potentiometer controls parameters that belong to the Indian drum clip (tabla drums). It was chosen to affect the Indian tabla drum sounds as its shape resembles the cylindrical wooden pieces used for tuning found on the body of traditional tabla drums.
Force Sensing Resistor The force sensing resistor is mapped to parameters affecting the Kit Vocody clip in Ableton. It also affects one parameter belonging to the Indian Drum clip when high values are received from the sensor through Arduino and into Max. The force sensor is used to affect the Indian tabla drum beat as it can be used in ways that resemble the different strokes traditionally employed when playing a tabla drum.
The instrument uses Ableton Live and Max/MSP to generate sound. Max provides a link between the physical DMI (Arduino and breadboard) and Ableton Live. Each sensor is mapped to different controls and parameters in Ableton in order to trigger clips and affect the sound being outputted. MIDI is used and the entire DMI can be viewed as a MIDI controller itself.