Subject: MAX Digest - 17 Aug 1998 to 18 Aug 1998
Date: Wed, 19 Aug 1998 00:00:01 -0400
From: Automatic digest processor 
Reply-To: MAX - Interactive Music/Multimedia Standard Environments
     
To: Recipients of MAX digests 

There are 4 messages totalling 155 lines in this issue.

Topics of the day:

  1. first-ever msp concert (2)
  2. the deal, 2.5.2
  3. Writing MSP externals that send messages to oulets

Email to MAX should now be sent to MAX@lists.mcgill.ca
LISTSERV commands should be sent to listserv@lists.mcgill.ca
Information is available on the WEB at http://www.mcgill.ca/cc/listserv

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

Date:    Tue, 18 Aug 1998 06:06:22 -0700
From:    Les Stuck 
Subject: first-ever msp concert

>>[a concert] I saw at CNMAT back in March
>>demonstrating some of MSP's capabilities.
...
>must have been Laetitia Sonami. The
>piece you're referring to may be the first-ever all-MSP piece

well, laetitia will have some competition for that honor. zack settel
and i thought we were doing the first one ever when we premiered in
yokohama on march 6, but then after the show i met professor
masayuki akamatsu of iamas, who had already done performances with msp.
damn!

anyone else want to join the contenders? we'd better get this straight
before the historians say that bill gates did it first.

les

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

Date:    Tue, 18 Aug 1998 11:07:43 -0400
From:    Chris Murtagh Hrdc-drhc 
Subject: Re: first-ever msp concert

From: "Les Stuck" , on 8/18/98 9:06 AM:
>anyone else want to join the contenders? we'd better get this straight
>before the historians say that bill gates did it first.

What do you mean? Of course Bill Gates did it first. He invented MSP, right
after he invented the mouse, the windoze GUI and the internet (no joke, I
actually saw microsoft www pages that claimed these!!).

Cheers,

Chris

---------------------------------
* Windows 95: n.   32 bit extensions and a graphical shell for a 16 bit
patch to an 8 bit operating system originally coded for a 4 bit
microprocessor, written by a 2 bit company, that can't stand 1 bit of
competition.

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

Date:    Tue, 18 Aug 1998 10:13:25 -0700
From:    Peter Elsea 
Subject: the deal, 2.5.2

About Codewarrior Lite and externals-

You can use Codewarrior lite to build 68k external objects. Older versions
that are distributed with many books will probably open the template
project (the version on the web  won't, but I'll get to that) and you can
modify the code in .c to your heart's content. You can also
change the target filename, creater types etc, so It's possible to make a
whole slew of externals by pasting new code into . You can't
make a PPC or FAT external, but at least you can get your feet wet without
risking a hefty investment.

CW lite version 3 won't open the template- In fact real CodeWorrior won't
either. The templates are several versions out of date and have to be run
through CW IDE 1.7 (That's version 10 or 11) before the IDE 2 project
convertor will work on them. As a public service, I've posted converted
versions of both templates at ftp://arts.ucsc.edu/pub/ems/Tmp_CWL

I won't claim C programming is easy ( it is for some, and musicians
generally pick it up pretty fast.), but building Max externals is fun and
rewarding.

>I know this is ancient software, but having recently upgraded sys 7.5.3 to
>7.6.1 and added a lot of memory, I tried to start Max 2.5.2 only to have
>"application 'unknown' unexpectedly quit, error type 1" happen before the
>app opened up.

I lost a 2.5 install this way. The copy protector arfed at you because you
increased your memory. Try pulling the memory and deinstalling MAX, then
putting the memory back and reinstalling.

Moral- uninstall all copy protected software before messing with your
system.

Peter Elsea
Electronic Music Studios
University of California, Santa Cruz
http://arts.ucsc.edu/EMS/Music/index.html
 elsea@cats.ucsc.edu

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

Date:    Wed, 19 Aug 1998 04:28:49 +0100
From:    Todor Todoroff 
Subject: Writing MSP externals that send messages to oulets

Hi David,
Thanks for your past answers... but I've got yet another question.
I'm porting an external I wrote on the ISPW which consist of analysing a
signal and outputing lists of spectral components weighted following
psychoacoustical rules as described in a paper by Terhard. At IRCAM this
analysis method is called "iana".
Everything works fine (I found a fft algorithm)... if I don't output the
lists of frequencies, levels and weights!
The problem seems to be the fact that it is the signal processing part that
generates the messages to be sent.
And neither the quite outdated (1996) "Writing external objects for Max",
neither "How to write MSP externals" seems to address this particular case.
I thought that, the DSP chain happening at interrupt time, I could use
"defer". But it was not enough.
I also added, within the method called by defer, a protection to stop
sending
values if there was an overflow (though it is a bad solution because all
values
are not garanteed to be sent out and some sets might not be coherent):
    if(!outlet_float(....)) return;

I also tried
    short prevlock = lockout_set(1);
    if(!outlet_float(....)) goto out;
    ...
    ...
out:
    lockout_set(prevLock);

But neither of these methods prevent Max from crashing after a while (from
immediately to several minutes) and forcing me to restart the computer.
I was also wondering whether I had to use "evnum_incr()"
I spent days restarting my computer and trying out all combinations with
"overdrive" and "scheduler in Audio Interrupt" checked or ucnchecked without

solving the problem.
I haven't tried changing the I/O and Signal vector sizes as the should be
able to choose them depending on other processings running at the same time.
Currently they are both 64 samples. About 15 to 50 lists of 1 int and 3
floats
have to be sent about every 100 vectors (depending on how many duty cycles
I spread my computations).

I'm working on a PM9600 350MHz, giving Max 3.5.9 15 megabytes of memory
space.
The CPU use is around 10%.
Could you give some guidelines on how to deal with that problem?
Todor

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

End of MAX Digest - 17 Aug 1998 to 18 Aug 1998
**********************************************