[slider] weirdness

Mar 18, 2009 at 1:28pm

[slider] weirdness

2 questions about [slider] :

1) It appears that there’s a big change in slider’s behaviour beetween max 4.6 and max 5.0.3 :
If you create a slider under max 4, with a range=128000, then, when dragging it with the mouse, it increases 1 by 1 from 0 up to 127999. But under max 5, it increases about 1000 by 1000. Is there’s a way to get the max 4 behaviour under max 5?

2) In max 5, the default slider is ranging from 0 to 127. But if you check “float output” in the inspector, it outputs values from 0. up to 128. Is that the expected behaviour? If so, I think that it should be stated in the reference.

Ch.

#42908
Mar 18, 2009 at 1:46pm
Quote:
1) It appears that there’s a big change in slider’s behaviour beetween max 4.6 and max 5.0.3 :
If you create a slider under max 4, with a range=128000, then, when dragging it with the mouse, it increases 1 by 1 from 0 up to 127999. But under max 5, it increases about 1000 by 1000. Is there’s a way to get the max 4 behaviour under max 5?

It works fine if you make the slider 128000 pixels wide or high. For what do you want to give the user 128000 optional settings?

Quote:
2) In max 5, the default slider is ranging from 0 to 127. But if you check “float output” in the inspector, it outputs values from 0. up to 128. Is that the expected behaviour? If so, I think that it should be stated in the reference.

With integers there are 128 possible values. Making the sliders output floats, such a notion is no longer valid. It appears that the designers have chosen to make 128 the maximum value instead of 128 minus 1.

_
johan

#153645
Mar 18, 2009 at 2:23pm

here goes my explanation.. hope you fine it useful

{
“boxes” : [ {
"box" : {
"maxclass" : "comment",
"text" : "or",
"fontname" : "Hoefler Text",
"numinlets" : 1,
"frgb" : [ 0.0, 0.0, 0.0, 1.0 ],
“numoutlets” : 0,
“patching_rect” : [ 405.0, 270.0, 23.0, 20.0 ],
“fontsize” : 14.0,
“id” : “obj-32″
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “delay 10″,
“fontname” : “Hoefler Text”,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 450.0, 285.0, 58.0, 20.0 ],
“outlettype” : [ "bang" ],
“fontsize” : 14.0,
“id” : “obj-30″
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “0″,
“fontname” : “Hoefler Text”,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 480.0, 255.0, 32.5, 18.0 ],
“outlettype” : [ "" ],
“fontsize” : 14.0,
“id” : “obj-29″
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “12800″,
“fontname” : “Hoefler Text”,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 540.0, 255.0, 45.0, 18.0 ],
“outlettype” : [ "" ],
“fontsize” : 14.0,
“id” : “obj-27″
}

}
, {
“box” : {
“maxclass” : “toggle”,
“numinlets” : 1,
“numoutlets” : 1,
“patching_rect” : [ 510.0, 90.0, 20.0, 20.0 ],
“outlettype” : [ "int" ],
“id” : “obj-25″
}

}
, {
“box” : {
“maxclass” : “number”,
“fontname” : “Hoefler Text”,
“numinlets” : 1,
“numoutlets” : 2,
“patching_rect” : [ 510.0, 345.0, 50.0, 20.0 ],
“outlettype” : [ "int", "bang" ],
“fontsize” : 14.0,
“id” : “obj-17″
}

}
, {
“box” : {
“maxclass” : “button”,
“numinlets” : 1,
“numoutlets” : 1,
“patching_rect” : [ 540.0, 225.0, 20.0, 20.0 ],
“outlettype” : [ "bang" ],
“id” : “obj-18″
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “select 1″,
“fontname” : “Hoefler Text”,
“numinlets” : 2,
“numoutlets” : 2,
“patching_rect” : [ 540.0, 195.0, 53.0, 20.0 ],
“outlettype” : [ "bang", "" ],
“fontsize” : 14.0,
“id” : “obj-19″
}

}
, {
“box” : {
“maxclass” : “button”,
“numinlets” : 1,
“numoutlets” : 1,
“patching_rect” : [ 480.0, 225.0, 20.0, 20.0 ],
“outlettype” : [ "bang" ],
“id” : “obj-21″
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “select 0″,
“fontname” : “Hoefler Text”,
“numinlets” : 2,
“numoutlets” : 2,
“patching_rect” : [ 480.0, 195.0, 56.0, 20.0 ],
“outlettype” : [ "bang", "" ],
“fontsize” : 14.0,
“id” : “obj-22″
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “int”,
“fontname” : “Hoefler Text”,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 510.0, 300.0, 32.5, 20.0 ],
“outlettype” : [ "int" ],
“fontsize” : 14.0,
“id” : “obj-23″
}

}
, {
“box” : {
“maxclass” : “number”,
“fontname” : “Hoefler Text”,
“numinlets” : 1,
“numoutlets” : 2,
“patching_rect” : [ 315.0, 375.0, 50.0, 20.0 ],
“outlettype” : [ "int", "bang" ],
“fontsize” : 14.0,
“id” : “obj-9″
}

}
, {
“box” : {
“maxclass” : “button”,
“numinlets” : 1,
“numoutlets” : 1,
“patching_rect” : [ 240.0, 255.0, 20.0, 20.0 ],
“outlettype” : [ "bang" ],
“id” : “obj-6″
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “select 12800″,
“fontname” : “Hoefler Text”,
“numinlets” : 2,
“numoutlets” : 2,
“patching_rect” : [ 240.0, 225.0, 83.0, 20.0 ],
“outlettype” : [ "bang", "" ],
“fontsize” : 14.0,
“id” : “obj-7″
}

}
, {
“box” : {
“maxclass” : “slider”,
“numinlets” : 1,
“numoutlets” : 1,
“patching_rect” : [ 330.0, 30.0, 20.0, 140.0 ],
“outlettype” : [ "" ],
“size” : 12801.0,
“id” : “obj-5″
}

}
, {
“box” : {
“maxclass” : “button”,
“numinlets” : 1,
“numoutlets” : 1,
“patching_rect” : [ 180.0, 255.0, 20.0, 20.0 ],
“outlettype” : [ "bang" ],
“id” : “obj-4″
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “select 0″,
“fontname” : “Hoefler Text”,
“numinlets” : 2,
“numoutlets” : 2,
“patching_rect” : [ 180.0, 225.0, 56.0, 20.0 ],
“outlettype” : [ "bang", "" ],
“fontsize” : 14.0,
“id” : “obj-2″
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “int”,
“fontname” : “Hoefler Text”,
“numinlets” : 2,
“numoutlets” : 1,
“patching_rect” : [ 315.0, 330.0, 32.5, 20.0 ],
“outlettype” : [ "int" ],
“fontsize” : 14.0,
“id” : “obj-1″
}

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

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

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

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

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

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

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

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

}
, {
“patchline” : {
“source” : [ "obj-23", 0 ],
“destination” : [ "obj-17", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-22", 0 ],
“destination” : [ "obj-21", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-19", 0 ],
“destination” : [ "obj-18", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-25", 0 ],
“destination” : [ "obj-19", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-25", 0 ],
“destination” : [ "obj-22", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

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

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

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

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

}
, {
“patchline” : {
“source” : [ "obj-18", 0 ],
“destination” : [ "obj-23", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-21", 0 ],
“destination” : [ "obj-30", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-30", 0 ],
“destination” : [ "obj-23", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
]
}

#153646

You must be logged in to reply to this topic.