ftp.nice.ch/peanuts/GeneralData/Documents/NeXT/MIDIDriver.tar.gz#/MIDIDriver/CFunctions/Intro.rtf

This is Intro.rtf in view mode; [Download] [Up]

paperh22175 margl-907 margr0 margt0 margb0 {fonttblf0fswiss Helvetica;f1froman Times;f2fmodern Courier;f3ftech Symbol;f4froman Palantino;}fi0 ri0 ql sb0 f1 fs24 Release 2.0  Copyright f3 'e3f1 1991 by NeXT Computer, Inc.  All Rights Reserved.

b fs36 f1 ql ri1007 li100 fi0 MIDI Driver C Functions
fs16 
fs36 pard s3 li2116 fi0 ri1007 ql tx2116 tx2620 tx3124 tx3628 b0 fs28 fs16 fs28 The MIDI library C functions are grouped below in four sections:
fs16 
fs28 pard s8 li2620 fi-503 ri1007 ql tx2620 tx3124 tx3628 tx4132 'b7	Setup and Generic Operations
'b7	Receiving and Transmitting MIDI Data
'b7	Handling Replies
'b7	Timer Operations
pard s3 li2116 fi0 ri1007 ql tx2116 tx2620 tx3124 tx3628 fs16 
fs28 Within each section, the functions are listed alphabetically.
fs16 
fs28 fs16 fs28 The application programming interface for these functions contains several data types, constants, and structures that are defined in various system header files:
fs16 
fs28 pard s16 li2620 fi0 ri1007 ql f2 fs24 tx9424 typedef int port_type_t;b f1 fs28 	<kern/std_types.h>
f2 b0 fs24 tx9424 typedef int kern_return_t;b f1 fs28 	<machine/kern_return.h>
f2 b0 fs24 tx9424 typedef unsigned int boolean_t;b f1 fs28 	<next/boolean.h>
f2 b0 fs24 tx9424 #define TRUE ((boolean_t) 1)b f1 fs28 	<sys/boolean.h>
f2 b0 fs24 tx9424 #define FALSE ((boolean_t) 0)	b f1 fs28 <sys/boolean.h>
f2 b0 fs24 tx9424 typedef int port_name_t;	b f1 fs28 <sys/port.h>
f2 b0 fs24 tx9424 typedef port_name_t port_t;	b f1 fs28 <sys/port.h>
f2 b0 fs24 tx9424 typedef struct {...} msg_header_t;	b f1 fs28 <sys/message.h>
f2 b0 fs24 tx9424 struct timeval {	b f1 fs28 <sys/time.h>
pard s16 li2620 fi0 ri1007 ql f2 b0 fs24     long tv_sec; /* seconds */
    long tv_usec; /* and microseconds */
pard s16 li2620 fi0 ri1007 ql tx9424 };
pard s3 li2116 fi0 ri1007 ql tx2116 tx2620 tx3124 tx3628 f1 fs28 fs16 
fs28 The fileb  <midi/midi_types.h>b0  contains additional data type definitions, including:
fs16 
fs28 pard s16 li2620 fi0 ri1007 ql f2 fs24 typedef port_t midi_dev_t;
typedef port_t midi_rx_t;
typedef port_t midi_time_t;
typedef struct timeval timeval_t;
pard s3 li2116 fi0 ri1007 ql tx2116 tx2620 tx3124 tx3628 f1 fs28 fs16 
fs28 b <midi/midi_types.h>b0  defines many constants, as well as the b midi_raw_tb0 , b midi_cooked_tb0 , and b midi_packed_tb0  structures.  It also gives the definitions of the b midi_reply_tb0  and b midi_timer_reply_tb0  structures, which are repeated below for convenience in the section 'aaHandling Replies.'ba
fs16 
fs28 pard s24 li1108 fi-503 ri1007 ql b fs36 fs16 



fs36 }

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.