Adaptive - Dynamic Maping - scale variable values to fixed range values

mmeza's icon

Hi dear all,

It seems like I've just stumbled into a classic Adaptive Dynamic Mapping problem, but I did not found any similar entry in this Forum, (which I find surprising, by the way ...)

I have a set of parameters (quite a few), each of them with fixed range values (float number boxes with a fixed min and max range). I want to control those parameters (float number boxes) using different methods like motion capture, automation (using ramps and random generators), automation and control by audio signal, or by video matrix, and so on. Since my number boxes are fixed to min and max ranges, I have to 'scale' the control - automation values whenever I switch form a method form another, plus, one of those methods (video matrix) outputs many data streams (flows of float numbers) simultaneously. The Max object 'scale' does not seem to be the solution, since it allows to scale from one fixed range to another fixed range. Since the input range to be scaled is variable, this max object, or other objects like 'zmap', do not seem to be the solution unless I find a way to operate the needed adjustments in between this kind of objects and the incoming data streams. Any help, idea, method, solution ? Thanks a lot in advance for any answer.

BK

TFL's icon

You want to control many parameters with many different and interchangeable sources of different natures, right?

My advice would be to streamline all your different control sources so that they all end up as floats in the range 0. - 1.

Then it's not too hard to map them to the range of any of your parameter, and even use one same source to modulate different parameters with different ranges, using [crosspatch] or [matrixctrl] + [matrix], or pattr-based modulation system, or other ways depending on your patch design, the total number of parameters, and how many of them you want be able to modulate simultaneously.

It is not clear how you want to deal with your matrix source. How do you want to convert them to floats? Calculating the mean brightness of the whole image? Sampling a single pixel? Something else?

Roman Thilenius's icon

how would scaling from a "not fixed" range to another range look like? if you do not know the range of the input, you can not scale it to another range.

for the source examples you mention i do not see how you could not know their number range.