For anyone who really feels the need to totally automate their total Disquiet Junto production process (people like me, I guess), below is a MAX patch that will automate your selection of a random track from last week’s playlist. (The output is 0-based.)
Community members should feel free to feverishly port this to ChucK, Processing, Scheme, Common Lisp, Scala, C, C++, FORTRAN 77, COBOL, RPL, BASIC, or your language of choice.
{
"boxes" : [ {
"box" : {
"maxclass" : "number",
"id" : "obj-5",
"parameter_enable" : 0,
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"patching_rect" : [ 314.0, 284.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "random 66",
"id" : "obj-3",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 314.0, 211.5, 66.0, 22.0 ]
}
}
, {
"box" : {
"maxclass" : "button",
"id" : "obj-2",
"parameter_enable" : 0,
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 314.0, 137.0, 24.0, 24.0 ]
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-3", 0 ]
}
}
],
"appversion" : {
"major" : 8,
"minor" : 1,
"revision" : 1,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box"
}