Instruction file imported from squarewave-studio/op-patchstudio (
.cursor/rules/midi.mdc). Copyright stays with the author.
MIDI Note Number Mapping (C3 = 60)
This project uses the 'C3 = 60' convention (Yamaha/OP-1/OP-Z style), not the General MIDI standard.
- C3 = 60
- C4 = 72
- C5 = 84
- Octave numbers are offset by +1 compared to General MIDI (where C4 = 60).
- Use this table for all conversions and test expectations in this codebase.
| Note | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| C | 0 | 12 | 24 | 36 | 48 | 60 | 72 | 84 | 96 | 108 | 120 |
| C# | 1 | 13 | 25 | 37 | 49 | 61 | 73 | 85 | 97 | 109 | 121 |
| D | 2 | 14 | 26 | 38 | 50 | 62 | 74 | 86 | 98 | 110 | 122 |
| D# | 3 | 15 | 27 | 39 | 51 | 63 | 75 | 87 | 99 | 111 | 123 |
| E | 4 | 16 | 28 | 40 | 52 | 64 | 76 | 88 | 100 | 112 | 124 |
| F | 5 | 17 | 29 | 41 | 53 | 65 | 77 | 89 | 101 | 113 | 125 |
| F# | 6 | 18 | 30 | 42 | 54 | 66 | 78 | 90 | 102 | 114 | 126 |
| G | 7 | 19 | 31 | 43 | 55 | 67 | 79 | 91 | 103 | 115 | 127 |
| G# | 8 | 20 | 32 | 44 | 56 | 68 | 80 | 92 | 104 | 116 | |
| A | 9 | 21 | 33 | 45 | 57 | 69 | 81 | 93 | 105 | 117 | |
| A# | 10 | 22 | 34 | 46 | 58 | 70 | 82 | 94 | 106 | 118 | |
| B | 11 | 23 | 35 | 47 | 59 | 71 | 83 | 95 | 107 | 119 |
- C3 is MIDI note 60
- C4 is MIDI note 72
- C5 is MIDI note 84
- Octave numbers follow the Yamaha/OP-1/OP-Z convention
- Use this table for all conversions and test expectations