Line object that doesn't drop numbers

Aug 20, 2007 at 2:40pm

Line object that doesn't drop numbers

Is there an object (or patcher or whatever) that is like line but doesn’t skip or drop any numbers?

#33327
Aug 20, 2007 at 3:06pm

You can get line to not skip numbers. The trick is to have the time grain, as well as your ramp and destination values match up.

If you set the time grain to 1ms, and then tell line to go from 0 to 100 in 100 ms, it will keep every number.

Of course, if you tell line to go from 0 to 100 in 10 ms, its going to have to drop some numbers because its impossible to count from 0 to 100 in 10 ms at 1ms intervals.

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 260 170 55 196617 print drop;
#P button 260 40 15 0;
#P message 334 72 14 196617 1;
#P message 260 72 56 196617 0 , 100 10;
#P newex 260 128 40 196617 line;
#P comment 323 173 77 196617 Drops numbers;
#P comment 122 76 59 196617 Time Grain;
#P newex 35 171 58 196617 print keep;
#P button 35 41 15 0;
#P message 109 73 14 196617 1;
#P message 35 73 62 196617 0 , 100 100;
#P newex 35 129 40 196617 line;
#P comment 98 174 102 196617 Keeps every number;
#P connect 11 0 9 0;
#P fasten 11 0 10 0 265 63 339 63;
#P connect 8 0 12 0;
#P connect 9 0 8 0;
#P fasten 10 0 8 2 339 107 295 107;
#P connect 4 0 2 0;
#P fasten 4 0 3 0 40 64 114 64;
#P connect 1 0 5 0;
#P fasten 3 0 1 2 114 108 70 108;
#P connect 2 0 1 0;
#P window clipboard copycount 13;

#110884
Aug 20, 2007 at 4:15pm

True, but what if your grain needs to be shorter than a ms?

#110885
Aug 20, 2007 at 4:29pm

there’s always line~.

On Aug 20, 2007, at 12:15 PM, Aaron Miller wrote:

>
> True, but what if your grain needs to be shorter than a ms?
>

#110886
Aug 20, 2007 at 5:01pm

so maybe work with signal…
no ?

line~

:-)

#110887
Aug 21, 2007 at 1:30am

Quote: aaron wrote on Mon, 20 August 2007 18:15
—————————————————-
> True, but what if your grain needs to be shorter than a ms?
—————————————————-

Then set the grain to something shorter than 1.0 ms. The grain input claims to grok floats.

But doing submillisecond stuff in Max (as opposed to MSP) can be pushing your luck.

#110888
Aug 21, 2007 at 8:53am

Peter Castine skrev:
> Quote: aaron wrote on Mon, 20 August 2007 18:15
> —————————————————-
>
>> True, but what if your grain needs to be shorter than a ms?
>>
> —————————————————-
>
> Then set the grain to something shorter than 1.0 ms. The grain input claims to grok floats.
It does grok floats, but it doesn’t work below 1 ms.
andreas.

#110889
Aug 23, 2007 at 8:32am

Peter Castine schrieb:
> Then set the grain to something shorter than 1.0 ms. The grain input
> claims to grok floats.

Did you try this? Doesn’t work for me, a grain of 0.1 ms still seems to
last 1 ms…

Another approach would be to bang a counter with a metro, but less than
1 ms will have the same problem…

But this should do it…

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 96 220 32 196617 abs;
#P newex 96 199 45 196617 t i i;
#P newex 131 240 26 196617 + 1;
#P newex 131 220 26 196617 < 0;
#P newex 131 265 38 196617 gate 2;
#P newex 159 302 26 196617 !-;
#P message 57 53 47 196617 30 , 0 5;
#P newex 57 97 51 196617 route int;
#P message 68 74 44 196617 0 , 30 5;
#P newex 131 343 50 196617 print;
#P newex 76 147 70 196617 t i i i i;
#P newex 131 302 26 196617 +;
#P newex 96 240 32 196617 uzi;
#P newex 76 125 50 196617 line 0 1;
#P newex 96 176 30 196617 -;
#P fasten 7 0 0 1 62 172 121 172;
#P fasten 7 0 5 0 62 332 136 332;
#P fasten 7 0 3 1 62 292 152 292;
#P fasten 7 0 9 1 62 292 180 292;
#P fasten 4 0 3 1 81 292 152 292;
#P fasten 4 0 9 1 81 292 180 292;
#P connect 9 0 5 0;
#P connect 10 1 9 0;
#P connect 14 0 2 0;
#P connect 13 0 14 0;
#P connect 12 0 10 0;
#P connect 11 0 12 0;
#P connect 13 1 11 0;
#P connect 10 0 3 0;
#P fasten 2 2 10 1 123 261 164 261;
#P connect 0 0 13 0;
#P connect 7 1 1 0;
#P connect 6 0 7 0;
#P connect 8 0 7 0;
#P connect 4 2 0 0;
#P connect 1 0 4 0;
#P connect 4 1 0 1;
#P connect 3 0 5 0;
#P window clipboard copycount 15;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#110890

You must be logged in to reply to this topic.