From:
                                                            9/10/97 11:00 PM
Subject: MAX Digest - 9 Sep 1997 to 10 Sep
1997To: Recipients of MAX digests 

There are 8 messages totalling 218 lines in this issue.

Topics of the day:

  1. SMF C Code examples (2)
  2. aiffplay and stand. int. driver (2)
  3. MAX Digest - 7 Sep 1997 to 8 Sep 1997
  4. Triggering Max from audio (2)
  5. multiSliderFAT?

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

Date:    Tue, 9 Sep 1997 21:13:02 -0700
From:    Tim Thompson 
Subject: Re: SMF C Code examples

> Aside from a few books that go into the topic, I don't know where there's
> code specifically for reading MIDI files. I don't have the book here at my
> office to check it, but I think that

Reading/writing is easily available, see

        http://www.nosuch.com/midifile/midifile.zip

which contains C source for reading and writing MIDI files.
Playing is a different story - it's harder to make generic, so there's no
good source code for it floating around.     ...Tim...tjt@nosuch.com...

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

Date:    Wed, 10 Sep 1997 02:57:02 -0400
From:    Teri Rueb 
Subject: aiffplay and stand. int. driver

Hi, my name is Teri.  I'm new to the list and have a couple of questions I
hope someone can answer.

I am using Max 3.5 on two systems - both powermacs, one laptop, one
desktop - laptop with os8, desktop with 7.5.x.

I have a copy of aiffPlay (unsupported third party object) but when I open
my patcher (which used to work on my system at home in the states) I get
an error message saying "AiffPlay is not available for PowerPC".  I have
used this patcher with a different copy of AiffPlay on a PowerMac
successfully in the past, though I was using max 3.0.  Any ideas?

My other problem is that I can't seem to get the FreeMidi Standard
Interface Driver to work on this new system.  Does 3.5 have a new
procedure for using the "serial" object with external non-MIDI devices?

Hoping to hear from someone,

Teri

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

Date:    Wed, 10 Sep 1997 00:11:03 -0700
From:    Keay 
Subject: Re: MAX Digest - 7 Sep 1997 to 8 Sep 1997

Chris Musgrave,
   In reponce to your query.

>I am getting ready to embark on an installation project in which I hope
>to use max to:
>Turn some motors on when people enter the space (via pressure switch or
>light sensor)... is there any good information published
>on the web regarding this process. I would think that it is pretty
>standard stuff for Max. Specifically
>I need to know what is on my shopping list so that I can put together a
>praposal. Will I need to buy a Pavo
>MIDI dimmer switch? Where is a good source for switches?
>
   You can accomplish what you are trying using a serial board from
MacScitech. I think there web site is www.macscitech.com   if not
e-mail for the correct address. the board is $25 unassembled or $89
assembled.  Stepper motors are the easiest to control via a step
motocontroller which can be build for about six bucks in parts and the
sensor can be plugged directly into the board (+ or - 5volts)  This is
all accomplished using the serial object.  I've made a couple of
security sensor fired sculptures that have worked well and have never
crashed (Thank goodness).  If you want more info  feel free if you
think I can help.
Keay@hooked.net

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

Date:    Wed, 10 Sep 1997 13:43:44 +0100
From:    Le Quan Ninh 
Subject: Re: Triggering Max from audio

Peter Swinnen  wrote :

>for my next project, I need to be able to trigger Max (3.0) from within
>a computergame that runs on a Pentium. This game extensively uses VOC
>files (i.e. 8-bit audio on 8kHz), that can be assigned to whatever
>action within the game. Instead of merely playing these audio bits, I'd
>like to use Max to create my own music. Which way should I go ?
>
>- using some Max-extension that's able to monitor my Mac's sound input
>and that gives e.g. the pitch of the input sound, which then can be used
>as a protocol for communication ? That way, I could record a different
>pitch into each VOC file, connect the Pentium's sound card to my Mac's
>sound input, and analyse these pitches. Perhaps I could use the tones of
>the telephone keys (0 ... 9 A ... D) ? But what about CPU-time for my
>Mac ?

You can try siLevel that you can find at the IRCAM FTP site (68K/sound/).
This object takes the velocity from the Mac's sound input. For analyzing
this sound we must wait for Max Audio (which only works on NeXT station).
To give the pitch from the sound you must use a pitch-to-MIDI converter
(e.g. Roland CP-40 or IVL Pitchrider) that is very hard to find.

Hope it helps

