Setting an instrument macro mapping

Is it possible to set the Instrument Macro Mapping in the API?

From the docs…

  
-- Linked parameter. Can be a sample FX- or modulation parameter. Never nil.  
renoise.song().instruments[].macros[].mappings[].parameter  
 -> [read-only, renoise.DeviceParameter]  
  

Here the .parameter is read only so how can I set the mapping target?

EDIT:
Also one other thing, is it possible to set the ‘Pitch Range’ in the pitch modulation window?

Thanks

I just ran into this too.
Any workaround?
How to map modulation set parameter to macro ?

So it won’t work through the API yet :frowning: