адаптация s13bby/osc под vst и gui. (вайбкод)

вайбкод потому что мне в моменте стало понятно. что проще было сразу писать на фреймворке JUCE, чем адаптировать консольное приложение на MiniAudio.
обновляться данный репозиторий не будет. СmakeLists адаптирован онли под linux.
This commit is contained in:
2026-11-20 14:52:33 +06:00
parent 8384123f87
commit b0a75e98db
10387 changed files with 4025195 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef MIDIINPUT
#define MIDIINPUT
#include <rtmidi/RtMidi.h>
#include <iostream>
#include <stdexcept>
#include <cstring>
#include <array>
#include "../include/synth.hpp"
class MidiInput{
public:
MidiInput(Synth& synth, Synth& synth2) : synths{&synth, &synth2} {
pitch = 8192;
mod_wheel = 0;
}
void list_ports();
void open_port(unsigned int port);
void read_message();
private:
RtMidiIn midiIn;
std::array<Synth*, 2> synths;
uint16_t pitch;
uint8_t mod_wheel;
};
#endif