From:
                                                            5/19/97 11:00 PM
Subject: MAX Digest - 18 May 1997 to 19 May
1997To: Recipients of MAX digests 

There is one message totalling 31 lines in this issue.

Topics of the day:

  1. MAX written as C functions

----------------------------------------------------------------------

Date:    Tue, 20 May 1997 07:01:16 +1000
From:    David Rodger 
Subject: Re: MAX written as C functions

Roland Hemming wrote:
> Some functions might be very small. What i find is that when I write a
 function
> is that I can divide that up into several smaller functions.
>
> I'm sure we all do this a little but I have taken this to an extreme where
> everything in this part program is a generic patcher. There are NO
duplicate
> or similar patchers in my program. What I discovered after doing this is
> that the patcher size is considerably smaller.

What about when you want to do similar things in several places?  I'll give
an
example: I wish to define certain 'hotspots' in a 3D performance space whose
dimensions are mapped to Control Change messages.  I set up each hotspot in
the same way (although I pass different values to each, for each one's
location, etc.).  It's easier (at least for debugging) to do this in a
modular
fashion and make each hotspot and instance of a Hotspot patcher.

If you don't duplicate anything, how do you achieve this sort of
functionality?
Or do you mean that, instead of making duplicate instances, you encapsulate
them, i.e. p Hotspot, instead of Hotspot...?

Regards, David
musdr@lure.latrobe.edu.au
http://farben.latrobe.edu.au/d_rodger/

------------------------------

End of MAX Digest - 18 May 1997 to 19 May 1997
**********************************************