From:
                                                            10/3/97 11:01 PM
Subject: MAX Digest - 2 Oct 1997 to 3 Oct
1997To: Recipients of MAX digests 

There are 5 messages totalling 393 lines in this issue.

Topics of the day:

  1. ____HELP: MouseState, brackets, BNDL/FREF/ICN# questions___ (2)
  2. MAX in Sweden
  3. eMagic
  4. OS 8

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

Date:    Thu, 2 Oct 1997 22:29:29 -0700
From:    ai 
Subject: ____HELP: MouseState, brackets, BNDL/FREF/ICN# questions___

Oct 2, 1997

Hello,

Some current open questions I have for Max (3.0/3.5):

1. MouseState

   I'm using MouseState with poll to report the current
   mouse position in a patcher window. What I need are the
   local horz/vert coordinates of the mouse, not the
   global screen coordinates which is what I get now.

   How can I use MouseState (or some other Max obj) to
   report local coordinates within a regular patcher window?

   I want the horz. & vert. local coords only when the
   mouse is moved (and up).

   (I know about the zero command - but I don't if/how I could
   initially force the mouse position to the upper left
   corner (local 0, 0) of my patcher window).

2. Brackets

   How can I have sub-patch windows in Max (or a standalone)
   not display brackets in the window title?  (ie. for a
   3rd level sub-patch:  "[[[Level3]]]" is a kindof ugly
   window title)

3. For creating my own icons for a stand-alone app via
   my own BNDL, FREF and ICN# resources - anyone have
   a 'recipe' for doing this?  (Don't think I have
   the correct/latest Inside Mac book...)

   By following this recipe, will file output generated
   by colls in my app automatically have my app icon?
   (and links to the standalone)

Thanks in advance for any help on the above Q's to me at:

   ai@wco.com

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

Date:    Fri, 3 Oct 1997 09:19:53 -0000
From:    Nick Rothwell 
Subject: Re: MAX in Sweden

> Is there some kind of problem distributing Max outside US?

Yes. US music software companies seem to insist on picking
high-profile but arrogant and apathetic local companies to distribute
their products. Opcode don't mind because they think they're getting
as many sales as they can in a provincial market, and the local
redistributors don't mind because they've got a monopoly.

True of a lot of US music gear companies in general, in fact, as any
small-budget customer who's tried to buy E-mu, Lexicon or Alesis in
the UK will probably testify.

As far as Opcode goes, I believe they've switched UK distributor (to
SCV?), but I was so cheesed off by their previous distributor that
I've not bought or upgraded any products in years. Obviously the
Swedish distributor is following a similar business model.

--
         Nick Rothwell, CASSIEL        contemporary dance projects
         http://www.cassiel.com        music synthesis and control

             years, passing by, VCO, VCF, and again, and again

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

Date:    Fri, 3 Oct 1997 00:53:32 -1000
From:    Darin Au 
Subject: eMagic

I know this is not the appropriate list to post this question but I don't
know where else to turn.  List Administrator, please delete this question
if it is annoyingly inappropriate.

I'm wondering if any MAX users have used the eMagic products, specifically
Logic Audio and/or SoundDiver.  I've talked to one person about these
programs and he stands by them, but everyone else seems to use Performer
and Vision.  I also checked out their website and it looks pretty slick.
Any comments on these products and any reasons why more people don't use
them?  I trust the judgement of the people on this list due to their
higher level of reason.

--darin

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

Date:    Fri, 3 Oct 1997 18:07:07 +0200
From:    Jeffrey Burns 
Subject: OS 8

After having some problems with OS 8, I decided to test its speed, with the
following results on mathematical functions using integers (larger % means
slower):

PPC 7100 with 601 Processor:
Max FAT OS 8 - 100%
Max 68k OS 8 - 700%
Max FAT OS 7.6.1 without Speed Doubler - 100%
Max 68k OS 7.6.1 without Speed Doubler - 700%
Max FAT OS 7.6.1 with Speed Doubler - 100%
Max 68k OS 7.6.1 with Speed Doubler - 300%
Max FAT OS 7.5.5 without Speed Doubler - 100%
Max 68k OS 7.5.5 without Speed Doubler - 700%
Max FAT OS 7.5.5 with Speed Doubler - 125%
Max 68k OS 7.5.5 with Speed Doubler - 200%

