Minc Tutorial

Paul Lansky
'Minc' (M Is Not C) is the data specification language for Cmix. It was written as a student project by Lars Graf in 1985.

Communication between Minc and Cmix is usually made in the form of function calls, such as

which results in some Cmix routine, perhaps called flange_a_note (but not necessarily) being called and passed the arguments, 5,1,99.2,8,3,4. In otherwords, you would have some data file, called flangedata, for example, containing one or more lines such as the above, which you would then read into a Cmix application, called flange, for example, designed to recognize it, by saying

Or you could simply say

which would get you the Cmix banner

after which you could type in the data interactively. This is not the preferred procedure however.

Minc is a very powerful language since it allows you to specify data with program-like syntax. It is almost like C, but not quite.

You could say the following, for example:

These values would be computed before being passed to the function flange_a_note. The values are computed from left to right, so that the variable 'dur' in the above example is available for the 5th argument since it has been defined in the second argument. Everything in Minc is defined as type float. If you do not declare a variable you will get a warning statement telling you that it has been auto-declared. This protects you against typos and misspellings.

Some cmix functions return values which can then be used as arguments. For example:



see also: Minc manual page
Advanced MINC Features from What is Cmix

CMIX Home Page
Music Dept. Main Menu