midi заработал!
теперь некст полифония
This commit is contained in:
@@ -4,17 +4,25 @@
|
||||
#include <rtmidi/RtMidi.h>
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
#include <cstring>
|
||||
|
||||
#include "../include/synth.hpp"
|
||||
|
||||
class MidiInput{
|
||||
|
||||
|
||||
public:
|
||||
MidiInput(Synth& synth) : synth_(synth){
|
||||
|
||||
}
|
||||
|
||||
void list_ports();
|
||||
void open_port(unsigned int port);
|
||||
void read_message();
|
||||
|
||||
private:
|
||||
RtMidiIn midiIn;
|
||||
Synth& synth_;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user