| 1 | /* |
| 2 | * |
| 3 | * File: midi.h |
| 4 | * |
| 5 | * Copyright (C) 1999 Steve Ratcliffe |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * |
| 17 | */ |
| 18 | /* |
| 19 | * Midi status byte values. |
| 20 | */ |
| 21 | #define MIDI_NOTE_OFFcxx . . $ `src/midi.h:21:9`! 0x80 |
| 22 | #define MIDI_NOTE_ONcxx . . $ `src/midi.h:22:9`! 0x90 |
| 23 | #define MIDI_KEY_AFTERTOUCHcxx . . $ `src/midi.h:23:9`! 0xa0 |
| 24 | #define MIDI_CONTROLERcxx . . $ `src/midi.h:24:9`! 0xb0 |
| 25 | #define MIDI_PATCHcxx . . $ `src/midi.h:25:9`! 0xc0 |
| 26 | #define MIDI_CHANNEL_AFTERTOUCHcxx . . $ `src/midi.h:26:9`! 0xd0 |
| 27 | #define MIDI_PITCH_WHEELcxx . . $ `src/midi.h:27:9`! 0xe0 |
| 28 | #define MIDI_SYSEXcxx . . $ `src/midi.h:28:9`! 0xf0 |
| 29 | #define MIDI_METAcxx . . $ `src/midi.h:29:9`! 0xff |
| 30 | |
| 31 | /* Meta event defines */ |
| 32 | #define MIDI_META_SEQUENCEcxx . . $ `src/midi.h:32:9`! 0 |
| 33 | /* The text type meta events */ |
| 34 | #define MIDI_META_TEXTcxx . . $ `src/midi.h:34:9`! 1 |
| 35 | #define MIDI_META_COPYRIGHTcxx . . $ `src/midi.h:35:9`! 2 |
| 36 | #define MIDI_META_TRACKNAMEcxx . . $ `src/midi.h:36:9`! 3 |
| 37 | #define MIDI_META_INSTRUMENTcxx . . $ `src/midi.h:37:9`! 4 |
| 38 | #define MIDI_META_LYRICcxx . . $ `src/midi.h:38:9`! 5 |
| 39 | #define MIDI_META_MARKERcxx . . $ `src/midi.h:39:9`! 6 |
| 40 | #define MIDI_META_CUEcxx . . $ `src/midi.h:40:9`! 7 |
| 41 | /* More meta events */ |
| 42 | #define MIDI_META_CHANNELcxx . . $ `src/midi.h:42:9`! 0x20 |
| 43 | #define MIDI_META_PORTcxx . . $ `src/midi.h:43:9`! 0x21 |
| 44 | #define MIDI_META_EOTcxx . . $ `src/midi.h:44:9`! 0x2f |
| 45 | #define MIDI_META_TEMPOcxx . . $ `src/midi.h:45:9`! 0x51 |
| 46 | #define MIDI_META_SMPTE_OFFSETcxx . . $ `src/midi.h:46:9`! 0x54 |
| 47 | #define MIDI_META_TIMEcxx . . $ `src/midi.h:47:9`! 0x58 |
| 48 | #define MIDI_META_KEYcxx . . $ `src/midi.h:48:9`! 0x59 |
| 49 | #define MIDI_META_PROPcxx . . $ `src/midi.h:49:9`! 0x7f |
| 50 | |
| 51 | /** The maximum of the midi defined text types */ |
| 52 | #define MIDI_MAX_TEXT_TYPEcxx . . $ `src/midi.h:52:9`! 7 |
| 53 | |
| 54 | #define MIDI_HEAD_MAGICcxx . . $ `src/midi.h:54:9`! 0x4d546864 |
| 55 | #define MIDI_TRACK_MAGICcxx . . $ `src/midi.h:55:9`! 0x4d54726b |
| 56 | |
| 57 | struct rootElementcxx . . $ rootElement# *midi_readcxx . . $ midi_read(9201eb812a2a11b2).(FILEcxx . . $ FILE# *fp); |
| 58 | struct rootElementcxx . . $ rootElement# *midi_read_filecxx . . $ midi_read_file(b4c60c77fa660fcd).(char *name); |