Controlling Device Parameter With Osc Message.

Hi there,

I have one ‘quick’ question;

I want to control a device parameter (say instrument automation device, parameter 1) with a breathcontroller via maxmsp.
I can send the osc messages via an udp127.0.0.1 8000 object.
I think the '/renoise/song/track/02/device/1/set_parameter_by_index (number, number)" is the best way to go but I don’t really get how the messages are send.
I want to input a message with numbers varying from 0 to ‘anything’ (127/6/800) that will be send to the automation device.

Why are there two arguments (number, number) on the end of the control message?

I found it!

/renoise/song/track/005/device/001/set_parameter_by_index 2 $1

Lovely, just presented my project to about 50 people. :D

modified something i made a while ago for you

http://www.sendspace.com/file/p2qijx
or copy & paste

[details=“Click to view contents”] ```
{
“boxes” : [ {
“box” : {
“maxclass” : “comment”,
“text” : “param”,
“id” : “obj-36”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [86.0, 101.0, 75.0, 20.0],
“numoutlets” : 0,
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “value”,
“id” : “obj-34”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [295.0, 96.0, 71.0, 20.0],
“numoutlets” : 0,
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “2 is cutoff for renoise filter”,
“id” : “obj-32”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [82.0, 54.0, 150.0, 20.0],
“numoutlets” : 0,
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “this is the first device in track 1”,
“id” : “obj-30”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [94.0, 270.0, 222.0, 20.0],
“numoutlets” : 0,
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “comment”,
“text” : “quick osc automation example \nby syflom for renoise forum”,
“linecount” : 2,
“id” : “obj-23”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [291.0, 382.0, 218.0, 34.0],
“numoutlets” : 0,
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “2”,
“id” : “obj-14”,
“fontname” : “Arial”,
“numinlets” : 2,
“patching_rect” : [36.0, 53.0, 32.5, 18.0],
“numoutlets” : 1,
“outlettype” : [""],
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “loadbang”,
“id” : “obj-12”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [27.0, 21.0, 60.0, 20.0],
“numoutlets” : 1,
“outlettype” : [“bang”],
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “flonum”,
“id” : “obj-11”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [214.0, 94.0, 74.0, 20.0],
“numoutlets” : 2,
“outlettype” : [“float”, “bang”],
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “number”,
“id” : “obj-7”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [24.0, 93.0, 50.0, 20.0],
“numoutlets” : 2,
“outlettype” : [“int”, “bang”],
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “print”,
“id” : “obj-6”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [91.0, 210.0, 34.0, 20.0],
“numoutlets” : 0,
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “pack 0. 0”,
“id” : “obj-4”,
“fontname” : “Arial”,
“numinlets” : 2,
“patching_rect” : [32.0, 178.0, 59.0, 20.0],
“numoutlets” : 1,
“outlettype” : [""],
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sprintf %s%s%s”,
“id” : “obj-27”,
“fontname” : “Arial”,
“numinlets” : 3,
“patching_rect” : [321.0, 358.0, 94.0, 20.0],
“numoutlets” : 1,
“outlettype” : [""],
“fontsize” : 11.595187
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “/renoise/song/track/ $1 /mute”,
“id” : “obj-29”,
“fontname” : “Arial”,
“numinlets” : 2,
“patching_rect” : [321.0, 335.0, 165.0, 18.0],
“numoutlets” : 1,
“outlettype” : [""],
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “gswitch2”,
“id” : “obj-15”,
“numinlets” : 2,
“patching_rect” : [33.0, 319.0, 39.0, 32.0],
“numoutlets” : 2,
“outlettype” : ["", “”]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “print”,
“id” : “obj-8”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [94.0, 326.0, 34.0, 20.0],
“numoutlets” : 0,
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “/renoise/song/track/01/device/2/set_parameter_by_index $2 $1”,
“id” : “obj-5”,
“fontname” : “Arial”,
“numinlets” : 2,
“patching_rect” : [33.0, 247.0, 345.0, 18.0],
“numoutlets” : 1,
“outlettype” : [""],
“fontsize” : 12.0
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “udpsend 127.0.0.1 8000”,
“id” : “obj-1”,
“fontname” : “Arial”,
“numinlets” : 1,
“patching_rect” : [33.0, 372.0, 140.0, 20.0],
“numoutlets” : 0,
“fontsize” : 12.0
}

}
],
“lines” : [ {
“patchline” : {
“source” : [“obj-15”, 1],
“destination” : [“obj-8”, 0],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-15”, 0],
“destination” : [“obj-8”, 0],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-15”, 0],
“destination” : [“obj-1”, 0],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-5”, 0],
“destination” : [“obj-15”, 1],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-12”, 0],
“destination” : [“obj-14”, 0],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-14”, 0],
“destination” : [“obj-7”, 0],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-29”, 0],
“destination” : [“obj-27”, 0],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-4”, 0],
“destination” : [“obj-5”, 0],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-4”, 0],
“destination” : [“obj-6”, 0],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-11”, 0],
“destination” : [“obj-4”, 0],
“hidden” : 0,
“midpoints” : []
}

}
, {
“patchline” : {
“source” : [“obj-7”, 0],
“destination” : [“obj-4”, 1],
“hidden” : 0,
“midpoints” : []
}

}
]
}