|
@@ -1,8 +1,11 @@
|
|
|
#include "Sequencer.h"
|
|
|
#include <iostream>
|
|
|
|
|
|
+const std::string Sequencer::midiClientName = std::string("Launchpad Sequencer");
|
|
|
+
|
|
|
Sequencer::Sequencer()
|
|
|
- : launchpad(), playbackScreen(*this), configScreen(*this), messages(),
|
|
|
+ : launchpad(midiClientName), midiOut(midi::Output::Api::UNSPECIFIED, midiClientName),
|
|
|
+ playbackScreen(*this), configScreen(*this), messages(),
|
|
|
defaultOutputChannel(9), player(&midiOut, &beats, *this)
|
|
|
{
|
|
|
playbackScreen.setLaunchpad(launchpad);
|
|
@@ -14,7 +17,7 @@ void Sequencer::run()
|
|
|
{
|
|
|
std::cout << __func__ << std::endl;
|
|
|
|
|
|
- midiOut.openVirtualPort("launchpad sequencer");
|
|
|
+ midiOut.openVirtualPort("Sequencer out");
|
|
|
|
|
|
messages.resize(17);
|
|
|
for(int i=0; i<messages.size(); i++) {
|