From 3d5fe2a0bfe5a9b6f39d7937eddd0a47a76c23f2 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 25 Jun 2017 19:51:22 +0200 Subject: Cleanups --- floppyMusic/midi.h | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'floppyMusic/midi.h') diff --git a/floppyMusic/midi.h b/floppyMusic/midi.h index 733fe05..7ee76fc 100644 --- a/floppyMusic/midi.h +++ b/floppyMusic/midi.h @@ -5,6 +5,24 @@ * Author: Jonas */ + /* + Octave|| Note Numbers + # || + || C | C# | D | D# | E | F | F# | G | G# | A | A# | B + ----------------------------------------------------------------------------- + 0 || 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 + 1 || 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 + 2 || 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 + 3 || 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 + 4 || 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 + 5 || 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 + 6 || 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 + 7 || 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 + 8 || 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 + 9 || 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 + 10 || 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | + */ + #ifndef F_CPU #error F_CPU not defined for midi.h #endif @@ -14,9 +32,8 @@ #define _MIDI_LINK_SPEED 30000UL //Standard MIDI linkspeed is 30k baud - - #include +#include #include #include "floppy.h" @@ -32,14 +49,8 @@ void midi_setup(); void midi_update_note(uint16_t _note, uint8_t _status); /* -* _note : MIDI standard note # +* _note : MIDI-standard note # * _status : 0=OFF >0=ON */ -char midi_recieve(); -/* -* reads UART recieve buffer -*/ - - #endif /* MIDI_H_ */ \ No newline at end of file -- cgit v1.2.3