tweet

Max/MSP diary part 5: the evolution of a patch

From ugly duckling to, err… magnificent swan

Chris Wickett, Wed 22 Oct 2008, 5:31 pm UTC

Max/MSP diary part 5: the evolution of a patch

Too many objects can make things look messy

View in gallery

The most surprising thing about learning to use Max/MSP is that the more I practice, the better I get.

You may think that's a stupid, sarcastic comment but, as I slowly progress through the tutorials and mess around with my own patches, I find myself genuinely astounded at how quickly everything falls into place.

Sure, there are problems here and there and solving them often involves a fair amount of brain power, but you get a real sense of progress from doing so.

Over the last few days, I've been improving the patch I made for my previous blog – a very basic, dual-oscillator synth controlled by an X/Y pad for the mouse. The patch was lovingly dubbed (somewhat inaccurately, seeing as it's nothing like a Theremin) Rubbish Theremin. As you might be able to guess from the name, it had a few problems.

Here's the original:

null

You may remember I had a problem with the two oscillators (one sine wave and one sawtooth wave) and phase cancellation. So, borrowing from a helpful chap called Chris Muir (from the Cycling '74 forums), I changed signal path of the sine wave generator so it would act as a slave to the sawtooth generator. This ensured the phase of the two devices would always be in sync. I also borrowed further from Mr Muir, who suggested converting mouse movements to a MIDI note value, in order to keep pitches in tune.

Subpatches

With phase and pitch problems dealt with, I set about 'pimping out' my patch. And thoroughly pimped it is too (note the oscilloscope). Here's Rubbish Theremin v2: Download patch (right-click and Save As...)

null

Aside from generally tidying things up and removing unnecessary objects, there are quite a few changes to version two of the synth.

The most obvious change is the addition of subpatches. Subpatches, as you might guess, are smaller patches within a larger patch. If you have a whole group of objects doing just one task, for example, you can group them all together and 'encapsulate' them. This means that instead of an unsightly array of objects and patch cables, you just have one neat box that looks exactly like any other Max object. Should you need to make changes, double-clicking the subpatch object will bring up its contents in a new window.

Go to page:123
Share:
StumbleUpon
Digg
Reddit
Del.icio.us

User comments (3)

You need to be logged in to post a comment. Login or Register to post a comment.

Poll

Ask MusicRadar: you've chosen the shortlist, now pick a winner. What's the best bass guitar under £300?

ReviewFinder

Search by product, brand or manufacturer

Buy here

  • Buy music products with Thomann
  • Buy music products with Red Dog Music
  • Buy music products with Scan Computers
  • Buy music products with Professional Music Technology
  • Buy music products with Andertons Music Company

MusicRadar Marketplace

If you're looking for great deals on gear, tuition, mastering, education or kit hire, click here for our new and improved marketplace.

Follow us on twitter Sign up for our free newsletter Have your say on the MusicRadar forums