Forums > MaxMSP

slicer..

October 4, 2007 | 2:11 pm

Hi, Im trying to make this slicer unit work. Im using peek~
with a uzi for the slice per samples but I dont now how to tell the buffer to play the selected slice. need some help plx

max v2;
#N vpatcher 9 44 928 661;
#P origin 3 0;
#P window setfont Monaco 9.;
#P flonum 487 373 125 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P number 487 325 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Monaco 9.;
#P flonum 487 424 125 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 334 310 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 487 400 70 196617 peek~ reslice;
#P newex 487 348 60 196617 peek~ slice;
#P newex 457 286 40 196617 uzi;
#P flonum 202 358 97 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Monaco 9.;
#P newex 213 235 58 262153 delay 20;
#P window setfont "Sans Serif" 9.;
#P message 212 255 17 196617 1.;
#P window setfont Monaco 9.;
#P newex 212 276 53 262153 t b f f;
#P newex 202 297 41 262153 / 16.;
#P flonum 202 217 88 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P message 224 382 39 196617 set $1;
#P newex 202 404 68 196617 buffer~ slice;
#P window linecount 2;
#P comment 212 324 52 196617 samples per slice;
#P flonum 106 332 97 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Monaco 14.;
#P flonum 116 247 56 14 1. 0 5 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Monaco 9.;
#P window linecount 1;
#P newex 116 276 53 262153 t b f f;
#P newex 106 297 41 262153 / 16.;
#P flonum 106 217 88 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 28 93 40 262153 clear;
#P hidden newex 28 73 58 262153 loadbang;
#P window setfont "Sans Serif" 9.;
#P newex 106 190 66 196617 mstosamps~;
#B color 5;
#P message 198 186 110 196617 "0003 1-Audio.wav";
#P newex 198 167 62 196617 prepend set;
#P window setfont Monaco 9.;
#P message 73 93 52 262153 replace;
#P newex 28 140 105 262153 info~ sample;
#P newex 28 113 94 262153 buffer~ sample;
#P hidden connect 6 0 7 0;
#P hidden connect 2 0 0 0;
#P hidden connect 7 0 0 0;
#P connect 0 1 1 0;
#P connect 1 6 5 0;
#P connect 5 1 8 0;
#P connect 8 0 9 0;
#P connect 10 0 9 0;
#P connect 9 0 12 0;
#P connect 11 0 10 0;
#P connect 10 1 9 1;
#P fasten 1 7 3 0 124 162 203 162;
#P connect 3 0 4 0;
#P connect 5 1 16 0;
#P connect 16 0 17 0;
#P connect 18 0 17 0;
#P connect 17 0 21 0;
#P connect 15 0 14 0;
#P connect 20 0 19 0;
#P connect 19 0 18 0;
#P connect 16 0 20 0;
#P connect 21 0 15 0;
#P connect 18 1 17 1;
#P connect 11 0 25 0;
#P connect 25 0 22 0;
#P connect 11 0 22 1;
#P connect 22 2 27 0;
#P connect 27 0 23 0;
#P connect 23 0 28 0;
#P connect 24 0 26 0;
#P pop;


October 4, 2007 | 2:30 pm

First, you’re misusing the set message for buffer~. That is used to
change the name of the buffer. If you want buffer to play something,
you need play~ or wave~ or something like that. I’m not sure exactly
what you’re trying to do, but you could easily tell play~ to play any
"slice" that you like using the length in ms multiplied by which slice
you want (an int). There are few more objects needed in that, but you
can find them in the play~ helpfile.

Keith

On 10/4/07, i.te wrote:
>
> Hi, Im trying to make this slicer unit work. Im using peek~
> with a uzi for the slice per samples but I dont now how to tell the buffer to play the selected slice. need some help plx
>
>
> max v2;
> #N vpatcher 9 44 928 661;
> #P origin 3 0;
> #P window setfont Monaco 9.;
> #P flonum 487 373 125 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont "Sans Serif" 9.;
> #P number 487 325 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont Monaco 9.;
> #P flonum 487 424 125 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
> #P button 334 310 15 0;
> #P window setfont "Sans Serif" 9.;
> #P newex 487 400 70 196617 peek~ reslice;
> #P newex 487 348 60 196617 peek~ slice;
> #P newex 457 286 40 196617 uzi;
> #P flonum 202 358 97 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont Monaco 9.;
> #P newex 213 235 58 262153 delay 20;
> #P window setfont "Sans Serif" 9.;
> #P message 212 255 17 196617 1.;
> #P window setfont Monaco 9.;
> #P newex 212 276 53 262153 t b f f;
> #P newex 202 297 41 262153 / 16.;
> #P flonum 202 217 88 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont "Sans Serif" 9.;
> #P message 224 382 39 196617 set $1;
> #P newex 202 404 68 196617 buffer~ slice;
> #P window linecount 2;
> #P comment 212 324 52 196617 samples per slice;
> #P flonum 106 332 97 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont Monaco 14.;
> #P flonum 116 247 56 14 1. 0 5 4 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont Monaco 9.;
> #P window linecount 1;
> #P newex 116 276 53 262153 t b f f;
> #P newex 106 297 41 262153 / 16.;
> #P flonum 106 217 88 9 0 0 0 4 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 28 93 40 262153 clear;
> #P hidden newex 28 73 58 262153 loadbang;
> #P window setfont "Sans Serif" 9.;
> #P newex 106 190 66 196617 mstosamps~;
> #B color 5;
> #P message 198 186 110 196617 "0003 1-Audio.wav";
> #P newex 198 167 62 196617 prepend set;
> #P window setfont Monaco 9.;
> #P message 73 93 52 262153 replace;
> #P newex 28 140 105 262153 info~ sample;
> #P newex 28 113 94 262153 buffer~ sample;
> #P hidden connect 6 0 7 0;
> #P hidden connect 2 0 0 0;
> #P hidden connect 7 0 0 0;
> #P connect 0 1 1 0;
> #P connect 1 6 5 0;
> #P connect 5 1 8 0;
> #P connect 8 0 9 0;
> #P connect 10 0 9 0;
> #P connect 9 0 12 0;
> #P connect 11 0 10 0;
> #P connect 10 1 9 1;
> #P fasten 1 7 3 0 124 162 203 162;
> #P connect 3 0 4 0;
> #P connect 5 1 16 0;
> #P connect 16 0 17 0;
> #P connect 18 0 17 0;
> #P connect 17 0 21 0;
> #P connect 15 0 14 0;
> #P connect 20 0 19 0;
> #P connect 19 0 18 0;
> #P connect 16 0 20 0;
> #P connect 21 0 15 0;
> #P connect 18 1 17 1;
> #P connect 11 0 25 0;
> #P connect 25 0 22 0;
> #P connect 11 0 22 1;
> #P connect 22 2 27 0;
> #P connect 27 0 23 0;
> #P connect 23 0 28 0;
> #P connect 24 0 26 0;
> #P pop;
>
>


Keith Manlove
(512) 825-9176
keithmanlove@gmail.com


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