Reorganize top-level directories with clearer naming convention
app -> app-desktop-macos, presets -> app-presets, server -> remote-server, daw-config-reaper -> osc-config-daw, plugin-reaper-realearn -> plugin-reaper-relearn. Updated run.py and presets.py path references accordingly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import rtmidi
|
||||
from midi_receiver import midi_receiver
|
||||
|
||||
|
||||
MIDI_CH = 0
|
||||
TRANSPORT_MIDI_CH = 0
|
||||
|
||||
midi_out = rtmidi.MidiOut()
|
||||
transport_midi_out = rtmidi.MidiOut()
|
||||
|
||||
available_ports = midi_out.get_ports()
|
||||
print("Available MIDI ports:", available_ports)
|
||||
|
||||
|
||||
def send_cc(cc_number, value, channel=None):
|
||||
ch = (channel - 1) if channel is not None else MIDI_CH
|
||||
msg = [0xB0 | ch, cc_number, value]
|
||||
if midi_out.is_port_open():
|
||||
midi_out.send_message(msg)
|
||||
midi_receiver.midi_out_signal.emit(msg)
|
||||
|
||||
|
||||
def send_transport_cc(cc_number, value):
|
||||
msg = [0xB0 | TRANSPORT_MIDI_CH, cc_number, value]
|
||||
if transport_midi_out.is_port_open():
|
||||
transport_midi_out.send_message(msg)
|
||||
midi_receiver.midi_out_signal.emit(msg)
|
||||
Reference in New Issue
Block a user