home *** CD-ROM | disk | FTP | other *** search
- /*
-
-
- Transposition of all notes from a set of midi channel
- on any .mid file or in live during your play
-
- */
-
-
- init ()
- {
- var nbtrans; /* nb transposition */
- var midi[10];
- var trans[10];
-
- /*
- define below the list of midi channel to transpose and the transposition
- to do ( + or - nb_notes )
- */
-
- nbtrans = 3;
-
- midi[0]=2; /* channel 2 */
- trans [0] = -5;
-
- midi[1]=4; /* Channel 4 */
- trans [1] = +4;
-
- midi[2]=3; /* channel 3 */
- trans [2] = -4;
-
- savein (0);
- /* don't save the incoming notes */
- }
-
-
- main ()
- {
- var i;
- for (i=0;i<nbtrans;i++)
- {
- if ( chan == midi[i])
- note += trans[i];
- outmidi ();
- }
- descript ("Automatic Midi Transposition");
- descript ("Live or as a Post-Processor");
-
- }
-
-