From:
                                                            6/16/97 11:00 PM
Subject: MAX Digest - 15 Jun 1997 to 16 Jun
1997To: Recipients of MAX digests 

There are 15 messages totalling 470 lines in this issue.

Topics of the day:

  1. About delta-timing codification
  2. truncation
  3. scrYpt object
  4. OMS, MIDI and life as we know it (2)
  5. Recorded Outputs
  6. table questions (3)
  7. recorded outputs
  8. incomplete MIDI messages
  9. Freemidi OMS emulator
 10. Delta-timing
 11. lib object in 3.5
 12. 

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

Date:    Mon, 16 Jun 1997 00:21:32 -0400
From:    Bovine Cosmos Goddess 
Subject: Re: About delta-timing codification

Nicola-

        I just dealt with this myself.  I can't remember the exact web
address, but if you search for the "MIDI Farm" page on Netscape, within
the web site there is an excellent, easily-understood discussion of MIDI
files, covering the topic of delta-times and variable-length quantities in
detail, as well as supplying the C routines you requested.  I hope this
helps.
 -- E t h a n   R o w e

        "And remember, sound was used for centuries as a method
         of torture."  -Negativland

        "Everyone wears a uniform."  -Frank Zappa

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

Date:    Sun, 15 Jun 1997 15:56:34 -0700
From:    David Zicarelli 
Subject: Re: truncation

Here's another approach to increasing the resoluton in a metro
using the setclock object. In this case, the "resolution" is
1000 times "better" than you can get with a normal metro. Watch
out...this is a definite command-period kind of patch if you
enter a low value for the note metro's interval. The
whole discussion has convinced me that there should be a
floating-point metro object, so maybe I'll make one. Milliseconds
may be the resolution, but they shouldn't be the grid.

David Z.

max v2;
#N vpatcher 50 40 450 340;
#P number 272 80 76 9 0 0 0 3;
#P message 6 76 14 196617 0;
#P message 211 96 48 196617 clock foo;
#P newex 182 191 41 196617 noteout;
#P message 182 142 20 196617 60;
#P newex 182 163 85 196617 makenote 80 100;
#P toggle 182 103 15 0;
#P newex 182 122 68 196617 metro 90000;
#P newex 34 175 85 196617 setclock foo pass;
#P number 35 144 69 9 0 0 0 3;
#P button 20 97 15 0;
#P message 52 97 32 196617 5000;
#P newex 36 119 40 196617 accum;
#P toggle 35 44 15 0;
#P newex 36 75 44 196617 metro 5;
#P connect 0 0 4 0;
#P connect 0 0 3 0;
#P connect 1 0 13 0;
#P connect 1 0 0 0;
#P connect 2 0 5 0;
#P connect 3 0 2 1;
#P connect 4 0 2 0;
#P connect 5 0 6 0;
#P connect 7 0 10 0;
#P connect 8 0 7 0;
#P connect 9 0 11 0;
#P connect 9 1 11 1;
#P connect 10 0 9 0;
#P connect 12 0 7 0;
#P connect 13 0 2 0;
#P connect 14 0 7 1;
#P pop;

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

Date:    Mon, 16 Jun 1997 08:30:57 +0000
From:    lionel hubert / Coralie Le Van Van 
Subject: scrYpt object

Hi !
I'm a newcomer in this list.
I got problems with the scrypt object by James Mc Cartney.
is there someone who know this object, in the list?
                                                        Thank, and
excuse my Bad English

--
Lionel Hubert et Coralie Le Van Van
kalikay@worldnet.fr
tel/fax : (33) 01 48 59 48 01
108 rue de Lagny
93100 Montreuil
FRANCE
http://home.worldnet.fr/~kalikay

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

Date:    Sun, 15 Jun 1997 23:45:17 -0800
From:    Richard Zvonar 
Subject: Re: OMS, MIDI and life as we know it

On Sun, 15 Jun 1997 10:07:53 +0100 Nick Rothwell  wrote:

>I reckon it was done with Apple's MIDI Manager back in 1988. Look what
>happened to that.

I reckon you can blame the Beatles for that.  I hear that Apple (Computer)
was investigating all sorts of goodies, including digital audio cards, when
Apple (Corps) hit them upside the head with a lawsuit.

______________________________________________________________________________
Richard Zvonar, PhD                              zvonar@LCSaudio.com
(818) 760-8055 voice/fax                         71501.3342@compuserve.com

                          http://www.well.com/~zvonar

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

Date:    Mon, 16 Jun 1997 09:00:53 +0200
From:    "Dr. K@rlheinz Essl" 
Subject: Re: Recorded Outputs

Bob Gluck  wrote:

> I must say, though, that I'm not crazy about the sound quality.
> Don't know whether this is a function of the speed of my processor (50
MHz),
> or the quality of the DAC's or of the audio jacks.

As far as I know this is due to the cheap DA converters of the Mac with
only 70 dB S/N ratio. I'd love to see a Mac-(compatible) machine with
better converters - this would be a good reason for me to buy a clone
instead of a "real" Macintosh.

