Category: max-projects

Osc synth in Max

Simple synthesizer controlled by touchOsc


folder: osc-synth

patch: tz-synth-4-touchOSC.maxpat


Shows how to use an ipod or iphone as a controller


  • Max/MSP
  • ipod touch
  • touchOSC


  1. setup touchOSC on the ipod to send to the host ip address that Max is running on – using port 8000 to send data.
  2. In the Max patch, try one of the last presets for a reasonable synth sound.
  3. In touchOSC, use the top (horizontal ) slider in the ‘simple’ layout.


green screen in Max

Live chroma-key example using the built-in camera.

Hacked from jitter help files…


folder: chroma-key

patch: greenScreen1.maxpat

  • click open (screen grab)
  • click read – to open a movie file
  • click start/stop toggle
  • in the grab viewer, select the background color to chromakey, by clicking with mouse

This really works best with an external camera and a large monochromatic background.


  • Max/MSP – Jitter
  • builtin camera

Max Wii remote examples

A collection of Wiimote patches


folder: wii


  • wiimote_read.maxpat
  • wii_vizzie_rotate.maxpat
  • ir5.maxpat
  • wiimote_ir_xy_synth2.maxpat
  • wiimote_pry_synth4.maxpat
  • bicycle speed sensor folder (under construction)
Osculator config file: wii3.oscd

installation (Osculator)

  • Download and install Osculator:
  • Run the Osculator config file: wii3.oscd
  • Pair a Wiimote with Osculator (by pressing the red button)
  • Set Wiimote Osc output port to 9000
Other helpful tips:
  • Use a real Wii remote, not the Nyko. If you do get the Nyko, get the one with motion-plus.
  • update Osculator to the latest version
  • Under parameters (in osculator) press + to add the little pacman symbol labeled “same address”, and set the the OSC URL to whatever you’ll be using like 9000 for Max
  • remember to add the Event type (OSC routing) and value (pacman thing) for every wiimote event you’ll be using
  • remember to enter checkbox on the wiimote window for every type of data you want to send

Wiimote read patch

The patch: wiimote_read.maxpat is a common patch for reading data from Osculator into Max.

Load this patch and keep it running in the background for all of the other patches. You will know if the wiimote is working, if the data in the number boxes responds to movement of the Wiimote.


vizzie rotation effect

Rotates the video input from built in camera.

patch: wii_vizzie_rotate.maxpat

infra-red (IR) musical light painting

Paint using an IR transmitter.

patch: ir5.maxpat

helpful suggestions:

  • Make sure wii is transmitting raw IR data in Osculator
  • Turn on audio and turn up volume
  • Turn on [qmetro] for jitter

IR xy synth

A synthesizer that responds to IR xy data

patch: wiimote_ir_xy_synth2.maxpat

helpful suggestions:

  • 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 (should match Osculator output)
  • experiment with the ‘gate’ toggle in the middle of the patch

Pitch, roll, yaw (PRY) synth

A synth that responds to pitch, roll, and yaw data

patch: wiimote_pry_synth4.maxpat

bicycle engine simulation

synthesizes engine sounds based on RPM of bicycle wheel with Wiimote in the spokes

5/2014 : under construction – note – this patch not compatible with wiimote_read

  • 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.,

A few problems with this concept – 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!  – 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.



Four ways to build a sampler in Max

  • groove~
  • sfplay~
  • phasor~
  • 2d.phasor~


folder: sampler

patch: sampler-341a.maxpat

snippets of code that were used in the sampler (in components folder)
  • sampler-2d.phasor-mod.maxpat
  • sampler-file-waveform-mod.maxpat
  • sampler-groove-mod.maxpat
  • sample-phasor-mod.maxpat
  • sampler-record-mod.maxpat
  • sampler-selector.maxpat
  • sampler-sfplay-mod.maxpat