1.1 --- a/djm-fix.cpp Fri Dec 18 20:13:05 2020 +0100
1.2 +++ b/djm-fix.cpp Fri Dec 18 21:35:36 2020 +0100
1.3 @@ -15,6 +15,21 @@
1.4 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.5 */
1.6
1.7 +#include <memory>
1.8 +#include <iostream>
1.9 +
1.10 +#include "DJMFix.h"
1.11 +
1.12 int main(int argc, char**argv) {
1.13 +
1.14 + std::shared_ptr<djmfix::DJMFix> djmFix(djmfix::create([](djmfix::MidiMessage midiMessage) {
1.15 + std::cerr << "main: will send midiMessage" << std::endl; // TODO: do not mess STDIO
1.16 + }));
1.17 +
1.18 + djmFix->start();
1.19 + djmFix->receive({0xf0, 0xf7});
1.20 + djmFix->stop();
1.21 +
1.22 +
1.23 return 0;
1.24 }