next up previous
Next: Über dieses Dokument Up: MC - ein Programm Previous: Berechnungen und Ausdrücke

Beispiel

Das folgende Beispiel enthält fast alle syntaktischen Bestandteile von MC

file /* the file as produced e.g. by ppp */
  example2.num 

format /* the format of the input file */
  voice sound pitch register entrydelay volume; 

track /* we give each voice a new track */
  voice;

channel /* we merge each 2 tracks to one channel */
  voice / 2;

ontime
  entrydelay * 120 - 30; /* take 120 ticks for a 32nd,
                            leave 30 ticks for offtime */
offtime
  30;           /* constant throughout */

note
  24 + pitch + 12 * register;   /* add register to our pitch */

velocity
  volume * 13 + 10;     /* ppp = 13, all others distributed lineary */

program
  3 * sound + volume / 40
end


next up previous
Next: Über dieses Dokument Up: MC - ein Programm Previous: Berechnungen und Ausdrücke

Example user SuSE Linux 6.1
Tue Oct 19 23:47:00 MEST 1999