EP-3xx41 Max – week 1

Design

  • People
  • Ideas
  • Connections

Max patches

[wpdm_file id=3]

Projects

Conversation with robots

https://reactivemusic.net/?p=4710

Frame subtraction remixer by Adam Rokshar

Using video to control audio

Twitter Streaming Radio

https://reactivemusic.net/?p=5786

AR-drone Quadcopter

code not available

The sound of a new machine

https://reactivemusic.net/?p=5945

“Designing Sound” by Andy Farnell. Max examples: Helicopter, TOS transporter,
SynthCar, Jet Engine, Granular Timestretch.

Mira by Sam Tarakajian

The [gizmo~] help file
Demonstration
Little Tikes Piano controller

https://reactivemusic.net/?p=6993

Assignment

Build a control panel in Max. It should look amazing. It should be the coolest control panel you can imagine. Use any objects, colors, shapes that you can find. But… it shouldn’t actually control anything.

Due: Have a first draft on your computer for next week. Final version due before class on 9/23. Email me the Max patch (maxpat) file or a link.

EP-4xx13 DSP – week 1

The Future

  • Living In the moment, the past, and the future.
  • Benjamin Zander: “Your future self”
  • Evolution of music.

DSP

  • analyze
  • measure
  • transform

examples

Note: some of the projects are in project examples below

  • Adam Rokhsar’s video frame subtraction
  • Little Tikes piano controller
[wpdm_file id=4]
projects

Conversation with robots

https://reactivemusic.net/?p=4710

Twitter Streaming Radio

https://reactivemusic.net/?p=5786

Plink by Dinahmoe

http://labs.dinahmoe.com/plink/#

Infinite Jukebox by Paul Lamere

http://labs.echonest.com/Uploader/index.html

Max/MSP Echonest player

https://reactivemusic.net/?p=6296

The sound of a new machine

https://reactivemusic.net/?p=5945

“Designing Sound” by Andy Farnell.

  • Max examples: Helicopter, TOS transporter,
  • SynthCar, Jet Engine, Granular Timestretch.

Little Tikes Piano controller

https://reactivemusic.net/?p=6993

Mira by Sam Tarakajian

Ableton Live Template Remixer (with dummy clips)

https://reactivemusic.net/?p=2658

Assignment

Go to the future. Make music. Bring it back to the present.

It should be a very short piece or an excerpt. Less than two minutes. It can be a remix of a song that you believe represents a future direction in music. Near future or distant future – your choice. Use any tools to create the music. The result: an audio file (mp3) or a link to audio or video on the Internet – like Soundcloud or Youtube.

Due: before the 9/23 class. Send an email attachment or link.

Send Tweets with a Little Tikes piano

This project uses the Max fzero~ object to detect which key of the piano gets pressed and send a pre-written Tweet like “Signs point to yellow” based on the color of the key.

It works with the Internet sensors project that sends Tweets from Max using Ruby. https://reactivemusic.net/?p=7013

download

https://github.com/tkzic/internet-sensors

folder: twitter-ruby

instructions

  1. Follow instructions here to send Tweets using Max and Ruby: https://reactivemusic.net/?p=7013
  2. At this point you will have a Max patch open and a Ruby server running in a terminal window.
  3. Now open little-tikes.maxpat
  4. Carefully play individual tones on the Little Tikes piano. 

notes

fzero~ is probably not the best choice for this. It doesn’t work above 2500hz which means it won’t probably distinguish between the lowest and highest key which are an octave apart. In fact the Little-Tikes piano, for a pitched instrument, is difficult to analyze. Due to relatively equal weight of partials to fundamental, and the quick decay. Other choices, would be pitch~ (Jehan) fiddle~ (Pucket…)

I remember seeing an Arduino project where somebody did this in reverse – actually built a motorized striker to play the piano)

… insert link to video here…

 

interactive media arts demo projects

Current example projects for the Interactive Media Arts course at Gould Academy. Eventually this list will be all student projects.

