lecture notes • Spring, 2016
Keep your work off of the desktops. Set up a Google Drive folder for your team and store everything there.
Meta-events: events about events. How do you implement them in Max?
Use objects: metro, tempo, sliders, dials, lists of numbers, random, number boxes with limits and offsets
Signal Processing in Reason
Processing modules: reverb, complex reverb, flanger, delay, scream, etc.
Assign each module a MIDI channel in Reason Hardware Interface.
Controller numbers assigned to each parameter are in the MIDI Implementation Chart PDF and the ReasonCC folder.
Use Max to assign different incoming data to different channels to control effects, mix, aux sends, panning, etc.
password: T.....5 (case sensitive)
Designing an instrument:
What gestures will control it?
What sensors do you need for those gestures?
What will need to be done with the sensors to make them "playable", e.g., mounted on wood, put in tubes, duct-taped to your head?
How do the sensors translate into switch contacts, or 10KΩ resistors, or +5V DC sources, to use with the Arduino? Will there need to be supplementary electronics?
What processes will be applied to the MIDI data coming from the Arduino in Max?
What will the instrument sound like, and how will the sound be controlled by the gestures?
Assigning tasks within the team:
Specifying and obtaining sensors.
Specifying materials to make sensors playable, i.e., the human interface.
Wiring the sensors making the wiring robust.
Adding circuits to process sensor data.
Writing the Max patch to process the data.
Designing the Reason patch.
Soldering tools and techniques:
• Safe use of the soldering iron
• Assembling components on a breadboard and soldering them: use prototyping board for testing circuits; permanent board for projects.
• Good soldering practice: read
• Using heat sinks to protect components
• Unsoldering and removing components using wick/braid and/or suction
• Use headers where possible
Document your circuits, components, and wiring!
Wear goggles when using any power tools.
Don't use power tools when you're alone in the building. Check to see if there are others around when you come in!
Don’t use tools you don’t know how to use, especially soldering irons, jigsaw.
Unplug soldering irons after use.
Unplug glue gun after use.
Don’t overuse hot glue. Heat destroys components.
No spray painting in the building: take objects outside and use cardboard backing so paint doesn’t get on pavement or grass.
Toggle, push-button, momentary, lever, magnetic
Rotary encoder: has two different switch contacts, “0” and “1”. Speed of encoder determined by how fast switch contacts are made; direction determined by order of contacts.
Continuous sensors can act as resistors or current generators. Some, like rotary or slide potentiometers, can be connected directly to the Arduino. Others need buffering, amplification, and/or filtering to provide usable signal.
• Force-sensing resistor=pressure. Button-type or strip.
• “Softpot”, flat variable resistor, ribbon or circular
• Joystick=two-dimensional variable resistor
• Flex sensor=bending angle
• Infrared distance sensor=from about 1.5-10 inches. Available in various ranges. Get too close and the field inverts.
• Photocell: presence or absence of light
• Accelerometer: 1-axis, 2-axis, 3-axis. More sensitive ones can measure tilt (responding to gravity)
• Piezo electric foil=striking or bending force. High voltage.
• Color and gesture: https://www.sparkfun.com/products/12787
• Myelogram https://www.sparkfun.com/products/13027
Max tips from Phil Acimovic (on site)
Keyboards and MPD will now be in fixed configuration so everyone has the same inputs. Controller and button assignments are on printed sheet at each station. It's up to you to modify things in Max.
Reason NN19 module: samples, with many of the same filtering and envelope parameters as Subtractor.
Building sample map, assigning controllers.
Tuning samples: Setting root note. Keyboard tracking (if off, no pitch change within the key zone).
AIFF/WAV/MP3 audio format. Samples can be mono or stereo.
Importing sounds either through Reason's browser or just drag them in.
Instrument and SFX libraries in EMID Resources.
File: Self-contain setting! Must be turned on and all samples checked before saving, or samples will be lost.
Roger Linn's email: email@example.com
To get a 30-day download: http://cycling74.com/downloads/ (currently shipping Max 7, but get Max 6 to be compatible!)
Launch Max. Before opening a patch, check Max's MIDI Setup: in a is MPD26 or keyboard, out a is "fromMaxMSP1". Disable all other inputs and outputs
Launch Reason. In Prefs>Sync set Bus A to "fromMaxMSP1"
Edit and locked mode. command-E toggles, or click on lock icon.
Number box = for monitoring.
Can choose to display MIDI note numbers OR names (get info)
Patch cables connect everything.
Sliders (0-127), can change (Get Info)
Pipe: number of arguments is number of messages passed, with last one being delay time in ms. "0 0 0 time" will delay a MIDI message (zeroes are placeholders).
MIDI Scope: Max patch for analyzing incoming data.
Akai MPD26 and Reason
Using MPD with Reason--you can now control anything on the panel with the proper controller numbers (tables on machines)
Multiple modules in Reason: addressable by MIDI channel, different pads on MPD
Using Editor: select channel (CC=common) and function for each slider, knob, and pad.
To save a preset, follow instructions next to the computers.
Keyboard knob setups, with controller numbers:
Mod Wheel = 1
Slider = 7 = volume
|Amp Env Attack=73||Amp Env Release=72||Filter Freq=74||Filter Env amount=18|
|LFO rate=26||Osc Mix=107||Osc 2 fine tune=104||LFO 2 amount=111|
What are a synth's parameters?
Filter freq and resonance
Envelope, filter envelope
LFO rate and depth, mod envelope
Mapping keyboard physical gestures (velocity and modulation wheel) to musical ones:
Mod wheel to pitch vibrato, volume vibrato, timbral change, envelope
velocity to amplitude
velocity upside down to volume
velocity to envelope attack time
velocity to filter envelope (brightness)
Save the whole rack (.reason) into your own folder on the Google Drive>EMID Resources.
Familiar vs. unfamiliar user interfaces for music
• Familiar: keyboard, guitar, drums, malletboard, violin, woodwind, brass. Advantage, people already know how to use it. Doesn't require new skills, practicing, rethinking how you make music.
Most commonly in electronic world: keyboard. Used with Moog synths, Switched-on Bach. Became glorified organs with thousands of stops, people play all of them the same way.
But, can extend technique to play keyboard in new way that has different expressive parameters (aftertouch, wheels, pedals).
• Adaptive: or extended, like keyboard with pedals; stringless guitar; wind controllers with more buttons and levers than a conventional wind instrument; violins with sensors on the bow, etc.
• Unfamiliar: like Theremin: hard for guitar or string players used to articulating with right hand. Using different parts of the body, or in different ways. Finger position or movement on surface or in free space. Relative positions of fingers -- spread or angle. Bend of joints: wrists, elbows, knees. Pressure on surface. Requires practice and mastery! Think of music in different ways than simple button-pushes/discrete events.
Out jack connects to In jack using MIDI cable. Speed is limited to 31,250 bits/sec, about 1000 commands/sec. Other transports (USB, Firewire, Ethernet) have no speed limit.
Virtual MIDI connections (inside operating system, using software synths) have no speed limit.
External devices communicate with computer using MIDI-USB interface or just USB, in which case computer must have driver software that recognizes the device. We have custom driver for Max that recognizes Arduino.
MIDI command structure
Real-time control language.
Some commands three-bytes, some two, some one, some longer.
Best expressed in hexadecimal notation: 0-255 decimal ($)=00-FF Hex
Numbers below 128$ (80H) are data bytes. Numbers 128$-255$ are command bytes.
Channels: second half of command byte, 0-F=read as 1-16. Different insruments respond to different channels. In Reason, each module is on its own MIDI channel.
Note on (9n) + note number + velocity, off (velocity). Decimal ($): 144-159
Note off (8n)+ note # + velocity. Duration is time between on and off. 128-143$
9n with velocity zero is equivalent to note-off
Controller (Bn), controller number, value. Some continuous (wheel, slider, breath, foot control), some switched (sustain pedal). 127 of them, not all defined. Used for any kind of continuous command. 176-191$
Pitchbend: (En) + LSB + MSB. Like controller but its own command, double precision. 224-239$
Mono Aftertouch or Channel Pressure: (Dn) + value. 208-223$
Poly aftertouch (An) + note # + value. 160-175$
Program change, (Cn) 0-127. Reason doesn't respond to it. 192-207$
An electronic musical instrument uses gestures to control electronic circuits.
Can be simple (direct) like theremin (video)
or complex (through microprocessor) like Wriggle Screamer (video)
Computers provide ultimate flexibility: they can produce any sound, and interpret any gesture however we like, once we get the gestural information into the computer.
The physical aspects of an instrument no longer have to have any relationship to the sounds it makes.
Two metaphors/paradigms for musical instrument:
1) Instrument metaphor:
Causes a sound to be made
Control of pitch(es)
Expressivity takes many forms:
Pitch articulation (more than just turning on a note)
Amplitude articulation (initial and subsequent)
2) Controller/Mixer metaphor:
Sequence or pattern generated automatically or by a single gesture.
Gestures control the parameters of the sequence as it plays.
Selection, adjustment, nudging, changing volume/balance/timbre on the fly
Basic things to think about when designing an instrument:
Depth & Virtuosity: As you learn it, you get better and can do more with it.
Something interesting to look at? Audience needs to pay attention, be able to connect what they see visually with what they hear.
Basic sound parameters
Pitch (inc. glide, bend)
timbre: waveform, filter freq, filter res, noise level
Envelopes of all (ADSR)
Vibrato (LFO) + vibrato envelopes
Casio MIDI horn: mapping aftertouch to musical parameters: volume, vibrato, filter, noise
Next meeting in lab!
• Course pack (buy at Gnomon Copy), What’s MIDI? (buy at Music office), reference books, manuals and catalogs in lab, on comptuers, and on Web site.
• Lab: in Curtis. Electronic parts and tools, sensors, software, mechanical parts, 3D printer, hand and power tools for woodworking and assembly.
• Laser cutter and more tools at CEEO, now at 200 Boston Ave. Available to all with simple training.
1) What's music? Varèse: organized sound. Working definition: Sound that is created deliberately, with intent, and has interest as sound.
2) Elements of music: melody, rhythm/tempo, harmony, timbre/orchestration.
3) What's a gesture controller? Something that responds to a physical action by one (or more) human beings. Examples: Squeeze, blow, pluck, bow, hit with hand or foot or stick, press with fingers.
How we do it: Links in the chain:
• Electronic sensors to detect gestures: touch, pressure/force, movement, acceleration, distance, displacement
• Framework to hold the sensors and make them playable.
• Device to turn data from sensors into MIDI: Arduinos
• Software to interpret and process the MIDI data: Max
• Synthesis software to turn the processed MIDI into sound: Reason, Max MSP
• Audio system to produce the sound
What we will do in the class:
• Study existing electronic instruments, see them demonstrated on video and live
• Conceptualize physical gestures as they can be used to make music
• Learn MIDI, what the commands mean, how they can be used to control music
• Learn Reason, a software synthesis system, and how to set its parameters
• Translate gestures into electronic form, using sensors, and then translate them into MIDI using Arduinos and MIDItron
• processing real-time MIDI data with MAX
• Building new controllers and systems
• at the end, do a public demonstration