PPC 7600 with 604 Processor:
Max FAT OS 8 - 100%
Max 68k OS 8 - 250%
Max FAT OS 7.6.1 without Speed Doubler - 100%
Max 68k OS 7.6.1 without Speed Doubler - 250%
Max FAT OS 7.6.1 with Speed Doubler - 100%
Max 68k OS 7.6.1 with Speed Doubler - 225%
Max FAT OS 7.5.5 without Speed Doubler - 100%
Max 68k OS 7.5.5 without Speed Doubler - 250%
Max FAT OS 7.5.5 with Speed Doubler - 100%
Max 68k OS 7.5.5 with Speed Doubler - 200%

(These are average values gained with a series of 5 tests which I will send
to anyone who wants them.)

>From the above, it would seem that there is not much reason for anyone with
a PowerMac not to favor OS 8. However, the performance of both PowerMacs
was noticeably worse with OS 8 when drawing graphics in Max. OS 7.5.5 was
the fastest on graphics, holding a slight edge on OS 7.6.1. It seems that
OS 8 is in need of improvement in this regard. If anyone has some exact
methods for testing graphic speed, it would be a good idea to do some
measurements and present them to the Apple OS developers.

Jeff Burns

http://www.inx.de/~jeff

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

Date:    Fri, 3 Oct 1997 13:38:07 -0400
From:    Stephen Kay 
Subject: ____HELP: MouseState, brackets, BNDL/FREF/ICN# questions___

>2. Brackets

>   How can I have sub-patch windows in Max (or a standalone)
>   not display brackets in the window title?  (ie. for a
>   3rd level sub-patch:  "[[[Level3]]]" is a kindof ugly
>   window title)

Can't do it in Max 3.0.  In Max 3.5, the brackets are gone in a =

stand-alone compiled app (but not in Max).

>3. For creating my own icons for a stand-alone app via
>   my own BNDL, FREF and ICN# resources - anyone have
>   a 'recipe' for doing this?  (Don't think I have
>   the correct/latest Inside Mac book...)

Attached is the "recipe" I've posted several times to the Max List. =

Sorry for the bandwidth to those of you who've seen it before.

>   By following this recipe, will file output generated
>   by colls in my app automatically have my app icon?
>  (and links to the standalone)

No.  I have a modified coll object which allows you to specify file and =

creator types, but it's not bulletproof and not available to the general
public.  Maybe I'll tidy it up at some point.  In fact, I know I've said
this so many times, that I really _should_ finish it off and post it. =

Maybe in the next few days...

I do believe there are kluges you can do, such as save your coll files =

as "TEXT", then use ResEdit to change the creator type to the type of =

your APP, then have an icon group for type 'TEXT', which should make =

those files have your custom icons.

Even with the changed creator types and file types, it is seemingly =

impossible to get the standard "links" to an app you get with a normal =

Macintosh App.  In other words, double-clicking one of these coll files =

may open your app, but it certainly will not load the data in the coll =

file into it automatically (unless you somehow have the app set up to =

load that particular file in advance).

"Omenu" by Roland Hemming which is similar to coll allows changing the =

creator type, and has some other interesting features you may want to =

check out.

Stephen Kay

-------- The MegaMAX Application Developer's Collection --------
 Full color 3D UI Objects for creating professional looking apps,
     Macintosh Interface objects, and other Max helpers.
------------check out the demo on the MAX 3.5 CD----------------

------------- clip n' save -----------------------------------------
**** HOW TO MAKE YOUR OWN BUNDLE RESOURCES and other MAX APP tips (Note:
this how to is for Max 3.0.  Certain things have changed in Max 3.5 - it
is now better at removing unneeded resources when compiling with the App
Installer)

You need to create your own Res-Edit resource file, for example =

"MyApp.rsrc".  In it you will need the following 8 related Bundle =

resources, all of them with the ID 128:
BNDL =

FREF
icl4
icl8
ICN#
ics#
ics4
ics8

Here's an easy way to do this from scratch:
(This assumes Res-Edit 2.1.1.)
Open Res-Edit, and create a new document i.e. "MyApp.rsrc".

