Forums > MaxMSP

how to speed up redraw of waveform

March 30, 2007 | 8:08 pm

hi

i’ve found i can make waveform redraw pretty fast and smoothly by scripting a small object to move around over the top of it. does anyone know of a way to do this without having to use these little animations? i keep losing them

heres an example

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 107 91 48 196617 loadbang;
#P toggle 20 276 15 0;
#P newex 76 255 29 196617 gate;
#P newex 149 293 34 196617 % 10;
#P newex 149 312 37 196617 + 143;
#P user panel 204 149 19 5;
#X brgb 255 255 255;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P objectname qop;
#P message 151 333 118 196617 script move qop 204 $1;
#N thispatcher;
#Q end;
#P newobj 152 356 61 196617 thispatcher;
#P user ezdac~ 328 286 372 319 0;
#P user uslider 83 140 25 90 128 1 0 0;
#P newex 273 47 128 196617 scale 1 127 0.5 50 1.06;
#P newex 290 72 29 196617 t b f;
#P newex 283 186 34 196617 kink~;
#P newex 260 212 40 196617 cycle~;
#P newex 277 137 43 196617 /~ 512;
#P newex 327 107 40 196617 count~;
#P message 108 120 33 196617 set v;
#P newex 282 239 45 196617 poke~ v;
#P newex 356 235 77 196617 buffer~ v 11.7;
#P user waveform~ 109 140 142 106 3 9;
#W mode none;
#W snap grid;
#W mouseoutput continuous;
#W unit samples;
#W grid 16.;
#W ticks 0;
#W labels 0;
#W vlabels 0;
#W vticks 0;
#W bpm 120. 4.;
#W frgb 200 200 0;
#W brgb 100 100 0;
#W rgb2 180 180 0;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 0 0 0;
#W rgb7 0 0 0;
#P window linecount 2;
#P comment 18 296 100 196617 turn on and off to compare redrawing;
#P connect 11 0 18 1;
#P hidden connect 11 0 10 0;
#P connect 9 0 5 0;
#P connect 9 1 8 1;
#P connect 5 0 6 0;
#P connect 5 0 3 1;
#P connect 8 0 7 1;
#P connect 10 0 9 0;
#P connect 6 0 8 0;
#P connect 7 0 3 0;
#P connect 14 0 13 0;
#P connect 16 0 14 0;
#P connect 17 0 16 0;
#P connect 18 0 17 0;
#P connect 4 0 1 0;
#P connect 20 0 4 0;
#P connect 19 0 18 0;
#P window clipboard copycount 21;



_j
March 30, 2007 | 9:59 pm

you could put ";max refresh" in a message box. I think your way of doing it is better, though. sending a refresh to max causes the whole screen to wig out (on XP).

jamez



grg
March 31, 2007 | 10:14 am

Am 30.03.2007 um 22:08 schrieb bin ray:
> i’ve found i can make waveform redraw pretty fast and smoothly by
> scripting a small object to move around over the top of it. does
> anyone know of a way to do this without having to use these little
> animations?

buftime 30


March 31, 2007 | 1:24 pm

>buftime 30

exactly what i needed.but how did you know that? i can’t find it documented anywhwere…..does that message apply to other objects?


March 31, 2007 | 3:21 pm



_j
March 31, 2007 | 4:00 pm

<3 secret messages.... =D


March 31, 2007 | 10:40 pm

Quote: jamez wrote on Sat, 31 March 2007 10:00
—————————————————-
> <3 secret messages.... =D
—————————————————-

excuse me but the guy is right – this feature is undocumented. :)


April 10, 2007 | 7:05 am


April 10, 2007 | 9:08 pm

How the hell did you find that message??? Thats wonderful. Doesn’t seem to help with the audio on tho hmm…


April 10, 2007 | 11:20 pm

Stefans suggestion of banging vlabels on and off works just as well….probably cheaper


April 14, 2007 | 2:31 pm

bin ray schrieb:
> Stefans suggestion of banging vlabels on and off works just as
> well….probably cheaper

banging it only on works as well actually…

Stefan


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


Viewing 11 posts - 1 through 11 (of 11 total)