This not work!
renoise.song().selected_instrument.midi_input_properties.device_name="Renoise OSC Device"
In other words, the Renoise OSC Device does not appear in the renoise.Midi.available_input_devices() list. Therefore, it cannot be selected. It seems that this device should always appear last on this list.
I was hoping to be able to use the string “Renoise OSC Device” to be able to select this device, in the MIDI\Input Device drop-down list.
Doc:
---## renoise.InstrumentMidiInputProperties
---@class renoise.InstrumentMidiInputProperties
renoise.InstrumentMidiInputProperties = {}
---### properties
---@class renoise.InstrumentMidiInputProperties
---
---When setting new devices, device names must be one of
---renoise.Midi.available_input_devices.
---Devices are automatically opened when needed. To close a device, set its
---name to "", e.g. an empty string.
---@field device_name string