waveform~ feature request: clipdraw for horizontal axis

Nov 25, 2007 at 9:55pm

waveform~ feature request: clipdraw for horizontal axis

I am using 2d.wave to draw waves with the linked buffer divided into
10 parts to get 10 waves. I set waveform~ to show only one wave at a
time (1/10th of the buffer). However, when drawing, if the mouse goes
beyond left or right waveform~’s border, the previous or next wave is
modified along with the current one. Have a look at the patcher
below. Something like clipdraw but for the horizontal axis would be
nice to prevent this. Pleeease Uncle Cycling’!

Roald Baudoux

#P button 802 133 15 0;
#P window setfont “Sans Serif” 9.;
#P flonum 800 180 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 723 182 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 906 410 66 196617 sampstoms~;
#P newex 1000 422 32 196617 * 10;
#P window linecount 2;
#P message 765 78 215 196617 set table_ondes , mode draw , clipdraw
1 , unit phase , grid 0.025 , offset 0. , norulerclick 1;
#P window linecount 1;
#P newex 722 150 29 196617 * 1.;
#P newex 958 497 66 196617 prepend size;
#P flonum 958 478 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 958 454 66 196617 sampstoms~;
#P newex 1000 392 72 196617 loadmess 512;
#P newex 958 517 100 196617 buffer~ table_ondes;
#P newex 765 57 48 196617 loadbang;
#P user ubumenu 677 117 36 196617 0 1 1 0;
#X add 1;
#X add 2;
#X add 3;
#X add 4;
#X add 5;
#X add 6;
#X add 7;
#X add 8;
#X add 9;
#X add 10;
#X prefix_set 0 0 0;
#P user waveform~ 707 215 415 146 3 9;
#W mode draw;
#W mouseoutput continuous;
#W clipdraw 1;
#W unit phase;
#W norulerclick 1;
#W grid 0.025;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P comment 658 101 72 196617 wave to draw;
#P comment 810 165 72 196617 display length;
#P connect 13 1 10 1;
#P connect 13 1 15 0;
#P connect 13 1 2 1;
#P connect 10 0 14 0;
#P connect 16 0 15 0;
#P connect 14 0 2 0;
#P connect 11 0 2 0;
#P fasten 3 0 10 0 682 145 727 145;
#P connect 4 0 11 0;
#P connect 15 0 2 1;
#P connect 6 0 13 0;
#P connect 12 0 7 0;
#P fasten 7 1 8 0 1019 474 963 474;
#P connect 8 0 9 0;
#P connect 9 0 5 0;
#P connect 6 0 12 0;
#P window clipboard copycount 17;

#34750

You must be logged in to reply to this topic.