main.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. Program RecordPlayback: A MIDI tool
  3. Author: Harry van Haaren
  4. E-mail: harryhaaren@gmail.com
  5. Copyright (C) 2010 Harry van Haaren
  6. PrintJackMidi is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. PrintJackMidi is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with PrintJackMidi. If not, see <http://www.gnu.org/licenses/>. */
  16. #include <unistd.h>
  17. #include <iostream>
  18. #include "jack.hpp"
  19. // std::string basedir;
  20. int main(int argc, char *argv[]) {
  21. #if 0
  22. if(argc<2)
  23. {
  24. printf("usage: realtime_demo basedir\n");
  25. return 1;
  26. }
  27. basedir = argv[1];
  28. #endif
  29. // Create Jack object, the constructor registers the MIDI port, etc
  30. Jack jack;
  31. jack.activate();
  32. for (;;) {
  33. sleep(1);
  34. }
  35. return 0;
  36. }