Sinewave Workshop: A drone machine in Max/MSP

I have finally got something that I made in Max/MSP that I like well enough to send out into the world.

This project was started many months ago under the somewhat tongue-in-cheek name “potpie simulator”, and although I have left some visual artifacts to spice up the interface, I changed the name to “Sinewave Workshop” because it simulates my controversial musical friend potpie no more than a stack of AC/30′s and a Les Paul simulates Brian May of Queen. It does simulate his most famous (and crowd-dispersing) setup, such as I remember from the many times Chef Menteur played a show with him, but it differs from a few important ways as well.


Sinewave Workshop 1.0.7 for Mac OS X

The bank of sliders allowing you to add harmonics via additional oscillators (and detune them) is not a feature of the classic potpie setup, but would be similar to running the signal through the Electro Harmonix POG or HOG pedals. In addition, the knobs above the sliders give you the ability to detune each oscillator slightly for that groovy “beating” sound common in analog synthesizers and tube/transistor organs.

There is an onscreen mini-keyboard you can use to set the sine wave generator to exact note frequencies (equal temperament, A=440Hz), and you can even attach a MIDI keyboard and play the notes that way for an organ-like sound. If you have a MIDI fader box or other controller you can use that to change the volume and tuning of each slider and detune knob in the harmonics section. I have an Evolution (now M-Audio) UC33e that I use for this.

The range knob on the emulated sine wave generator does not multiply by factors of 10, but by factors of 4, which means that each turn of the knob will raise or lower you by two octaves instead of some non-musical ratio.

There is a little bit of vibrato modulating the sine wave. (I plan to add a switch or knob to change this.)

The delay section simulates one pedal, you can turn off the incoming sample by clicking the light blue square button (or hitting the spacebar) and the delay will continue to cycle. To really get the “potpie sound”, turn the mix up to 100% and the feedback to 90%, and only let sound through sporadically with the button or spacebar (changing notes in between).

Possible future improvements:

  • square wave option
  • Multiple delays, including an 8-second one to simulate the DigiTech 8001.
  • Delays with white noise and 12-bit sampling (for that old school grungy digital sound).
  • Vibrato depth/rate control.
  • Wii-remote control. (Actually I already had this working, but was so hard to set up the Wiimote that I removed it for now.)
  • OSC control… so you can use your iPhone to control it.
  • An “organ” version that allows you to play chords with MIDI keyboard and releases notes when key is released.
  • A Max For Live version


Download link for this project is below. It requires Mac OS X 10.4 to run as a stand-alone app. If you have Max/MSP (version 5 or above) you can download the max collective:

Sinewave Workshop 1.0.7 (standalone application for Mac OS X 10.4 or later)

Sinewave Workshop 1.0.7 (Max collective; requires Max/MSP 5.0 or later)

Enjoy, and please let me know how you like it. I’d appreciate any feedback (no pun intended) from both people wanting to use it as a simple musical instrument and folks who are familiar with Max and take a look at my patch. Note that I have Max For Live and “borrowed” the delay line patch from one of the tutorial sessions; my much more simple one had noticable clicks when you changed the delay time.

5 Responses to “Sinewave Workshop: A drone machine in Max/MSP”

  1. aleatoric Says:

    Note: If you have trouble getting sound, click the DSP status button, and set your Driver to “Core Audio Built-in Output” and then Audio to “on”. You should hear a low tone, grab the sinewave generator and turn it clockwise to get higher pitches. Add harmonics with the sliders.

  2. dev Says:

    hey this is pretty cool. are you open to sharing the editable Max patch? I have Max 5 but the collective is all locked down. I’d want to make some adjustments to the slider controller assignments, vibrato, etc, and use it as the basis for an app that will be used for an installation piece. Let me know if you are open to that.


  3. Sine Wave / Harmonic / Delay Workshop Max/Msp Software (OSX) « Binary Heap Says:

    [...] Enter Here: Sine Wave [...]

  4. aleatoric Says:

    I’m happy to share David’s art piece, completed and installed:

  5. ale{atori}c» Blog Archive » Arcade Sine Wave: Art Installation Says:

    [...] art piece by David Fodel that uses an old arcade game console and elements of my Max/MSP project Sinewave Workshop to produce a unique installation. Very cool to say the least; check it [...]

Leave a Reply

You must be logged in to post a comment.