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.
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:
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.