Thanks!
Yes, yes it can, here’s a port of your SongPos script to MaxMSP
[luabox]
{
“patcher” : {
“fileversion” : 1,
“rect” : [344.0, 84.0, 458.0, 308.0],
“bglocked” : 0,
“defrect” : [344.0, 84.0, 458.0, 308.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” : “t b b i b”,
“numinlets” : 1,
“fontsize” : 12.0,
“numoutlets” : 4,
“outlettype” : [“bang”, “bang”, “int”, “bang”],
“patching_rect” : [15.0, 45.0, 59.5, 20.0],
“id” : “obj-25”,
“fontname” : “Arial”
}
}
, {
“box” : {
“maxclass” : “number”,
“minimum” : 1,
“numinlets” : 1,
“maximum” : 64,
“fontsize” : 12.0,
“numoutlets” : 2,
“outlettype” : [“int”, “bang”],
“patching_rect” : [15.0, 15.0, 50.0, 20.0],
“id” : “obj-24”,
“fontname” : “Arial”
}
}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sprintf symout my_pos.line = %i”,
“numinlets” : 1,
“fontsize” : 12.0,
“numoutlets” : 1,
“outlettype” : [“”],
“patching_rect” : [90.0, 135.0, 180.0, 20.0],
“id” : “obj-22”,
“fontname” : “Arial”
}
}
, {
“box” : {
“maxclass” : “message”,
“text” : “"renoise.song().transport.playback_pos = my_pos"”,
“numinlets” : 2,
“fontsize” : 12.0,
“numoutlets” : 1,
“outlettype” : [“”],
“patching_rect” : [135.0, 165.0, 279.0, 18.0],
“id” : “obj-9”,
“fontname” : “Arial”
}
}
, {
“box” : {
“maxclass” : “message”,
“text” : “"my_pos.sequence = 1"”,
“numinlets” : 2,
“fontsize” : 12.0,
“numoutlets” : 1,
“outlettype” : [“”],
“patching_rect” : [45.0, 105.0, 137.0, 18.0],
“id” : “obj-5”,
“fontname” : “Arial”
}
}
, {
“box” : {
“maxclass” : “message”,
“text” : “"local my_pos = renoise.SongPos()"”,
“numinlets” : 2,
“fontsize” : 12.0,
“numoutlets” : 1,
“outlettype” : [“”],
“patching_rect” : [15.0, 75.0, 202.0, 18.0],
“id” : “obj-3”,
“fontname” : “Arial”
}
}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “print”,
“numinlets” : 1,
“fontsize” : 12.0,
“numoutlets” : 0,
“patching_rect” : [165.0, 255.0, 34.0, 20.0],
“id” : “obj-52”,
“fontname” : “Arial”
}
}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “prepend /renoise/evaluate”,
“numinlets” : 1,
“fontsize” : 12.0,
“numoutlets” : 1,
“outlettype” : [“”],
“patching_rect” : [15.0, 225.0, 149.0, 20.0],
“id” : “obj-15”,
“fontname” : “Arial”
}
}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sprintf symout %s %s %s %s”,
“numinlets” : 4,
“fontsize” : 12.0,
“numoutlets” : 1,
“outlettype” : [“”],
“patching_rect” : [15.0, 195.0, 165.0, 20.0],
“id” : “obj-10”,
“fontname” : “Arial”
}
}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “udpsend localhost 8000”,
“numinlets” : 1,
“fontsize” : 12.0,
“numoutlets” : 0,
“patching_rect” : [15.0, 255.0, 137.0, 20.0],
“id” : “obj-1”,
“fontname” : “Arial”
}
}
],
“lines” : [ {
“patchline” : {
“source” : [“obj-15”, 0],
“destination” : [“obj-52”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-15”, 0],
“destination” : [“obj-1”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-10”, 0],
“destination” : [“obj-15”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-9”, 0],
“destination” : [“obj-10”, 3],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-5”, 0],
“destination” : [“obj-10”, 1],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-3”, 0],
“destination” : [“obj-10”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-24”, 0],
“destination” : [“obj-25”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-25”, 3],
“destination” : [“obj-9”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-25”, 2],
“destination” : [“obj-22”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-22”, 0],
“destination” : [“obj-10”, 2],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-25”, 1],
“destination” : [“obj-5”, 0],
“hidden” : 0,
“midpoints” :
}
}
, {
“patchline” : {
“source” : [“obj-25”, 0],
“destination” : [“obj-3”, 0],
“hidden” : 0,
“midpoints” :
}
}
]
}
}
[/luabox]