Carriage Return, or newline to message box
I have a multislider with the bars running from left to right. I want to have the output values in a column just to the left of the multislider with each successive value beginning on a new line. This is so the respective sliders each have their numeric value (ints) immediately to the left of the root of the sliders.
I’ve done quite an exhaustive search of the forums and cycling74 site, and came up with "close, but no cigar." I tried the 10->itoa, but message doesn’t know what to do with it. Does anyone know how I might lace the newline between all the slider values to produce this list ?
It seems like doing it with JS may be only appropriate way, but either way, I don’t know what the character is which would still allow the message box to cr between all the values.
I’m sure you were looking for a less brute force approach, but text handling in Max is pretty rudimentary.
----------begin_max5_patcher---------- 1370.3oc6a00aihCE84jeEHdNKBa7G38Gx9R0nJB3l5YI.Bb5zYG0+6KXCDS ZHPBoHhTqTIIWisOmiu2.buN+Y8J6souyKrs9aqmrVs5OqWsRYpxvp5Ouxde v6gwAEpSyNg+qzs+zditII+coxblUjnPlK1dPxeVxSZNgzCxXtT96LtdRrs2 Lh+s9Qc2eIMQVH9OUmAPG2ZyIG1KRJGWEj.0FyBjguJR18bNOTpmMLvqrOVL Z0Q.x0AuwBBbb6L9IA6Uiu8+vyiBRBZftHRYsjs+EgXebl0TRO0tlyMOuV2p EtxgWDyeimWHRSLP5J6frLCyqL5RkZ+yT0.Q1zZRjnM41ZJm+lno+TswOV2L 7GE.2JhqNPPpWP9tGoe4Z8t3zv+kGYN31oY7DQRVNufmHCj0yRayQ7WBNDKe 97qMca+kfPductGgek8tbQTZREL5z2JyMS3SV.rZQEaRG0YjDjclNWTxjCEa CxqzsswpAA1znLMMtaSsKUkQCAIh8ARtTngKzscPE6yxEIxNSDOInbLdsHLO MNtyPoa4syzRT4pYH+WhH4qpwxTLKOcQVyhfcqFEI1wKjcsIC1Uz0RmvaS2L yv7N1uT3d2Pdgrzg2ngOGp2tvzenbugy8FRqbiAdp.aOP0QyH5ghpOMxFir6 BDyn6lF9X85l2r4F0w87hhfc7yJjEbok6WfRBurR5SMTR82N.XSPI8lGk7Bd jRqXqsWVHKu5x1fjcektltpWvjI6ZB5WPgyifF96vXdIiF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X8+O8Q+2B -----------end_max5_patcher-----------
Do you need to set the size of your [multislider] to something weird? If not you could use a [message] box to display the values (setting the background to transparent) and then a [sprintf %.2f %.2f %.2f] to set the number of decimal places you want and the number of sliders you have.
Using only int values, but they could be 1, 2, or 3 digits. I was trying to find a way to insert a newline character after each number. I’ve been unsuccessful. So, 100 sliders in a multislider (again, horizontally oriented) have basically labels next to each slider like labels for the current values for each slider.
@Chris : I’m about to see what your patch does. Thanks.
and thank you as well, Luke.
@Chris : I set your solution up. . . oh my gosh ! Brute force is right !! :-O
I try to keep my # of objects to a minimum, so I don’t think I’ll use that method
@ Luke : I’d still like to find a better way . . . is the message\sprintf the only other way ? I haven’t tried it yet, but while I try that.