A question how to automate number boxes...

Faber van Zweden's icon

Haai Does anyone has an idea how to make a patch where number boxes, linked to a parameter, are automated for example from 100 to 1000 in 10 sec and the back, but non-liniair? So slower at the end, and faster in the middle.

Thnx very much....

Stephen Lee's icon

For automating the values, you should use the line object. There are different ways of making it non-linear, but if you want it slower at both ends and faster in the middle, you can use sin or cos, but you will have to scale the data to appropriate values so that you are using half of the period of the sine or cosine wave. For example, for cosine you will want to scale the input data to go from 0 to pi (or pi to 2*pi, etc.), and then you scale the output of the cos object back to the full range that you want (e.g. 100 to 1000). You can also use the expr object if you want to make a more complex function.

Faber van Zweden's icon

AIght thnx for the reply. But I still don't understand the cos object, how to make it non-liniair. How to make the signal 'wave'...?

Stephen Lee's icon

The cos object just outputs the cosine of whatever value you put in the inlet. You can mess around with the cos help file to get a feel for how it works. The rest is just a matter of scaling the data before and after the cos object. You can use the scale object for this. By the way, the scale object also has the ability to do an exponential curve, but it is kind of famous for not creating a very useful curve for many input/output ranges (there have been many threads about this on this forum, if you want more details).

Roman Thilenius's icon

for signals, [curve~] is superb, but [scale] has bugs, dont use it.

unfortunately there is no [curve] object from cycling.

(maybe i should make an abstraction for that?)

here are some of my abstractions using math expressions, they
should cover most things "scaling and distorting".

they are not meant as academic math funtions, i´ve built
them mainly for use with GUI objects.

the "do"s are for 0. - 1., the "make" are for a given in/out
range.

"makeexp-bipolar-" and a few others are currently broken, they
are missing the download.
the old "bipolar"s also have a little bug, the will output the
center values twice.

seejayjames's icon

you can always use [table] and draw the curves you want. yes they'll be kind of ragged unless you populate them with a math expression, but drawing is easy and fun. hook to a preset and you've got all kinds of curves.

There are some nice math expr's in the jit.displays help file too...