Forums > MaxMSP

grooveduck when sample start position is changed.


nit
November 20, 2008 | 12:06 am

is there an object or maybe a simple solution to let groove duck a few ms when changing the sample start position?

i tried this with grooveduck but it does not seem to work?


November 20, 2008 | 8:11 am

take a look at [line~.help].

jrp


November 20, 2008 | 10:11 pm

Ya, line~ is great. I prefer curve~ for the exponential/logarithmic possibilities but they are both essentially used for the same purpose. Since I created a solution like this long ago(with curve~) I figured i’d post it here for ya:

– Pasted Max Patch, click to expand. –

Keep in mind, line~ and curve~ are not sample-accurate so you’ll have to tweak your scheduler settings(put it in overdrive, etc.) or else check out zigzag~(used in tandem with sah~ and a proper sample-accurate clock like phasor~) or similar objects for sample-accurate solutions(if you need a zigzag~ solution, ask me and i’ll direct you to a post where i shared something like that here).

Hope it helps.


November 21, 2008 | 5:57 pm

RabidRaja, do you happen to have a Max 4.63 verion of this?

Thank you much,

jrp


November 22, 2008 | 12:23 am

Sure, just had to make it real quick, hope it helps:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 457 280 111 196617 buffer~ tester 1000 2;
#P message 457 261 43 196617 replace;
#P comment 346 263 108 196617 2. Load SoundFile ->;
#P comment 237 297 108 196617 < -1. Turn On Audio;
#P user ezdac~ 194 286 238 319 0;
#P newex 230 255 35 196617 *~ 1.;
#P newex 194 255 35 196617 *~ 1.;
#P message 299 185 50 196617 5000;
#P newex 299 151 62 196617 prepend set;
#P user scope~ 459 176 559 226 128 3 64 0. 1. 0 0. 0 0. 198 0 0 0 0 0 0;
#N vpatcher 20 74 302 362;
#N comlet bang out (to trigger messaging) at interruption midpoint;
#P outlet 98 230 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 68 203 40 196617 t b 0 b;
#N comlet envelope/ramp signal out;
#P outlet 184 216 15 0;
#P newex 142 182 29 196617 gate;
#P newex 129 152 42 196617 curve~;
#N comlet interruption-envelope trigger;
#P inlet 207 37 15 0;
#P message 129 122 67 196617 1 , 0 $1 -0.5;
#P window linecount 0;
#P message 64 122 62 196617 0 , 1 $1 0.5;
#P window linecount 1;
#P newex 129 92 27 196617 10.;
#P newex 78 98 27 196617 10.;
#P window linecount 0;
#P newex 23 64 31 196617 t b 1;
#N comlet interruption-envelope trigger;
#P inlet 23 39 15 0;
#P connect 0 0 1 0;
#P fasten 2 0 4 0 83 118 69 118;
#P fasten 8 0 10 0 147 201 73 201;
#P fasten 10 0 2 0 73 229 35 229 35 97 83 97;
#P fasten 6 0 2 1 212 64 100 64;
#P connect 10 2 11 0;
#P fasten 1 0 3 0 28 86 134 86;
#P connect 3 0 5 0;
#P fasten 4 0 7 0 69 141 134 141;
#P connect 5 0 7 0;
#P fasten 10 1 8 0 88 224 60 224 60 178 147 178;
#P fasten 1 1 8 0 49 180 147 180;
#P fasten 6 0 3 1 212 69 151 69;
#P connect 7 1 8 1;
#P fasten 7 0 9 0 134 173 189 173;
#P pop;
#P newobj 374 136 72 196617 p siginterrupt;
#P comment 470 99 108 196617 < -duck/ramp time(ms);
#P number 436 97 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 299 102 64 196617 speedlim 10;
#P number 299 71 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 387 48 34 196617 5000;
#P message 351 48 34 196617 2000;
#P message 315 48 34 196617 1000;
#P message 299 48 14 196617 0;
#P newex 194 220 82 196617 groove~ tester 2;
#P newex 155 185 24 196617 sig~;
#P newex 118 162 32 196617 t 0 1;
#P newex 118 141 32 196617 sel 1;
#P toggle 118 123 15 0;
#P comment 45 124 76 196617 3. start/stop->;
#P message 259 73 20 196617 10;
#P message 194 73 64 196617 loopinterp 1;
#P message 156 73 37 196617 loop 1;
#P newex 157 53 48 196617 loadbang;
#P window linecount 5;
#P comment 50 31 104 196617 1a. Double-click loadbang to make sure patch is initialized -> (if copying from pasted text);
#P window linecount 1;
#P comment 333 71 100 196617 < -4. start position;
#P connect 7 0 8 0;
#P connect 8 0 9 0;
#P fasten 9 1 10 0 145 182 160 182;
#P fasten 8 1 10 0 145 159 160 159;
#P connect 2 0 3 0;
#P connect 2 0 4 0;
#P fasten 9 0 11 0 123 218 199 218;
#P fasten 23 0 11 0 304 204 199 204;
#P connect 4 0 11 0;
#P connect 3 0 11 0;
#P fasten 10 0 11 0 160 214 199 214;
#P connect 11 0 24 0;
#P connect 24 0 26 0;
#P fasten 20 1 24 1 441 245 224 245;
#P connect 25 0 26 1;
#P connect 11 1 25 0;
#P fasten 20 1 25 1 441 250 260 250;
#P connect 2 0 5 0;
#P connect 15 0 16 0;
#P connect 14 0 16 0;
#P connect 13 0 16 0;
#P connect 12 0 16 0;
#P connect 16 0 17 0;
#P connect 17 0 22 0;
#P fasten 20 0 23 0 379 178 304 178;
#P connect 22 0 23 0;
#P fasten 18 0 17 1 441 117 402 117 402 99 358 99;
#P fasten 17 0 20 0 304 127 379 127;
#P fasten 5 0 18 0 264 93 441 93;
#P connect 18 0 20 1;
#P connect 29 0 30 0;
#P connect 20 1 21 0;
#P window clipboard copycount 31;


November 22, 2008 | 9:56 pm

appreciate your "backwards compatibility mode", rabidraja, thanx a bunch!

jrp



nit
November 24, 2008 | 11:03 am

tanks i think i’ll come out.


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