Module Duplex.OscClient
OscClient is a simple OSC client that connect to the built-in OSC server in Renoise, producing realtime messages that trigger notes or send MIDI messages
Functions
__init (osc_host, osc_port) | Initialize the OscClient class |
trigger_instrument (note_on, instr, track, note, velocity) | Trigger instrument-note |
trigger_midi (t) | Internal midi-message function, shared across applications |
_show_instructions () | Display usage instructions the first time the class is used |
Functions
- __init (osc_host, osc_port)
-
Initialize the OscClient class
Parameters:
- osc_host (string) the host-address name (can be an IP address)
- osc_port (int) the host port
- trigger_instrument (note_on, instr, track, note, velocity)
-
Trigger instrument-note
Parameters:
- note_on (bool), true when note-on and false when note-off
- instr (int), the Renoise instrument index
- track (int) the Renoise track index
- note (int), the desired pitch, 0-120
- velocity (int), the desired velocity, 0-127
- trigger_midi (t)
-
Internal midi-message function, shared across applications
Parameters:
- t (table), a ready-to-send MIDI message
- _show_instructions ()
- Display usage instructions the first time the class is used