First, create a new resource of type "BNDL".  When it opens, you will =

enter a four letter creator ID, such as "myap".  You can get an official
one from Apple through their developer services.  When you close this =

resource, it will automatically create a corresponding Owner resource, =

with the name of your creator id.  So you will now have two resources, =

"BNDL" and "myap".

Reopen the BNDL resource.  Select "create New File Type" from the menu. =

This will create a new family of icons with the name "????".  Set this =

to "APPL" for your application icons (this will automatically create an =

"FREF" resource for you when you close).  In the meantime, you will have
6 blank icons next to the name (3 large, 3 small).  Double clicking on =

these will present you with a box to choose an icon.  If you select =

"new", you will automatically enter the Icon Family Editor, where you =

will see 8 different blank icons (6 icons and 2 masks).  If you draw =

something in each of these, then close, when you are finished Res-Edit =

will automatically have created the other 6 resources listed above.

Repeat the above step inside the BNDL resource starting with "create New
File Type" for each type of icon you need, if you have documents, =

external files, etc.  Take a look at MaxPlay's BNDL file for an example =

of what I'm talking about.

Next, spend 1 - 2 days carefully crafting the world's finest icon's.

Make your Collective of your Application.  BTW, if you screw up and it =

gives you errors and you have to do it again, throw away the collective.
 DO NOT attempt to write over it - this can cause crashes.  Also, do not
attempt to include your resource file - it doesn't work and will only =

cause problems.

After  successfully completing the Collective, it's time to make the =

Application.  Open the Application Installer, and when you get to the =

Dialog box about setting certain values, insert you 4 letter creator =

name "myap" in the correct box, set the memory partitions as you like =

(try bigger than usualy first; you can always make it smaller later).

After succesfully making the App, DO NOT TRY TO RUN IT YET! First you =

must install your resources.  If you run it first, it may crash, or at =

least it means you will not see your custom icons when you do install =

them because the Finder already recognized the old ones first, and =

you'll have to rebuild your desktop.

Open "MyApp" with Res-Edit.

Select and delete the following 7 of 8 Bundle-related icon resources. =

(Assuming you checked "Use own bundle resources", the BNDL resource =

should already be gone):
FREF
icl4
icl8
ICN#
ics#
ics4
ics8

Delete the "max2" owner resource.

Delete any other resources you may have prepared altered versions of.  =

For example, I keep a Res-Edit file for my Application which contains my
own versions of all the above, and then the MENU resource, in which I =

have purposely disabled all the items on the Edit Menu so in my app they
won't work.  I also have my own version of the STRS resource, which I =

copied from a compiled version of my app, and then searched through =

until I found the "(C)1995 Opcode-IRCAM" which appears in the Status =

Window, and then replaced it with my own copyright (same number of =

characters is probably wise).  (Actually, another person turned me on to
that idea, but he may not want credit for it, so I'll leave him =

nameless).  I have a VERS resource which I have edited to display my =

app's name, and the copyright info that I want for the App.

I've got my own PICT resource, in which I deleted many unnecessary =

timeline pictures and things that get included from MAX which will never
be used in my app.  Incidentally, I can't remember how I figured this =

out, but if you delete PICT 346 and 347, and put in a PICT with ID 344, =

you can have it displayed as a startup screen when the app first opens =

(instead of the MaxPlay picture). (Note: worked in 3.0; may not work in =

3.5)

Note that deleting resources can sometimes cause a bunch of error =

messages when starting up your app, so some experimentation is required =

to see what you can and can't get away with.

Don't forget that if you do prepare such a file as above, if you make =

major mods to your patcher and then recompile it into an application, =

you may need to remodify the newer versions of the MENU, STRS, etc. =

instead of just replacing them with your older special versions.

Once you have deleted all the applicable resources, open your =

"MyApp.rsrc" file which has your previously created icons and other =

resources, and copy all the resources and paste them into your app's =

resource file. Save it, and then try opening it.  If the gods are with =

you, it should work.

Other things to watch out for:  If your patcher renames any subpatcher =

windows, you must rename them to their original names before making a =

collective or MAX won't be able to find them.

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

End of MAX Digest - 2 Oct 1997 to 3 Oct 1997
********************************************