Greetings,

Dr. K@rlheinz Essl
SAMT - Studio for Advanced Music & Media Technology
Bruckner-Konservatorium Linz / Austria
www:   http://www.ping.at/users/essl/index.html

________________________________________________________________________
     Visit the MindShipMind - an interactive multimedial Web Oracle
          http://www.ping.at/users/essl/works/mindshipmind.html
________________________________________________________________________

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

Date:    Mon, 16 Jun 1997 06:02:07 -0400
From:    Ben Thigpen <101762.3705@COMPUSERVE.COM>
Subject: table questions

Hello,

I am working on a program that uses tables as an important part of the us=
er =

interface.  Does anyone know if it is possible --

     -- to hide the toolbar (so the user can't change the scale, etc.)?

     -- to automate the opening of the table (like a pcontrol open)?

If not, I guess I'll see about using multisliders as inputs for the table=
s.

Thanks in advance for any suggestions.

Ben Thigpen
101762.3705@compuserve.com=

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

Date:    Mon, 16 Jun 1997 21:25:42 +1000
From:    Sensor E Overlobe 
Subject: Re: recorded outputs

>I must say, though, that I'm not crazy about the sound quality.
Don't know whether this is a function of the speed of my processor (50 MHz),
or the quality of the DAC's or of the audio jacks.

it's the DAC's.
their signal to noise ratio is around (-?)85dB which is not really up to
studio standard.
having said this.. I regularly use them, and try to 'exploit' this noise.

Jeremy Yuille

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

Date:    Mon, 16 Jun 1997 14:04:41 +0100
From:    dudas 
Subject: incomplete MIDI messages

I just got a call from a friend in Holland who is experiencing strange
behaviour with Max/OMS and MIDI. He's using Max 3.5 and OMS 2.3.1 with a
8200/120 and Mac OS 7.5.3rev2. (I told him to get the Max 3.5.4 update
without hesitation and update the system to 7.6.1 if he's feeling brave.)
I would like to know if anyone else has experienced the following similar
strange behaviour from Max/OMS:

Whenever Max (or OMS) receives an incomplete MIDI message (like if you
violently unplug the MIDI cable while notes/controller messages coming in,
Max says "adios muchachos" and promptly crashes the Mac.  I was testing
some similar stuff out with 3.5.1, I think, where we accidentally left the
modem connected to a powerbook, and OMS or Max, thinking it was supposed to
be a MIDI interface, just crashed the whole computer as soon as you sent a
noutout!  As soon as we put a little MIDI interface in place of the modem,
everything worked smoothly.

OK, my friend is not going to go around unplugging the MIDI cables while
his installation is running, but there is a slightly more serious side:

When he uses the cd object, the Mac can sometimes freeze for a millisecond
or two while the CD spins up. Apparently, this causes incoming MIDI bytes
to be ignored and crash-ola!!  He was wondering if the interrupts fron the
serial port are handled correctly... maybe OMS just ignores incoming MIDI
data while CDs are spinning up or when diskettes are inserted... if
thereafter Max has an aversion to incomplete MIDI messages and decides
thereafter to ruin everybody's day, it could spell doom for many sound
installations.

On a more cheerful note, I just thought I'd warn anybody trying to play two
identical CDs using two CD ROM drives on the same Mac.  The Mac doesn't
like it very much.

I would appreciate any feedback about strange MIDI behaviour with Max 3.5
or later regarding this problem of incomplete MIDI messages.

-Richard

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

Date:    Mon, 16 Jun 1997 12:18:46 -0400
From:    Stephen Kay 
Subject: table questions

>I am working on a program that uses tables as an important part of the
user =

>interface.  Does anyone know if it is possible --

>     -- to hide the toolbar (so the user can't change the scale, etc.)?

>     -- to automate the opening of the table (like a pcontrol open)?

>If not, I guess I'll see about using multisliders as inputs for the
tables.

>Thanks in advance for any suggestions.

>Ben Thigpen

You can send the table object the "open" message to open it.

AFAIK, you cannot hide the toolbar, or get rid of the scroll bars, etc.  =
I
have, myself, used the multislider as an input for the table in cases whe=
re
I wanted to just allow the user to modify the table , but wanted it to be=

better looking than having the whole table window available.  But using t=
he
multislider has it's own set of problems.

For just displaying pre-defined tables without allowing the user to edit
them (in different colors and dimensions), you might want to check out my=

3D_Table_Display object, which is part of the MegaMAX Collection.  There =
is
a demo version on the 3.5 CD-ROM, or e-mail me for the latest demo versio=
n
or 3.0 compatible version.

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----------------

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

Date:    Mon, 16 Jun 1997 09:53:15 -0700
From:    Martin Gotfrit 
Subject: Re: table questions

I've used multislider to input table data quite successfully - this can be
done in several different ways: using list to table conversion (LtoTab from
those wonderful Lobjects by Peter Elsea) or by having multislider unpack to
number boxes which pack to a table.  I use a variation of the latter with
the addition of a preset to remember different table (ie # box) values.
When using table for probabilities I can store various states or behaviours
as well as alter them in "real time". With a little experimentation with a
drawing program one can even provide x & y coords to help enter data!

8<--------------------------------------------

>Hello,
>
>I am working on a program that uses tables as an important part of the us=
>er =
>
>interface.  Does anyone know if it is possible --
>
>     -- to hide the toolbar (so the user can't change the scale, etc.)?
>
>     -- to automate the opening of the table (like a pcontrol open)?
>
>If not, I guess I'll see about using multisliders as inputs for the table=
>s.
>
>Thanks in advance for any suggestions.
>
>Ben Thigpen
>101762.3705@compuserve.com=

____________________________________________________________
Martin Gotfrit, Ass't Prof., Music Area,
Simon Fraser University, School for the Contemporary Arts
Burnaby B.C. * V5A 1S6 * 604-291-3517/fax/5907

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

Date:    Mon, 16 Jun 1997 14:15:53 -0500
From:    jmw/cmu 
Subject: Re: Freemidi OMS emulator

>Now I have just discovered a snag - the new version (I think) of Galaxy
>isn't fooled by FreeMIDI's OMS emulator

That's 'cause the OMS emulator emulates OMS 1.0 *not* 2.0 - MOTU is
working on a 2.0 emulator but they haven't mentioned when it will be
available - which is why I use both OMS & Freemidi on my computer.

peace,

jmw

PS - I heard that David Z. (who is now a certifiable part of history due
to his mention in the book "Electric Sound" by Joel Chadabe) is working
on an OMS compatible version of "M" - the late 80's sequencer. Is that
true David?

Dig the polyrhythms at http://www.zork.com

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

Date:    Mon, 16 Jun 1997 20:41:31 +0200
From:    arjen van der Schoot 
Subject: Delta-timing

>I should be very grate if you could explain me the principle of the
>"variable-lenght quantity" used to write in the Standard MIDI files the
values
>of delta times and how to translate them in normal hexadecimal notation. I
>pray you also, to send me a routine to read and write the delta values in
>Standard 0 MIDI files,  eventually using Think C and considering my low
>skillnes in programming.

How's this:

The fileposition pointer should be directly before the first variable
length byte.
after decoding it the position pointer is left after the last byte of the
varlength.

long VarLengthToLong (FILE *inputFile)
{
        long theLong;
        int  c;

        if ((c = getc(inputFile)) & 0X80)
        {
                theLong = c & 0X7f;
                do
                {
                        theLong = (theLong << 7) + (c = getc(inputFile) &
0X7f);
                }while (c & 0X80);
        }
        else
                theLong = (long) c;

        return(theLong);
}

Arjen van der Schoot

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

Date:    Sun, 15 Jun 1997 19:52:57 +0100
From:    Nick Rothwell 
Subject: Re: OMS, MIDI and life as we know it

>I have had extensive conversations with the
>folks at Mark of the Unicorn about either adopting the more wide-spread OMS
>or at least making a compatible emulator.  Unfortunately, they seem either
>unable or unwilling to comply.

I hate to say "I told you so", but I saw this one coming a light-year off,
and even warned about this situation (on this very mailing list, possibly)
when FreeMIDI first came out. Nothing was going to make MOTU support OMS
emulation in FreeMIDI once any advantage to them of doing so was gone.

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

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

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

Date:    Mon, 16 Jun 1997 17:02:37 +0000
From:    Andy Hughes 
Subject: lib object in 3.5

Hi guys...

has anyone tried the "lib" object in 3.5+ ?   i have never managed to get it
to
work properly with previous versions and i am about to upgrade to 3.5.

also i would like to know how to write and use compression methods for
different
manufactures with the lib object.

also i missed several weeks digests as i was away and didn't know i had to
re-subscribe. is there an archive i can get these from?

thanks

andy hughes

***Band Web site www.orblivion.com ***

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

Date:    Mon, 16 Jun 1997 21:36:19 -0400
From:    Thomas Horn 
Subject: 

Hi MAX people:

I have unsuccessfully trying to interface MAX with Session software.  I
would like to run my MAX program, which controls my sound effect
processor,  and be able to record and playback  sounds in real time.  I
would like to sync. MIDI sequences with the recorded sounds while I am
playing.  I have Session and Sound Designer software and  I am
considering buying Studio Vision if it  is the only way to control in
real time the recording and playback  of sounds  via MAX.

Question:

Could you please guide me with the OMS setup?  I used IAC drive, finally
I was  able to change  only the faders and panning in Session but not
able to put Session on recording and playback mode.

Could you please help me with this set up?

Silvia Matheus

876 Spruce Street
Berkeley, CA 94707
USA

510 527 2040
e-mail: silvia@cnmat.berkeley.edu

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

End of MAX Digest - 15 Jun 1997 to 16 Jun 1997
**********************************************