______________________________________________________
  Le Quan Ninh 11, Chemin de Catala F-31100 Toulouse
                     ninh@hol.fr
http://ourworld.compuserve.com/homepages/Le_Quan_Ninh
______________________________________________________

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

Date:    Wed, 10 Sep 1997 10:35:05 -0500
From:    Paul Hertz 
Subject: Re: SMF C Code examples

>Stephen Kay  asked:
>>Subject: SMF C Code examples
>
>>A little off topic, but does anyone know where to get some example C Code=
>>
>>which shows how to read and PLAY standard midi files?

Adding to what I already wrote:

De Furia, Steve. The MIDI programmer's handbook. 1st ed.
   Redwood City, Calif. : M&T Books, 1989.

does indeed have some sample code, but not enough.

Jim Conger's _MIDI Sequencing in C_ (for PCs), M&T Books 1989, promises
source code for file i/o, but I haven't seen the book.

-- Paul

paul-hertz@nwu.edu (Paul Hertz)                | (*,*) (+,+) (#,#) (=,=) |
http://www.acns.nwu.edu/people/paul-hertz      | (#,=) (=,#) (*,+) (+,*) |
The Collaboratory Project                      | (=,+) (#,*) (+,=) (*,#) |
Northwestern University                        | (+,#) (*,=) (=,*) (#,+) |

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

Date:    Wed, 10 Sep 1997 10:50:39 -0500
From:    Paul Hertz 
Subject: Re: Triggering Max from audio

Peter Swinnen  wrote:

>for my next project, I need to be able to trigger Max (3.0) from within
>a computergame that runs on a Pentium. This game extensively uses VOC
>files (i.e. 8-bit audio on 8kHz), that can be assigned to whatever
>action within the game. /.../
>
>- using some Max-extension that's able to monitor my Mac's sound input
>and that gives e.g. the pitch of the input sound, which then can be used
>as a protocol for communication ? That way, I could record a different
>pitch into each VOC file, connect the Pentium's sound card to my Mac's
>sound input, and analyse these pitches. Perhaps I could use the tones of
>the telephone keys (0 ... 9 A ... D) ? But what about CPU-time for my
>Mac ?

There are outboard Pitch-to-MIDI interfaces that would greatly reduce
computational time, but bear in mind that pitch extraction is an inexact
science--and the hardware ain't cheap. If there is MAX patch, it probably
takes plenty of cpu cycles.

If you have access to the sound files, why not just set up wave tables to
create distinct DC voltages? I.e., the wave table contains a single value
from 0 to 255. Then you can send a DC voltage to a voltage-to-MIDI
interface, which is more predictable than pitch-to-MIDI. Check PAIA
Electronics kits, for a relatively inexpensive build-your-own interface.
I've used this strategy with a Mac, sending control voltages out the sound
port to control both an analog synth and a MIDI synth. Some of these
interfaces will send out MIDI "Control" bytes, with up to 4096 distinct
values, instead of the usual 127.

-- Paul

paul-hertz@nwu.edu (Paul Hertz)                | (*,*) (+,+) (#,#) (=,=) |
http://www.acns.nwu.edu/people/paul-hertz      | (#,=) (=,#) (*,+) (+,*) |
The Collaboratory Project                      | (=,+) (#,*) (+,=) (*,#) |
Northwestern University                        | (+,#) (*,=) (=,*) (#,+) |

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

Date:    Wed, 10 Sep 1997 11:12:00 -0400
From:    Eric Singer 
Subject: Re: aiffplay and stand. int. driver

On Wed, 10 Sep 1997, Teri Rueb wrote:

> I have a copy of aiffPlay (unsupported third party object) but when I open
> my patcher (which used to work on my system at home in the states) I get
> an error message saying "AiffPlay is not available for PowerPC".  I have
> used this patcher with a different copy of AiffPlay on a PowerMac
> successfully in the past, though I was using max 3.0.  Any ideas?

First of all, download "AiffPlayer" from my web site (cat.nyu.edu/eric).
It's a more recent, more stable version.  Second, it is not PPC-native
yet.  Max 3.0 runs in emulation mode (i.e. 68k) on a PPC.  As far as I
know, you can use all 68k objects in the 68k version of Max 3.5, though.

Eric

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

Date:    Wed, 10 Sep 1997 14:05:44 -0700
From:    Alex Stahl 
Subject: multiSliderFAT?

There isn't a PPC version of multiSlider, is there?

thanks,

Alex Stahl

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

End of MAX Digest - 9 Sep 1997 to 10 Sep 1997
*********************************************