Forums > Jitter

jitter/float32 exponential scale

June 6, 2007 | 7:16 pm

Hi!

Could someone direct me to a simple way of scaling the contents of a
float32 matrix in an exponential way?

I have attached a small patch that does the job for single floats,
but need to do the same with lists or matrices.

many thanks
hiaz


June 6, 2007 | 9:32 pm

On 6 Jun 2007, at 20:16, hiaz wrote:

> Hi!
>
> Could someone direct me to a simple way of scaling the contents of
> a float32 matrix in an exponential way?
>
> I have attached a small patch that does the job for single floats,
> but need to do the same with lists or matrices.
>
> many thanks
> hiaz

sorry, here is the patch

max v2;
#N vpatcher 144 125 543 460;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 116 99 60 196617 loadmess 3;
#P user multiSlider 60 178 51 81 0. 1. 1 2681 47 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 60 59 51 81 0. 1. 1 2681 47 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P flonum 116 125 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 395 239 1253 855;
#P inlet 263 41 15 0;
#P outlet 106 484 15 0;
#P inlet 137 38 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 55 184 23 196617 1.;
#P newex 55 163 29 196617 t b f;
#P newex 184 140 27 196617 1.;
#P newex 184 113 27 196617 t b f;
#P newex 172 256 27 196617 1.;
#P newex 184 226 27 196617 t b f;
#P newex 106 386 27 196617 + 0.;
#P newex 155 324 27 196617 * 1.;
#P newex 172 294 39 196617 – 0.;
#P newex 184 195 38 196617 pow 1.;
#P newex 55 324 27 196617 * 1.;
#P newex 82 294 27 196617 – 1.;
#P newex 82 270 38 196617 pow 1.;
#P newex 82 245 27 196617 + 1.;
#P newex 184 168 27 196617 – 0.;
#P newex 55 206 29 196617 – 0.;
#P newex 55 135 27 196617 > 0.;
#P connect 17 0 0 0;
#P connect 0 0 15 0;
#P connect 15 0 16 0;
#P connect 16 0 1 0;
#P connect 1 0 6 0;
#P connect 5 0 6 1;
#P connect 15 1 1 1;
#P connect 17 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P connect 6 0 10 0;
#P connect 10 0 18 0;
#P connect 19 0 4 1;
#P connect 9 0 10 1;
#P connect 0 0 9 0;
#P connect 11 0 12 0;
#P connect 12 0 8 0;
#P connect 8 0 9 1;
#P connect 17 0 13 0;
#P connect 13 0 14 0;
#P connect 14 0 2 0;
#P connect 2 0 7 0;
#P connect 7 0 11 0;
#P connect 13 1 2 1;
#P connect 11 1 8 1;
#P connect 19 0 7 1;
#P pop;
#P newobj 60 151 66 196617 p bias;
#P connect 2 0 0 0;
#P connect 0 0 3 0;
#P connect 4 0 1 0;
#P connect 1 0 0 1;
#P pop;


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