home *** CD-ROM | disk | FTP | other *** search
- /*
-
- An inverter,
- It will play simulaneously a B# for a C#
- a B for a D ...
-
-
- */
-
-
- main ()
- {
- var i;
-
- i=note;
- note /= 12; /* no integer is available in XPL,
- the only way to have one is
- to use the note,time or chan
- variable .. */
- note *=12;
-
- if (note>i) note-=12;
- i -=note;
-
- note +=12;
- note -= i;
-
- outmidi();
-
-
- descript ("An inverter");
- descript ("Plays B# for a C#");
- descript (" B for a D");
- descript (" etc....");
-
- }
-