Light Saber Simulator by Erick Robicseke

From Fall trimester 2012.

Triggers light saber sounds by using Kinect sensor to detect arm movement

Components

  • Max/MSP
  • Kinect
  • Synapse

A video of the project is at Cycling74.com http://cycling74.com/project/light-saber-simulator

Note: I haven’t actually tried to run this yet without Erick helping to make it work.

Kinect Air Piano adapted from Ryan Challinor

Note for Kinect projects: It can be difficult to get Synapse to recognize your skeleton. I have had good results being about 10 feet away from the sensor – and making sure it can see your whole body.

Example of playing a Midi Instrument using Kinect sensor

Components

  • Ableton Live
  • Max for Live
  • Kinect
  • Synapse

File Location: kinect/myLiveSets/lefthandpiano Project/leftHandPiano.als

Use left hand to play a few piano notes by horizontal movement

Dubkinect by Ryan Challinor

Example of playing a Midi Instrument using Kinect sensor

Components

  • Ableton Live
  • Max for Live
  • Kinect
  • Synapse

Location: kinect/synapse examples/dubkinect Project/dubkinect.als

More information about Synapse and Ryan Challinor: http://synapsekinect.tumblr.com/

Instructions

It tracks lots of joints, but to start, place hands together above head and pull apart quickly, then use left arm (vertical) for volume, right hand horizontal for wobble, right hand vertical for pitch, and so on.

Wiimote light IR Light Painting and Synth controller

[note] – need to build a new IR pointer or get one – the switch and battery are a bit flakey and that messes up the drawing at times.

Musical light painting using Wiimote and homemade IR device.

Components

  • Max/MSP
  • Osculator
  • Wiimote

– musical light painter location: max teaching examples/tz examples/ir4.maxpat

  • turn on osculator and make sure wii is transmitting raw IR data
  • turn on audio and sound
  • turn on qmetro for jitter

– The hacky synth thing is at Location: max teaching examples/tz examples/wiimote_ir_xy_synth.maxpat – make sure to:

  • turn on audio
  • turn up volume
  • make an audible adsr envelope by turning up the adsr dials
  • increase lfo rate
  • check the wii-mode updreceive port (see below)
  • experiment with the ‘gate’ toggle in the middle of the patch
Osculator notes:
  • The real Wii remotes work better than the neko versions
  • check the output port (gear icon) to make sure it matches the one in max, for example 9000 or 9005
  • recently using wii3.oscd
  • If the indicators in osculator are yellow, then it probably means you havent set output routings in event type and value. Use: OSC routing and the funny pacman symbol
  • make sure osculator/wiimote is connected and sending raw IR data
Wiimote Bicycle Engine

Triggers engine simulation by using wiimote taped to spokes of a bicycle wheel. The speed of the wheel is translated to the speed of the engine sound. Still needs some work.

  • Max/MSP
  • Osculator
  • Wiimote

files max teaching examples/tz examples

  • waveguide_engine2c-bike.maxpat
  • wheelspeed.maxpat
  • bicycle2.maxpat

need to be running Osculator and tracking PRY stuff from wii – need to adjust scale in engine patch. Also, select 3rd preset for engine sound.

So basically this setup needs to get standardized – use metro to send a steady stream of wheel data. Use the up to date car engine patch, etc., etc.,

[update] there are some issues with this – for example when the wheel is stopped the signal rate revs up to over 300  – I think because it rotates backwards for a second. Also when the wheel gets really fast, the pulses just stop! why? – its like the wii-mote is overloaded or something? 4/3/2013 – I have it running so it tracks speed when the bicycle is upside down, as long as you don’t crank it too fast. but as mentioned above – the patch could be cleaned up and simplified.

Car Engine Simulation with OBD-II Sensor

Reads OBD-II bluetooth sensor from car and uses information to control an engine simulation. (Max/MSP, OBD-II sensor)

