You are on page 1of 4

Engine Box #9

Brian Tuohy
Digital Media and Arts Research Centre
University of Limerick
Castletroy, Limerick, Ireland
0743518@studentmail.ul.ie

Abstract the IR sensor. The cause and effect is presented to the


This paper presents a detailed overview of “Engine Box audience due to the visible movement and effort exerted
#9” – a new instrument for computer music performance. [1].
The instrument takes the form of a wooden box, which is We did not wish to design an instrument that could be
equipped with an Arduino microcontroller and several left unattended and still generate sound. If a piano sits on
electronic sensors. The musician interacts with an Infrared stage with nobody playing it, it does not create any musical
Range Finder (IR), Force Sensitive Resistor (FSR) and two content [2]. This was a function that we felt needed to be
momentary switches to control the manipulative built into our instrument – the requirement of interaction
parameters applied to an audio sample in the MaxMSP and attention in order to produce results. The instrument
environment. will only trigger sounds when the IR sensor detects
presence within its range, when this presence leaves, the
Keywords: A Box, Arduino, Audio Freeze, Max/MSP, sound stops. The IR sensor, in this sense, has gained
Phase Vocoder, Pitch Shift, Time Stretch importance equivalent to that of a string on a guitar.
1. Introduction
This instrument provides the musician with the opportunity
to explore microscopic sound. The intention behind the
sound processes offered is to take a short audio sample and
explore its minute details in order to present a vastly
altered output. This is achieved by implementing extreme
time stretching measures, which allow the musician to
slow the sample playback down to a point where it literally
freezes a frame of the sound without affecting the pitch.
The resulting sound then becomes the new audio source
for the musician to transpose as they wish within a defined
scale.
The design of the instrument was based on several
concepts, which we wished to consider:
• Instrument should offer causality during
performance. Figure 1. Engine box #9 Interface
• Should require attention of the musician. An over-complicated interface could easily distract
• Should rely on simple interface to place emphasis from the musical matters at hand. For this reason, we
on performance technique. limited the interface to a simple box with four defined
With acoustic instruments, there is an intrinsic points of interaction; Button 1, Button 2, FSR, IR (see
connection between the interface and the sound engine, Figure 1.). With no visible circuitry or components, the
e.g. the strings of an acoustic guitar generate sound when musician can concentrate on developing their playing
they are vibrated. This is not the case with electronic technique as opposed to worrying about technical matters.
instruments – a connection must be established [1]. With Our intention was to create an instrument and package it to
this conceptual connection, there comes a certain be presented to a musician not a technician or programmer.
responsibility to inform the audience of how the instrument The technology behind the instrument is inside the box but
is being used to generate and manipulate sound. For this the musician is presented with everything they need to
reason, we decided to use two continuous sensors, which interact with on a flat playing surface beyond which their
provide a significant amount of visual evidence as to how attention need not extend. The same approach was taken to
they are being used: an FSR and an IR sensor. The the design of the sound engine within Max/MSP.
musician’s left hand controls the level of force applied to
the FSR and the right hand determines the distance from
2. Technology would output a value fro 0-255 depending on the reading
from the relevant sensor. This number would then
The inner workings of this instrument are based on an
represent the level of brightness of each particular colour.
Arduino microcontroller. The communication between the
The force sensor provided a range of 0-1023. This was
musician and the instrument occurs as a result of several
then divided up into three sections which would represent
elements. The sensors take values depending of level of
different steps in the transition process: 0-255 = Green
interaction with the musician. These values are routed to
follows value of sensor; 256 – 511 = Green remains at 255
the Arduino through a breadboard for ease of development.
and Red increases with force; 512 -1023 = Red remains at
The values are then sent to the computer via USB and
255 and Green reduces for every second value of force.
appropriated in Max/MSP.
This allowed for smooth transitions between the colours
Additional electrical components used in the circuit
that were directly representative of the values taken in by
were:
the force sensor.
• Two * Red LEDs
The IR sensor acted under the same premise but the
• Two ∗ RGB LEDs
values had to be appropriated to match the scale first. The
• Two * Capacitors range of values read by the IR sensor were from 0 – 600.
The Red LEDs were connected to the two momentary With no interaction, the sensor was reading a typical base
switches and allowed for important visual feedback as to level that was peaking at approximately 90. In order to
the state of the instrument. The switches were referred to eliminate these unusable values and then expand our
throughout the process as ‘Button 1’ and ‘Button 2’ in values to fit the desired range of 0-1023, the following
respect to their position from left to right on the surface of formula was used:
the instrument. Button 1 controls the Freezing of a note dist = ((dist – 90) * 2.0058))
and Button 2 acts as a shift control, which activates simple
alternate mappings for the FSR and IR. This will be 3.2 Connecting with Max/MSP
discussed in more detail later. Similar re-appropriating measures needed to be taken in
RGB LEDs were used to provide constant feedback Max/MSP in order to gain more usable values that were
relating to the state of the continous sensors. These LEDs less susceptible to sudden peaks in value. A low-pass filter
were used because they are able to reflect constantly was applied to the values received and these values then
changing values. In this way, the movement of values underwent a running average process, which would
throughout a certain range can be shown with changing of constantly output the average of the last fifteen values that
the LED’s colour through stages: off, green, yellow, red. were received. This introduced slight latency into the
This is achieved by constantly updating the values sent to control process but it was nothing significant enough to
the Red, Green and Blue pins of the LED. affect how the instrument is used.
The sensors used allowed for reasonably accurate
readings, which would much more easily afford precise 4. Performance/ Musical Aesthetic
control. However, two 22pF capacitors were used in order This instrument contains several references to
to stabilize the signal from the power source. These were characteristics of existing instruments. As regards
added to account for unpredictable peaks in the values read performance, there are obvious connotations to a theremin-
by the sensors. Adding these across the side-rail of the like style. The control of pitch by non-contact interaction
breadboard allowed for much more controlled results. affords the user a novel yet familiar means of interaction.
The force sensor provides a certain degree of haptic
3. Development
feedback simply due to the fact that the musician is
3.1 Programming Arduino pressing against a hard surface and can judge their effort
themselves. The basic interactions involved in the playing
Throughout the development process, the Arduino code style are simple but a great deal of practice and attention is
had to undergo a number of changes in order to best required in order to craft convincing performance
achieve the relatively complex results that were required of techniques. The shift button (Button 2) takes advantage of
it. Reading values from the buttons and sensors was the conceptual rather than mechanical connection between
straight-forward, as outlined in many of the examples of the sensors and the sound parameters. With the shift button
code provided with the Arduino program. Similarly, pressed, the IR sensor changes from controlling values of
activating the LEDs for the buttons was simply a case of the frequency domain to those of the time domain.
mapping the values read in by the pins for the buttons to Similarly, with the shift button pressed, the Force sensor
the outputs of the pins for the LEDs. takes on new meaning as the control of Loop Offset rather
Controlling the RGB LEDs required slightly more than Loop Size. Button 1 provides left hand interaction
research. The LEDs consist of four pins – Red, Green, similar to that of a pianist. Pressing this button will freeze
Blue and Ground. Each of the colour pins was fed in a the sound at the current point and play it constantly as if it
value from an assigned PWM pin on the Arduino. This were a sustained background chord. This is similar to how
a piano player may play a chord with the left hand and a envelope to the output so that the sound has a certain
melody with the right hand. Perry Cook referred to the attack when it is activated. This added to the musical effect
advantages of this kind of leveraging of pre-existing of the instrument. This sound would then be sustained until
techniques as an essential factor in designing new the IR sensor was inactive, at which point the release
instruments[3]. values of the envelope would be applied to the volume of
Musically, the instrument sits in an area populated by the sound.
droning instruments assigned to set pitch intervals such as Once the sound is activated, it goes through a process of
an organ. The transposition of the sound occurs in steps, time stretching which will slow the sound down in a range
creating defined notes relative to the original sound. These of [-0.5 to +2]. This playback rate is initially set to 1 and
steps can be seen as similar to the keys on an organ. The will be reset back to 1 again when the IR sensor de-
value taken in by the IR sensor is divided up equally so activates. Pressing the shift button and interacting with the
that the transposition in semitones ranges from 0 – 12. The IR sensor control this rate. A feature built into the patch is
transposition occurs in a descending Aeolian scale, which the ability to hold values when the musician activates the
gives a slightly Eastern quality to the sound, particularly at shift button. When the control of the IR sensor is changed
very low playback rates. A transposition of zero is from pitch to speed, the current pitch value is held and will
achieved at the highest possible distance from the IR remain at that point until the shift button is depressed and
sensor and when the hand is as close as possible to the the IR value either exceeds the previous value or
sensor the sound is transposed down a full octave. terminating right hand interaction deactivates the note.
The sound capabilities of an instrument that is based on This means that when switching between control functions,
a pre-recorded audio sample can scarcely be disputed when all values can be maintained so there will not be a jump to
it is explored on a microscopic level with the digital signal unpredictable values. Essentially, Button 2 acts as both a
processing capabilities afforded by Max/MSP. A five hold and shift function.
second sample provides 221 separate frames, each of
which can be used as a separate starting point for a loop or
as a frozen note in itself. In this way, the sonic capabilities
of the instrument are as rich as the source will afford. For
example, a cello can create any sounds that the string will
permit, which is a huge amount of tonal capability,
however, as with all instruments, including electronic
instruments, there are limitations. The ability to recreate
our instrument by exploring a new sample is like replacing
the string on the cello with any tangible item that can
create perceivable sound.

