Output.cpp 383 B

12345678910111213141516171819
  1. #include "Output.h"
  2. #include <vector>
  3. namespace midi {
  4. void Output::sendMessage(const Message& message)
  5. {
  6. std::vector<unsigned char> bytes = message.getBytes();
  7. RtMidiOut::sendMessage(&bytes);
  8. }
  9. void Output::sendMessages(const MessageList& messageList)
  10. {
  11. for(auto it = messageList.begin(); it != messageList.end(); it++) {
  12. sendMessage(**it);
  13. }
  14. }
  15. } // namespace