Forums > MaxMSP

Matrixctrl~ Row Shifts

March 5, 2006 | 12:03 pm

I am trying to create a matrix controlled step sequence additive/subtractive synth. I want the notes to range over 5 octaves (C0 – C5) but dont want all the notes to be displayed at once. I want just 5 rows displayed at a time then a switch to go up or down octaves but just have those 5 corresponding rows showing. Is there a way to shift the rows which are being displayed? I intend to map the row value to a midi note value so it plays the corresponding frequency into the synth.

max v2;
#N vpatcher 15 55 834 554;
#P window setfont "Sans Serif" 9.;
#P flonum 60 288 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 47 249 44 9109513 zl slice 1;
#P newex 13 225 44 9109513 zl slice 1;
#P user multiSlider 422 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 407 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 390 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 375 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 359 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 342 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 342 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 327 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 311 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 294 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 279 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 263 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 246 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 246 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 231 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 215 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 198 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 182 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 167 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 151 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 134 222 18 32 0. 1. 1 2937 15 0 0 3 0 100 1;
#M frgb 198 255 247;
#M brgb 0 0 0;
#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 matrixctrl 134 66 323 141 matris.psd MatrixDefaultBkgnd.pct 323 141 16 5 20 27 16 5 1 1 34 2 5120 0;
#P comment 103 190 20 9109513 C0;
#P fasten 1 0 23 0 139 219 18 219;
#P connect 23 1 24 0;
#P fasten 24 0 25 0 52 278 65 278;
#P pop;


Viewing 1 post (of 1 total)