here is Beatslaugher’s reply to vV’s post on the api inconsistency thread
it should be (to control mixer faders via osc):
/renoise/evaluate renoise.song().tracks[].prefx_volume.value = float
i was typically missing out setting the property ‘value’ as renoise.song().tracks.prefx_volume is an instance of the class DeviceParameter
oprint definitely is your friend
and a MaxMSP patch controlling just track 1’s fader.
[luabox]
{
“patcher” : {
“fileversion” : 1,
“rect” : [40.0, 89.0, 377.0, 304.0],
“bglocked” : 0,
“defrect” : [40.0, 89.0, 377.0, 304.0],
“openrect” : [0.0, 0.0, 0.0, 0.0],
“openinpresentation” : 0,
“default_fontsize” : 12.0,
“default_fontface” : 0,
“default_fontname” : “Arial”,
“gridonopen” : 0,
“gridsize” : [15.0, 15.0],
“gridsnaponopen” : 0,
“toolbarvisible” : 1,
“boxanimatetime” : 200,
“imprint” : 0,
“enablehscroll” : 1,
“enablevscroll” : 1,
“devicewidth” : 0.0,
“boxes” : [ {
“box” : {
“maxclass” : “newobj”,
“text” : “scale 0 127 0. 1.412”,
“id” : “obj-3”,
“numinlets” : 6,
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [“”],
“fontsize” : 12.0,
“patching_rect” : [15.0, 165.0, 119.0, 20.0]
}
}
, {
“box” : {
“maxclass” : “slider”,
“id” : “obj-2”,
“numinlets” : 1,
“numoutlets” : 1,
“outlettype” : [“”],
“patching_rect” : [15.0, 15.0, 20.0, 140.0]
}
}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “print”,
“id” : “obj-52”,
“numinlets” : 1,
“fontname” : “Arial”,
“numoutlets” : 0,
“fontsize” : 12.0,
“patching_rect” : [165.0, 255.0, 34.0, 20.0]
}
}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “prepend /renoise/evaluate”,
“id” : “obj-15”,
“numinlets” : 1,
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [“”],
“fontsize” : 12.0,
“patching_rect” : [15.0, 225.0, 149.0, 20.0]
}
}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sprintf symout renoise.song().tracks[1].prefx_volume.value = %f”,
“id” : “obj-10”,
“numinlets” : 1,
“fontname” : “Arial”,
“numoutlets” : 1,
“outlettype” : [“”],
“fontsize” : 12.0,
“patching_rect” : [15.0, 195.0, 349.0, 20.0]
}
}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “udpsend localhost 8000”,
“id” : “obj-1”,
“numinlets” : 1,
“fontname” : “Arial”,
“numoutlets” : 0,
“fontsize” : 12.0,
“patching_rect” : [15.0, 255.0, 137.0, 20.0]
}
}
],
“lines” : [ {
“patchline” : {
“source” : [“obj-2”, 0],
“destination” : [“obj-3”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-3”, 0],
“destination” : [“obj-10”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-15”, 0],
“destination” : [“obj-1”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-15”, 0],
“destination” : [“obj-52”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-10”, 0],
“destination” : [“obj-15”, 0],
“hidden” : 0,
“midpoints” :
}
}
]
}
}
[/luabox]