Midi Programming

College Midi Programming Project

Oliver Knill
At ETH we of course learned Pascal. I also got an electronic piano and had an ATARI ST. It must have been 1985-1986, when I programmed in that. I wrote a program with a GEM There had been a nice Pascal programming available (I do not recall the flavor of Pascal). I wrote my Senior thesis with a writing program SIGNUM on the Atari too and wrote all the programs for the illustrations including a printer driver for a color needle printer I wrote from scratch in Pascal. I would have my Atari still also as a graduate student Photo. My office at ETH And this showing also the Atari. I would soon after get a NEXT computer and of course switch to LateX entirely. LaTeX on the atari was a pain. It used many, many floppies to install and filled up valuable space on the 20 Megabyte Harddrive, I got later (initially, my Atari only had floppies). Some of my math colleagues have used LateX already for their senior thesis in 1986. I at that time still liked the SIGNUM writing environment. But of course, I sill had also access to Bernina, a VAX 11/785 with Ultrix-32 V.1.1 hat had come to ETH in 1984. I used it already as an undergraduate for Goldbach studies .... And of course, all email access was done on this Unix machine. (I had access to this machine 1985 and it completely changed my paradigms for CS: simplicity, clarity, generality, the concept of pipes for combining tasks, the concept of tree as a data structure). There was only bitnet, not yet WWW (which started in 1989). One would actually just telnet into other computers like CERN to get news. I even would telnet into Laser printers to hack them. Until almost 2000, it was still possible to write to people worldwide using talk.


The program I wrote was using a midi connection to my e-piano. The program allowed to play with the computer. There were some simple things like that the program would listen to what I play and then play back a variant. This allowed for some nice effects. I do not have the programs any more but found some printout from the main program (there were other pascal programs linked to it as one can see but I do not have printouts for those. Today, one can quickly write Midi files with Mathematica for example
={1,1,3,3,5,5,1,1,1,1, 3,3,5,5,1,1,5,5,6,6, 8,8,8,8,5,5,6,6,8,8,8,8,
     8,10,8,6,5,5,1,1,8,10,8,6,5,5,1,1,3,3,-4,-4,1,1,1,1,3,3,-4,-4,1,1,1,1};
A=Map[SoundNote,f]; s=Sound[{"Choir",A},{0,16}];
Export["brother.midi",s,"MIDI"]
which had been used for this song. Here is the pascal printout of the Pascal program for the Atari, written around 1986 or 1987
put online in July 23, 2023