For 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