Forums > MaxMSP

How can I scale the output of the graphical breakpoint object?

March 16, 2008 | 9:20 pm

Is it possible to scale the output of one graphical breakpoint editor so that the scaled data can then be fed into another graphical breakpoint editor?

max v2;
#N vpatcher 366 143 1094 584;
#P window setfont "Sans Serif" 12.;
#P window linecount 3;
#P comment 421 222 211 196620 In other words the if y = 500 on the object above y= 1000 on the object below;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 341 198 48 196617 t b clear;
#P message 341 221 33 196617 dump;
#P newex 278 198 60 196617 route dump;
#P message 155 217 31 196617 clear;
#P message 152 51 31 196617 clear;
#P message 77 51 62 196617 domain 500;
#P message 20 52 53 196617 range 0 1;
#P message 80 232 65 196617 domain 1000;
#P message 23 233 51 196617 range 0 2;
#P user function 155 274 355 374 1 1 0 0;
#X frgb 82 82 82;
#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 domain 1000.;
#X range 0. 2.;
#X done;
#P user function 152 87 352 187 1 1 0 0;
#X frgb 82 82 82;
#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 domain 500.;
#X range 0. 1.;
#X done;
#P window setfont "Sans Serif" 20.;
#P window linecount 5;
#P comment 406 80 250 196628 How can I scale the output of one graphical breakpoint object so it scales to fit the graphical breakpoint object below?;
#P fasten 10 0 1 0 346 241 402 241 402 83 157 83;
#P connect 7 0 1 0;
#P connect 6 0 1 0;
#P connect 5 0 1 0;
#P fasten 9 1 2 0 333 267 160 267;
#P fasten 11 1 2 0 384 262 160 262;
#P connect 8 0 2 0;
#P connect 4 0 2 0;
#P connect 3 0 2 0;
#P connect 1 2 9 0;
#P connect 1 3 11 0;
#P connect 11 0 10 0;
#P pop;

Many thanks,

Rhys


March 16, 2008 | 9:42 pm

Is this what you’re after?

Zachary

max v2;
#N vpatcher 10 59 736 593;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 215 306 33 196617 dump;
#P newex 303 462 32 196617 print;
#P flonum 364 259 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 310 259 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 291 303 64 196617 pack 0. 0.;
#P newex 291 280 29 196617 * 2.;
#P newex 345 280 29 196617 * 2.;
#P newex 291 239 64 196617 unpack 0. 0.;
#P window setfont "Sans Serif" 12.;
#P window linecount 3;
#P comment 445 223 211 196620 In other words the if y = 500 on the object above y= 1000 on the object below;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 365 199 48 196617 t b clear;
#P message 365 222 33 196617 dump;
#P newex 302 199 60 196617 route dump;
#P message 177 306 31 196617 clear;
#P message 176 53 31 196617 clear;
#P message 101 53 62 196617 domain 500;
#P message 44 53 53 196617 range 0 1;
#P message 102 306 65 196617 domain 1000;
#P message 45 306 51 196617 range 0 2;
#P user function 177 347 377 447 1 1 0 0;
#X frgb 82 82 82;
#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 26.595743 0.213333 0;
#X add 191.489349 1.226667 0;
#X add 319.148926 0.48 0;
#X add 462.76593 1.12 0;
#X add 1000. 0.293333 0;
#X domain 1000.;
#X range 0. 2.;
#X done;
#P user function 176 88 376 188 1 1 0 0;
#X frgb 82 82 82;
#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 13.297872 0.106667 0;
#X add 95.744675 0.613333 0;
#X add 159.574463 0.24 0;
#X add 231.382965 0.56 0;
#X add 500. 0.146667 0;
#X domain 500.;
#X range 0. 1.;
#X done;
#P window setfont "Sans Serif" 20.;
#P window linecount 5;
#P comment 430 81 250 196628 How can I scale the output of one graphical breakpoint object so it scales to fit the graphical breakpoint object below?;
#P fasten 5 0 1 0 49 78 181 78;
#P fasten 6 0 1 0 106 78 181 78;
#P connect 7 0 1 0;
#P fasten 10 0 1 0 370 242 426 242 426 84 181 84;
#P connect 20 0 2 0;
#P fasten 16 0 2 0 296 333 182 333;
#P fasten 3 0 2 0 50 334 182 334;
#P fasten 4 0 2 0 107 334 182 334;
#P connect 8 0 2 0;
#P fasten 11 1 2 0 408 339 182 339;
#P fasten 9 1 13 0 357 227 296 227;
#P connect 13 0 15 0;
#P connect 15 0 16 0;
#P connect 1 2 9 0;
#P connect 2 2 19 0;
#P connect 17 0 15 1;
#P connect 13 1 14 0;
#P connect 14 0 16 1;
#P connect 18 0 14 1;
#P connect 1 3 11 0;
#P connect 11 0 10 0;
#P pop;


March 16, 2008 | 9:51 pm

Aye!

I’ve put a scale object in place of the multipliers and it is now precisely what I am after.

Many thanks to you kind sir.

Rhys


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