Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AOTTrigon I2CEEPROM MCP4922 AQM0802A mbed
Fork of NuMidi401 by
FMOscillator/FMOscillator.h@24:f93b49b4cd66, 2015-01-31 (annotated)
- Committer:
- kb10uy
- Date:
- Sat Jan 31 10:54:13 2015 +0000
- Revision:
- 24:f93b49b4cd66
- Parent:
- 23:deb76bdf6f03
NRPN 20h xxh???
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kb10uy | 13:e11380ceb460 | 1 | #pragma once |
| kb10uy | 13:e11380ceb460 | 2 | #include "mbed.h" |
| kb10uy | 16:5cfa8b491882 | 3 | #include "AQM0802A.h" |
| kb10uy | 13:e11380ceb460 | 4 | #include "AOTTrigon.h" |
| kb10uy | 13:e11380ceb460 | 5 | #include "FMOperator.h" |
| kb10uy | 13:e11380ceb460 | 6 | #include "MIDIUtil.h" |
| kb10uy | 17:2e577c6000cf | 7 | #include "MIDIChannel.h" |
| kb10uy | 16:5cfa8b491882 | 8 | #include <new> |
| kb10uy | 13:e11380ceb460 | 9 | |
| kb10uy | 13:e11380ceb460 | 10 | class FMOscillator |
| kb10uy | 13:e11380ceb460 | 11 | { |
| kb10uy | 13:e11380ceb460 | 12 | public: |
| kb10uy | 13:e11380ceb460 | 13 | FMOscillator(); |
| kb10uy | 23:deb76bdf6f03 | 14 | FMOscillator(Timer *tim, Serial *ser, AOTTrigon *tri, I2C *i2clcd); |
| kb10uy | 16:5cfa8b491882 | 15 | ~FMOscillator(); |
| kb10uy | 13:e11380ceb460 | 16 | private: |
| kb10uy | 13:e11380ceb460 | 17 | Timer *master; |
| kb10uy | 13:e11380ceb460 | 18 | Serial *serial; |
| kb10uy | 13:e11380ceb460 | 19 | AOTTrigon *trigon; |
| kb10uy | 16:5cfa8b491882 | 20 | AQM0802A *lcd; |
| kb10uy | 17:2e577c6000cf | 21 | MIDIChannel **channels; |
| kb10uy | 16:5cfa8b491882 | 22 | int opcount; |
| kb10uy | 13:e11380ceb460 | 23 | |
| kb10uy | 13:e11380ceb460 | 24 | void getMIDIMessage(); |
| kb10uy | 16:5cfa8b491882 | 25 | void midiReceived(); |
| kb10uy | 13:e11380ceb460 | 26 | void getMIDISystemCommonMessage(char t2); |
| kb10uy | 13:e11380ceb460 | 27 | void midiSystemRealtimeMessage(char mes); |
| kb10uy | 13:e11380ceb460 | 28 | void midiNoteOn(char ch, char note, char vel); |
| kb10uy | 13:e11380ceb460 | 29 | void midiNoteOff(char ch, char note, char vel); |
| kb10uy | 13:e11380ceb460 | 30 | void midiPolyphonicKeyPressure(char ch, char note, char vel); |
| kb10uy | 13:e11380ceb460 | 31 | void midiControlChange(char ch, char ctrl, char data); |
| kb10uy | 13:e11380ceb460 | 32 | void midiChannelMode(char ch, char ctrl, char data); |
| kb10uy | 13:e11380ceb460 | 33 | void midiProgramChange(char ch, char prg); |
| kb10uy | 13:e11380ceb460 | 34 | void midiChannelPressure(char ch, char pres); |
| kb10uy | 13:e11380ceb460 | 35 | void midiPitchBend(char ch, short pb); |
| kb10uy | 13:e11380ceb460 | 36 | void midiSystemExclusiveMessage(); |
| kb10uy | 20:8278e607a687 | 37 | }; |