5. Personal Contribution
5.1 Sound Engine
The author’s main contribution to the instrument was the
realisation of the sound engine within Max/MSP. This
required several different processes and approaches, hence
the satirical title of the instrument. It was within Max/MSP
that the mapping of the sensor inputs to manipulative
parameters took place. The main parameters were Figure 2. Mapping
controlled with primary one to mapping; however, some of Figure 2 gives an example of how the mapping looks.
the values were also mapped to secondary controls such as After the time domain manipulation, the signal is sent to a
effects processes. pitch shifting section, which will transpose the sound
The signal chain of the audio begins with a sample depending on the position of the IR value within the
being recorded to an FFT; this is done upon opening the defined scale. This is achieved with the use of more FFTs.
Max patch and pressing the ‘Startup’ Button. For our This transposed signal is then sent to two more
purposes with the instrument, we used a five second loop transposition processes, which create a version of the
from the beginning of the Thomas Newman song sound that is shifted an octave up and another an octave
‘American Beauty’, which consists of a short four note down. This creates much greater sonic content.
piano phrase. This sound is played back when the IR The three sounds are then combined and sent through an
sensor is activated by motion. As opposed to simply effects process, which includes Overdrive, EQ, Delay,
turning the sound on and off, we applied an ADSR Reverb and Limiting. Some of these effects are controlled
dynamically by mapping sensor values. Overdrive is regarding the definition of performer vs. programmer [2].
controlled by the rate of change of the IR value. In this One rewarding result from our research was the
way, the faster the musician changes from one position to implementation of more interesting one to many mappings,
another, the more bite there is to the notes attack. The which have been described as much more interesting for
middle EQ frequency on a filter is controlled by the force the performer [4].
value, so as the loop size decreases, the emphasis of the We found that by complying with the objectives we set
EQ moves down to lower frequencies. When the note is in the introduction, it is possible to create an electronic
deactivated by removing the right hand, a delay effect is instrument that bears much more resemblance to the
activated, adding a tale to the sound. This sound is then traditional instruments we are familiar with, while still
sent to the output. maintaining a huge degree of control over sonic
Independent of this interaction is the freeze button, capabilities. Further work could possibly involve exploring
which can stop at any point in the sample and freeze a different mappings and reducing the computational
frame, extended indefinitely. This is achieved with the requirements of the signal processing.
same time stretching processes as explained above. The
frozen sound is not transposed or put through and other References
octaves, it is simply sent to another effects patch and is
controlled by similar functions to those already mentioned. [1] B. Bongers, “Electronic musical Instruments: Experiences
of a new Luthier,” Leonardo Music Journal, 2007, pp. 9–
6. Discussion & Conclusion 16.
The instrument described is our approach to the control [2] W.A. Schloss, “Using contemporary technology in live
of audio manipulation using extreme time stretching and performance: The dilemma of the performer,” Journal of
New Music Research, vol. 32, 2003, pp. 239–242.
pitch shifting. The results we found were quite musical and
[3] P. Cook, “Principles for designing computer music
significantly different from their original source. As an
controllers,” Proceedings of the 2001 conference on New
instrument in an orchestra, ours would sit somewhere interfaces for musical expression, 2001, pp. 1–4.
towards the back; it is not intended to be a lead instrument. [4] A. Hunt, M. M. Wanderley, and M. Paradis, “The
One idea we tried to address was the avoidance of typical importance of parameter mapping in electronic instrument
‘electronic’ sounds in exchange for a more traditional, design,” Journal of New Music Research, vol. 32, no. 4, pp.
expressive instrument similar to the acoustic examples we 429–440, 2003.
are familiar with.
The instrument has addressed some of the problems of
electronic instruments in computer music performance

You might also like