Simple Wavetable Oscillation with Max/MSP

wavetable_oscillatorFor my second entry in the One Max Patch Per Week category I’ve created a very simple, monophonic, wavetable oscillator.

Although it hasn’t been a week since my last patch, I’m going to allow myself to produce more than one example per week, if I happen to have the time available. To create output from the patch I loaded a rim shot sample using the read button into the buffer object. After that I turned on the dac and dragged the mouse around on the keyboard, known as the kslider object in Max.

The kslider sends velocity data from the bottom right outlet. The velocity values are determined by the vertical position of the mouse on each key. I scaled the velocities to 100 through 127 so that I wouldn’t get very quiet notes while dragging near the bottom of the keyboard. View the comments to copy the compressed patcher.

Simple Wavetable Oscillator

Mapping Pitch and Amplitude to the Track Pad with Max/MSP

trackpad_to_pitch_and_amplitudeCurrently I’m taking a graduate class in Max/MSP/Jitter at the University of Minnesota with Ali Momeni. Recent experiences including a night class in July at CNMAT (the Center for New Music and Audio Technology, UC Berkeley), and this current class at the U are really opening up my eyes (and ears) to the possibilities of Max 5. As a result I’m becoming more and more convinced that this is the ideal platform for the kind of projects I’m currently interested in.

The workload in the class is intense, but I have decided to punish myself even further by committing to post the audio output of at least one Max patch per week on Audio Cookbook in a new category called One Max Patch Per Week. It’s not quite as ambitious as my One Sound Every Day project, but with my busy schedule I should be able to keep up the pace.

Here’s my first entry into this new category. It is a simple way to map the input from the track pad or a mouse to the pitch and amplitude of a sinusoidal sound wave. For the patch I used the “pictslider” object, which outputs the x and y coordinates as scaled values.

I mapped the x coordinate to pitch with a range of values between 200 and 800 Hertz, and the Y to the amplitude with the typical MIDI based values of 0 to 127. I’ve included a screen grab of the patch so you can see how simple it was to do this.

Track Pad to Pitch and Amplitude