I’m also thinking of a situation where I’d like to copy MIDI MAPPINGS from one song to another. Any insight here?
I totally respect Duplex and it is, obviously, very well thought out. Independent of Duplex, from a purely LUA API standpoint, I would like to see (changed dump() to get() for consistency):
-- Dump mapping
-- Outputs: nil, "CH1|E-3", whatever the user has mapped.
renoise.tool():get_midi_mapping(midi_mapping_name)
-> [table, string?]
-- Set mapping
-- Whatever is returned in the previous function can be set here.
-- I imagine, for example, saving a table of mappings to a file, then loading
-- that file as mappings into a new song.
renoise.tool():set_midi_mapping(midi_mapping_name, ...)
-- Get device
-- Eg, this should return the same thing as:
-- `midi_device = renoise.Midi.create_output_device(device_name)`
-- Ideally, this function is optimized and prevents me from opening the same
-- device 1000 times. Whatever is most intelligent, do it here.
renoise.tool():get_midi_output_device(midi_mapping_name)
-> [midi_device]
Or, is this already possible somehow?