Location: automax. files:

  • rpm4.maxpat
  • waveguide-engine2e-1.maxpat

Need to run through the initialization sequence to make it work – note this patch needs to have metro streaming of data because it doesn’t change frequently enough to get a smooth engine sound.

Star Trek Transporter

Simulates TOS Star Trek transporter (Max/MSP, Jitter (Vizzie), Korg Nano Controller)

Files are in pd/

  • vizzie-transport2
  • transporter_TOS2-var

Make sure audio is on, vizzie is on, nano controller is plugged in – then press the lower right button in channel nine of the nano controller to start transporter

Guitar Hero Controller

[update – last tried this in December 2012 and ran into a few issues with setup]

Use a Guitar Hero controller play synthesizer in Max.

components

  • Guitar Hero Controller
  • Max/MSP

This patch (buzz_360) has some issues, but it shows how to use and calibrate a Guitar Hero guitar controller in Max/MSP. You will need to get a driver working. See the previous Guitar Hero post about how to do that.

file location: guitarhero/fretbuzz_v0.2/buzz_360_tz3.maxpat

There’s no way to make this work clean for a demo without taking apart the whole button driver patch (buzz_setup_360) and it has some serious max6 compatibility issues. So it just needs to be calibrated every time for now.

Use the GRY mode for a demo…

Before using it, restart Max.

Works in Max6 – need to calibrate first, don’t worry about tilt and whammy for this app but you need to calibrate them first anyway by pressing the X toggle, tilt, then unpress, or it wont work. when you calibrate the buttons, the X toggle should disappear. then save and untoggle the config box.

mode selection example: hold back button, press and hold the green button, then let go of back (that loads mode G)

download link:

http://theguitarzeros.com/download_fretbuzz.php

Cool modes: (guitar)

RY – solo mode – hold down frets and twiddle

GRY – 2 hand tap mode – orange does major 3rd up shift – holding flipper down does one button thing

GB – uses tilt sensor

also Y – power chords

 

To set a mode, hold “back”, then select the color code keys, then release “back”

Irish Train Data Visualization

[update – now part of internet-sensors project]

Collect current train position data from Ireland display it as point data on an XY grid.

components:

  • Max/MSP
  • node.js
  • Web browser
  • Irish train API

 

server files in: hoo/

To run server,

# node max-train1.js

Max files are in: maxNode-jsTest

  • max-train2.maxpat
  • train-drawing3.maxpat

The presets go from low res to high res on Dublin. You can play back train-data1.txt by clicking read message on the data recorder. set metro set to 1 for high speed. Need to manually clear the lcd and lcdsprites in the drawing section.

Green Screen Demo

[update: this really needs an external camera and a large green area]

An example of live chroma-keying, ie. green screen

components

  • Max/MSP – Jitter
  • builtin camera

files in: max teaching examples/

greenScreen1.maxpat

to use:

  • click open (screen grab)
  • click read (moves/nd2.mov)
  • click start/stop toggle
  • in the grab viewer, select the background color to chromakey, by clicking with mouse
Lego Drum Sensor

uses contact microphone for musical effects (patch by Matthew Davidson?)

components

  • Max/MSP
  • Contact Mic

files in: max teaching examples/PM1_piezo_translator

run: _piezo.maxpat

  • plug in mic before you load max and set input to port
  • turn dsp on
  • ******set input to 2 (or 1 )and turn up level
  • try master preset 5
  • also try sample1
Text Rain by Camille Utterback

Uses video tracking to interact with people and affect projection of letters falling on screen

components

(unknown)

 http://camilleutterback.com/projects/text-rain/

Touch OSC controller

Shows how to use an ipod or iphone as a controller

components

  • Max/MSP
  • ipod touch
  • touchOSC

file in: max teaching examples/tz examples

tz-synth-4-touchOSC.maxpat

need to setup touchOSC on the ipod to send to the host which Max is running on – using port 8000 to send data.

