OSC /renoise/trigger/midi

Hi, everybody! Can anybody explain me how to use “/renoise/trigger/midi” command through OSC?
According to docs, it expects number, so I tried, for example, 0x903C64 as integer (which is note-on message on channel 1, note 60, velocity 100), but nothing happens. Ideally, I would like to send CC messages, as it seems there is no endpoint for them in protocol.

1 Like

I’d like to know the answer to this as well

Yes, exactly. That’s how its intended to work.

Here’s a litte example using python-osc

"""OSC test client

Dependencies (pip): python-osc 
import argparse
import time

from pythonosc import udp_client

def midi_msg(status, byte1, byte2):
  return status + (byte1 << 8) + (byte2 << 16)

if __name__ == "__main__":
  parser = argparse.ArgumentParser()
  parser.add_argument("--ip", default="",
      help="The ip of the OSC server")
  parser.add_argument("--port", type=int, default=8000,
      help="The port the OSC server is listening on")
  args = parser.parse_args()

  client = udp_client.SimpleUDPClient(args.ip, args.port)

  for x in range(10):
    client.send_message("/renoise/trigger/midi", midi_msg(0x90, 0x3C + x, 64))
    client.send_message("/renoise/trigger/midi", midi_msg(0x80, 0x3C + x, 0))

1 Like

Thank you for help! That works nicely :slightly_smiling_face:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.