Function object with line object
Hi there,
I have a composition whose tempo I control using a metro object.
I'd now like to make changes to the tempo, by gradually increasing and decreasing the tempo during the composition. For example, for the first 10 seconds I might like to go from 100bpm to 105bpm, and then from 105 to 100 over the course of the next 10 seconds, and so on.
I was thinking that perhaps the function object, connected to a line object would do the trick. The problem though was that the line only outputted values for between the first two points plotted in the function window. So, if my first point was at 0ms, 100, my second at 100ms, 100 and my third at 200ms, the output from line only gave values from 0 to 100.
When I used line~ instead, the values were as expected - 0 to 200.
So, should function only be used with line~, and if so, how can feed values from line~ into metro - I can't can i...
So, how might I do this?
Thanks,
Barry.
Thanks! I found the following patch, but I'm sure exactly how I'm supposed to use it with the function object. Any suggestions?
Quote: Baz79 wrote on Fri, 03 August 2007 10:32
----------------------------------------------------
> Thanks! I found the following patch, but I'm sure exactly how I'm supposed to use it with the function object. Any suggestions?
i've made a quick help file, see patches below.
hope it makes more sense,
j
save this patch (abstraction) as "multi_line" in max searchpath -
this is the help file, save as "multi_line.help" in max searchpath
hi,
I think this "multi-line" abstraction come from the St.ools library by Stefan Tiedje and its real name is "lines".
Here is the help file :
peace
a
How could you get curves instead of lines for some segments?
Quote: cebec wrote on Fri, 03 August 2007 15:10
----------------------------------------------------
> How could you get curves instead of lines for some segments?
----------------------------------------------------
by using non linear math functions (exp, pow, etc...)
j
try using line~ then connect to snapshot~ to convert to float values.
its a hack but it works.
On 02/08/07, Baz79 wrote:
>
> Hi there,
>
> I have a composition whose tempo I control using a metro object.
>
> I'd now like to make changes to the tempo, by gradually increasing and decreasing the tempo during the composition. For example, for the first 10 seconds I might like to go from 100bpm to 105bpm, and then from 105 to 100 over the course of the next 10 seconds, and so on.
>
> I was thinking that perhaps the function object, connected to a line object would do the trick. The problem though was that the line only outputted values for between the first two points plotted in the function window. So, if my first point was at 0ms, 100, my second at 100ms, 100 and my third at 200ms, the output from line only gave values from 0 to 100.
>
>
> When I used line~ instead, the values were as expected - 0 to 200.
>
> So, should function only be used with line~, and if so, how can feed values from line~ into metro - I can't can i...
>
> So, how might I do this?
>
> Thanks,
>
> Barry.
>
>
>
>
> max v2;
> #N vpatcher 0 44 1680 990;
> #P window setfont "Sans Serif" 9.;
> #P flonum 324 606 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window linecount 1;
> #P newex 308 535 40 196617 line;
> #P message 339 212 31 196617 clear;
> #P button 440 410 15 0;
> #P button 137 170 15 0;
> #P user function 133 325 454 395 1 1 0 0;
> #X frgb 153 102 153;
> #X brgb 204 204 204;
> #X rgb2 85 85 85;
> #X rgb3 255 255 255;
> #X rgb4 0 0 0;
> #X rgb5 0 0 0;
> #X add 0. 55.555557 0;
> #X add 4466.019531 75.555557 0;
> #X add 9514.563477 6.666667 0;
> #X add 10000. 0. 0;
> #X domain 10000.;
> #X range 0. 100.;
> #X done;
> #P hidden connect 3 0 0 0;
> #P connect 1 0 0 0;
> #P connect 0 1 4 0;
> #P connect 4 0 5 0;
> #P connect 0 3 2 0;
> #P pop;
>
>
>
--
www.centuryofnoise.com
www.perevillez.com
>"multi-line" abstraction come from the St.ools library by >Stefan Tiedje
Here's another way, simpler & faster, for a multi-point line abstraction :
arg 1 is target
arg 2 is grain
Quote: derrickgiscloux wrote on Sun, 05 August 2007 21:43
----------------------------------------------------
> Here's another way, simpler & faster, for a multi-point line abstraction :
> arg 1 is target
> arg 2 is grain
cool patch, and indeed simpler and faster. only thing is the crazy way you use those patch cords, is it intentional or a browser thing? But hey, as long as it works i'm not complaining...
j
dGarden schrieb:
> hi, I think this "multi-line" abstraction come from the St.ools
> library by Stefan Tiedje and its real name is "lines". Here is the
> help file :
Yes, its an older version of it. The newer version will compensate for
the duration errors the normal line is known for as well, that means it
will end correctly at the accumulated times...
Stefan
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com