Nucleo F401REでFM音源を実装するやつ 外部DACとオペアンプを利用 現在はMCP4922とNJM2737
Dependencies: AOTTrigon I2CEEPROM MCP4922 AQM0802A mbed
Fork of NuMidi401 by
NuFM401
Nucleo F401用の自作ソフトウェアMIDI音源
概要
だいたいそんなもんです。
特徴
- ブレッドボードの上で組める程度には簡単な回路構成
- 外部のDACにMCP4922を採用
- 念のためのボルテージフォロアとしてNJM2737Dを採用
- バンク用EEPROMに24FC1025を採用
- シリアル経由でMIDIデータを受信することで操作
補足
シリアル <=> MIDI のドライバにはHairless-MIDISerialをオススメします。 仮想MIDIケーブルはとりあえずMIDI Yokeで。
FMOscillator/MIDIUtil.cpp@13:e11380ceb460, 2015-01-17 (annotated)
- Committer:
- kb10uy
- Date:
- Sat Jan 17 03:57:58 2015 +0000
- Revision:
- 13:e11380ceb460
- Parent:
- MIDIUtil.cpp@10:0ffdefe75566
MIDI.cpp??Operator.cpp????FMOscillator???????????????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kb10uy | 7:439c57c20593 | 1 | |
kb10uy | 10:0ffdefe75566 | 2 | float notenumfreqs[]={ |
kb10uy | 10:0ffdefe75566 | 3 | 8.175799f, |
kb10uy | 10:0ffdefe75566 | 4 | 8.661957f, |
kb10uy | 10:0ffdefe75566 | 5 | 9.177024f, |
kb10uy | 10:0ffdefe75566 | 6 | 9.722718f, |
kb10uy | 10:0ffdefe75566 | 7 | 10.300861f, |
kb10uy | 10:0ffdefe75566 | 8 | 10.913382f, |
kb10uy | 10:0ffdefe75566 | 9 | 11.562326f, |
kb10uy | 10:0ffdefe75566 | 10 | 12.249857f, |
kb10uy | 10:0ffdefe75566 | 11 | 12.978272f, |
kb10uy | 10:0ffdefe75566 | 12 | 13.750000f, |
kb10uy | 10:0ffdefe75566 | 13 | 14.567618f, |
kb10uy | 10:0ffdefe75566 | 14 | 15.433853f, |
kb10uy | 10:0ffdefe75566 | 15 | 16.351598f, |
kb10uy | 10:0ffdefe75566 | 16 | 17.323914f, |
kb10uy | 10:0ffdefe75566 | 17 | 18.354048f, |
kb10uy | 10:0ffdefe75566 | 18 | 19.445436f, |
kb10uy | 10:0ffdefe75566 | 19 | 20.601722f, |
kb10uy | 10:0ffdefe75566 | 20 | 21.826764f, |
kb10uy | 10:0ffdefe75566 | 21 | 23.124651f, |
kb10uy | 10:0ffdefe75566 | 22 | 24.499715f, |
kb10uy | 10:0ffdefe75566 | 23 | 25.956544f, |
kb10uy | 10:0ffdefe75566 | 24 | 27.500000f, |
kb10uy | 10:0ffdefe75566 | 25 | 29.135235f, |
kb10uy | 10:0ffdefe75566 | 26 | 30.867706f, |
kb10uy | 10:0ffdefe75566 | 27 | 32.703196f, |
kb10uy | 10:0ffdefe75566 | 28 | 34.647829f, |
kb10uy | 10:0ffdefe75566 | 29 | 36.708096f, |
kb10uy | 10:0ffdefe75566 | 30 | 38.890873f, |
kb10uy | 10:0ffdefe75566 | 31 | 41.203445f, |
kb10uy | 10:0ffdefe75566 | 32 | 43.653529f, |
kb10uy | 10:0ffdefe75566 | 33 | 46.249303f, |
kb10uy | 10:0ffdefe75566 | 34 | 48.999429f, |
kb10uy | 10:0ffdefe75566 | 35 | 51.913087f, |
kb10uy | 10:0ffdefe75566 | 36 | 55.000000f, |
kb10uy | 10:0ffdefe75566 | 37 | 58.270470f, |
kb10uy | 10:0ffdefe75566 | 38 | 61.735413f, |
kb10uy | 10:0ffdefe75566 | 39 | 65.406391f, |
kb10uy | 10:0ffdefe75566 | 40 | 69.295658f, |
kb10uy | 10:0ffdefe75566 | 41 | 73.416192f, |
kb10uy | 10:0ffdefe75566 | 42 | 77.781746f, |
kb10uy | 10:0ffdefe75566 | 43 | 82.406889f, |
kb10uy | 10:0ffdefe75566 | 44 | 87.307058f, |
kb10uy | 10:0ffdefe75566 | 45 | 92.498606f, |
kb10uy | 10:0ffdefe75566 | 46 | 97.998859f, |
kb10uy | 10:0ffdefe75566 | 47 | 103.826174f, |
kb10uy | 10:0ffdefe75566 | 48 | 110.000000f, |
kb10uy | 10:0ffdefe75566 | 49 | 116.540940f, |
kb10uy | 10:0ffdefe75566 | 50 | 123.470825f, |
kb10uy | 10:0ffdefe75566 | 51 | 130.812783f, |
kb10uy | 10:0ffdefe75566 | 52 | 138.591315f, |
kb10uy | 10:0ffdefe75566 | 53 | 146.832384f, |
kb10uy | 10:0ffdefe75566 | 54 | 155.563492f, |
kb10uy | 10:0ffdefe75566 | 55 | 164.813778f, |
kb10uy | 10:0ffdefe75566 | 56 | 174.614116f, |
kb10uy | 10:0ffdefe75566 | 57 | 184.997211f, |
kb10uy | 10:0ffdefe75566 | 58 | 195.997718f, |
kb10uy | 10:0ffdefe75566 | 59 | 207.652349f, |
kb10uy | 10:0ffdefe75566 | 60 | 220.000000f, |
kb10uy | 10:0ffdefe75566 | 61 | 233.081881f, |
kb10uy | 10:0ffdefe75566 | 62 | 246.941651f, |
kb10uy | 10:0ffdefe75566 | 63 | 261.625565f, |
kb10uy | 10:0ffdefe75566 | 64 | 277.182631f, |
kb10uy | 10:0ffdefe75566 | 65 | 293.664768f, |
kb10uy | 10:0ffdefe75566 | 66 | 311.126984f, |
kb10uy | 10:0ffdefe75566 | 67 | 329.627557f, |
kb10uy | 10:0ffdefe75566 | 68 | 349.228231f, |
kb10uy | 10:0ffdefe75566 | 69 | 369.994423f, |
kb10uy | 10:0ffdefe75566 | 70 | 391.995436f, |
kb10uy | 10:0ffdefe75566 | 71 | 415.304698f, |
kb10uy | 10:0ffdefe75566 | 72 | 440.000000f, |
kb10uy | 10:0ffdefe75566 | 73 | 466.163762f, |
kb10uy | 10:0ffdefe75566 | 74 | 493.883301f, |
kb10uy | 10:0ffdefe75566 | 75 | 523.251131f, |
kb10uy | 10:0ffdefe75566 | 76 | 554.365262f, |
kb10uy | 10:0ffdefe75566 | 77 | 587.329536f, |
kb10uy | 10:0ffdefe75566 | 78 | 622.253967f, |
kb10uy | 10:0ffdefe75566 | 79 | 659.255114f, |
kb10uy | 10:0ffdefe75566 | 80 | 698.456463f, |
kb10uy | 10:0ffdefe75566 | 81 | 739.988845f, |
kb10uy | 10:0ffdefe75566 | 82 | 783.990872f, |
kb10uy | 10:0ffdefe75566 | 83 | 830.609395f, |
kb10uy | 10:0ffdefe75566 | 84 | 880.000000f, |
kb10uy | 10:0ffdefe75566 | 85 | 932.327523f, |
kb10uy | 10:0ffdefe75566 | 86 | 987.766603f, |
kb10uy | 10:0ffdefe75566 | 87 | 1046.502261f, |
kb10uy | 10:0ffdefe75566 | 88 | 1108.730524f, |
kb10uy | 10:0ffdefe75566 | 89 | 1174.659072f, |
kb10uy | 10:0ffdefe75566 | 90 | 1244.507935f, |
kb10uy | 10:0ffdefe75566 | 91 | 1318.510228f, |
kb10uy | 10:0ffdefe75566 | 92 | 1396.912926f, |
kb10uy | 10:0ffdefe75566 | 93 | 1479.977691f, |
kb10uy | 10:0ffdefe75566 | 94 | 1567.981744f, |
kb10uy | 10:0ffdefe75566 | 95 | 1661.218790f, |
kb10uy | 10:0ffdefe75566 | 96 | 1760.000000f, |
kb10uy | 10:0ffdefe75566 | 97 | 1864.655046f, |
kb10uy | 10:0ffdefe75566 | 98 | 1975.533205f, |
kb10uy | 10:0ffdefe75566 | 99 | 2093.004522f, |
kb10uy | 10:0ffdefe75566 | 100 | 2217.461048f, |
kb10uy | 10:0ffdefe75566 | 101 | 2349.318143f, |
kb10uy | 10:0ffdefe75566 | 102 | 2489.015870f, |
kb10uy | 10:0ffdefe75566 | 103 | 2637.020455f, |
kb10uy | 10:0ffdefe75566 | 104 | 2793.825851f, |
kb10uy | 10:0ffdefe75566 | 105 | 2959.955382f, |
kb10uy | 10:0ffdefe75566 | 106 | 3135.963488f, |
kb10uy | 10:0ffdefe75566 | 107 | 3322.437581f, |
kb10uy | 10:0ffdefe75566 | 108 | 3520.000000f, |
kb10uy | 10:0ffdefe75566 | 109 | 3729.310092f, |
kb10uy | 10:0ffdefe75566 | 110 | 3951.066410f, |
kb10uy | 10:0ffdefe75566 | 111 | 4186.009045f, |
kb10uy | 10:0ffdefe75566 | 112 | 4434.922096f, |
kb10uy | 10:0ffdefe75566 | 113 | 4698.636287f, |
kb10uy | 10:0ffdefe75566 | 114 | 4978.031740f, |
kb10uy | 10:0ffdefe75566 | 115 | 5274.040911f, |
kb10uy | 10:0ffdefe75566 | 116 | 5587.651703f, |
kb10uy | 10:0ffdefe75566 | 117 | 5919.910763f, |
kb10uy | 10:0ffdefe75566 | 118 | 6271.926976f, |
kb10uy | 10:0ffdefe75566 | 119 | 6644.875161f, |
kb10uy | 10:0ffdefe75566 | 120 | 7040.000000f, |
kb10uy | 10:0ffdefe75566 | 121 | 7458.620184f, |
kb10uy | 10:0ffdefe75566 | 122 | 7902.132820f, |
kb10uy | 10:0ffdefe75566 | 123 | 8372.018090f, |
kb10uy | 10:0ffdefe75566 | 124 | 8869.844191f, |
kb10uy | 10:0ffdefe75566 | 125 | 9397.272573f, |
kb10uy | 10:0ffdefe75566 | 126 | 9956.063479f, |
kb10uy | 10:0ffdefe75566 | 127 | 10548.081821f, |
kb10uy | 10:0ffdefe75566 | 128 | 11175.303406f, |
kb10uy | 10:0ffdefe75566 | 129 | 11839.821527f, |
kb10uy | 10:0ffdefe75566 | 130 | 12543.853951f |
kb10uy | 10:0ffdefe75566 | 131 | }; |