ftp.nice.ch/pub/next/unix/audio/Cmix.N.s.tar.gz#/cmix/rooms/move/matrix.c

This is matrix.c in view mode; [Download] [Up]

#include <stdio.h> 

/* This routine loads the 12 x 12 values from the cmix score file into the
   global array, Matrix, which is used by the RVB routine in move. If it
   is not called, 'space' will fill array with default values.            */

double Matrix[12][12];
int matrix_flag;
matrix (p, n_args)
    float *p;
    int n_args;
{
    float amp, val;
    int i, j;
    
    amp = p[0];
    /* loop for 12 by 12 values on screen */

    for (i = 0; i < 12; ++i)
    {
	for (j = 0; j < 12; ++j)
	{
	    scanf (" %f ", &val);
	    Matrix[i][j] = val * amp;
        }
    }
    matrix_flag = 1;
    fprintf (stderr,"Matrix loaded.\n\n");
}

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