Try one of the last presets for a reasonable synth sound. Then use the top (horizontal ) slider in the touchOSC simple layout.

New York Times Archive Search Visualization (Jer Thorpe)

Graphs occurences of Winnie The Pooh characters in the NYTimes since 1985

components

  • processing
  • NYT API

file in: Documents/processing/NYT_GraphMaker/NYT_GraphMaker.pde

Replace occurrences of pooh, kanga, tigger, with whatever, like chocolate, strawberry, cherry, vanilla – then run it. It takes a minute or so to generate the graph. To read the graph start at 12:00 (1985) and read radially clock wise to 2012

Circuit Bent cat alarm

Whenever the cat crosses the path of an electric eye it triggers the gun.

components

  • electric eye
  • toy ray gun

PVC Saxophone with fx processing

PVC tubes with a saxophone mouthpiece hooked into a Roland Sound Canvas for fx processing.

Musical Pants by Ryan Linn

Built with sensors made from foam rubber and pennies – to trigger an icube-x midi controller running into a midi-synthesizer. Ryan did this project at Gould Academy.

http://zproject.wikispaces.com/musical+pants

Music From Weather Data (Cycling74)

Monthly weather data from 4 cities controls a midi piano synthesizer (max/MSP)

Example is a tutorial patch in Max | Help | Max Tutorials | Data | 02dDataScaling.maxpat

This tutorial is one of the best examples of how to connect Max with data to make music and cool visualization…

Stock market music case study

The fluctuations in stock market quotes and volume are converted into musical notes.

components

  • Max/MSP
  • php, mysql, html, javascript

http://zproject.wikispaces.com/stock+market+music

Arduino Twitter election mood light

An adaptation of the classic Arduino mood light which translates twitter mentions of political candidates into voltage levels.

Arduino Files: documents/arduino/networked_lamp.ino

Processing Files: documents/processing/sketch_may15a

needs some testing – also need to clean up file names, get a schematic, etc.,

 

Ableton Live field recorder

Apply envelopes and effects to ambient sounds to create “music”

Start with the sound of an orchestra warming up, traffic, sea lions, or any field recording – then apply global envelopes to shape the sound over time.

updated 4/19/2015

Screen Shot 2015-04-19 at 9.39.41 PM

Based on a tutorial by Sonic Academy: https://reactivemusic.net/?p=2431

Local file is in Ableton teaching examples: dummy clips band recorder 11-08b (under dummy clips example project) This version uses ambient traffic sounds.

A version with a high-school band horsing around is in: dummy clips band recorder3z

The actual set will be posted here – eventually…

Rough description:

This project is an effects processor made with dummy clips – it has a simple hip-hop drum track.

instructions:

  • press ‘p’ to shut off speakers in dummy clip audio tracks (to prevent feedback in recording)
  • press cmd-comma (for config) to turn input device on
  • arm the “field recording” track and record a clip
  • press cmd-comma  (for config) and turn off input device to prevent feedback during playback)
  • press p to turn back on speakers in dummy clip tracks (so you can hear playback)
  • double click the new recorded clip, highlight section you want to keep and do crop clips.
  • press warp
  • <ctrl>click on the clip name and choose: slice to new MIDI track
  • Select bars or half notes
  • Select: Slice to single sample (Live 8)
  • A new track will get created with all the midi slices.
  • In the sampler device, select the zone tab, click on a slice and the press <ctrl>a to select all slices
  • Then in the Sample tab, turn on looping with one of the ->-> thing buttons under sustain mode.
  • disable (mute) the original field recording track
  • route the audio of new midi sliced track to the beat enveloper track – you’ll be playing this track with a Midi keyboard.
  • As long as you keep the field recordings and Midi slices out of the first row, you can start the music by doing a scene launch in the first row.
  • launchpad can be used to trigger the dummy clips

(edit) you may want to just delete the example clip that slice to midi makes because it will totally screw everything when you try to play it.

sound effects from here http://www.pachd.com/sounds.html