midi.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef MIDI
  17. #define MIDI
  18. #include <iostream>
  19. #include <cstring>
  20. class MidiEvent
  21. {
  22. public:
  23. MidiEvent(){}
  24. MidiEvent(long inFrame, unsigned char* inData)
  25. {
  26. frame = inFrame;
  27. memcpy( data, inData, sizeof(unsigned char) *3 );
  28. }
  29. long frame;
  30. unsigned char data[3];
  31. };
  32. #endif