franta-hg@0: /** franta-hg@0: * DJM-Fix franta-hg@0: * Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info) franta-hg@0: * franta-hg@0: * This program is free software: you can redistribute it and/or modify franta-hg@0: * it under the terms of the GNU General Public License as published by franta-hg@0: * the Free Software Foundation, version 3 of the License. franta-hg@0: * franta-hg@0: * This program is distributed in the hope that it will be useful, franta-hg@0: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@0: * GNU General Public License for more details. franta-hg@0: * franta-hg@0: * You should have received a copy of the GNU General Public License franta-hg@0: * along with this program. If not, see . franta-hg@0: */ franta-hg@0: franta-hg@1: #include franta-hg@1: #include franta-hg@1: franta-hg@1: #include "DJMFix.h" franta-hg@1: franta-hg@0: int main(int argc, char**argv) { franta-hg@1: franta-hg@1: std::shared_ptr djmFix(djmfix::create([](djmfix::MidiMessage midiMessage) { franta-hg@1: std::cerr << "main: will send midiMessage" << std::endl; // TODO: do not mess STDIO franta-hg@1: })); franta-hg@1: franta-hg@1: djmFix->start(); franta-hg@1: djmFix->receive({0xf0, 0xf7}); franta-hg@1: djmFix->stop(); franta-hg@1: franta-hg@1: franta-hg@0: return 0; franta-hg@0: }