Forums > MaxMSP

Urgent! – Nasty Spike Syndrome (NSS)

November 5, 2007 | 6:07 pm

Hey there,

Stealth Maestro here, from the glass maker project/thread that’s been active for the past week or so. I’m ready to present my baby to the world, when i discover a problem which I had somehow overlooked in the past!:

When recording and looping, I’m getting this nasty split-second spike at the end of the clip. I get the feeling that there’s an object designed to quell such an issue, but i wouldn’t know what it is. I’ve simplified the patch to isolate the problem. The project is due in t-minus 16 hours. I’d appreciate any help from you fine people that i can get! Thanks!

#P button 31 594 45 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 777 44 976 360;
#P window setfont "Sans Serif" 9.;
#P newex 36 170 51 196617 s Loopify;
#P outlet 7 171 15 0;
#P inlet 7 26 15 0;
#P inlet 59 25 15 0;
#P inlet 34 25 15 0;
#P newex 7 127 37 196617 metro;
#P number 34 92 75 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 34 57 35 196617 timer;
#P connect 5 0 2 0;
#P connect 2 0 6 0;
#P connect 3 0 0 0;
#P connect 0 0 1 0;
#P connect 1 0 2 1;
#P fasten 2 0 7 0 12 162 41 162;
#P connect 4 0 0 1;
#P pop;
#P newobj 117 550 65 196617 p Loop Pedal;
#P toggle 117 521 15 0;
#P button 171 521 15 0;
#P button 144 521 15 0;
#P toggle 83 598 15 0;
#N vpatcher 974 128 1260 521;
#P origin 0 14;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P message 11 242 86 196617 0 , 30000 30000;
#P toggle 60 195 15 0;
#P newex 60 217 32 196617 sel 0;
#P window linecount 1;
#P message 131 313 56 196617 0. , 1. 400;
#P newex 131 332 40 196617 line 0.;
#P newex 114 354 27 196617 *~;
#P newex 114 264 41 196617 line~ 0;
#P newex 114 290 90 196617 play~ BrentvoiceI;
#P window linecount 0;
#P message 28 312 56 196617 0. , 1. 400;
#P newex 28 331 40 196617 line 0.;
#P newex 11 353 27 196617 *~;
#P inlet 47 13 15 0;
#P number 73 13 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 28 114 55 196617 pipe 250;
#P message 28 84 14 196617 0;
#P message 6 84 14 196617 1;
#P window linecount 1;
#P newex 6 36 32 196617 sel 1;
#P newex 82 169 51 196617 r Loopify;
#P inlet 137 13 15 0;
#P outlet 11 384 15 0;
#P button 60 170 15 0;
#P user number~ 6 185 45 200 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 11 263 41 196617 line~ 0;
#P message 114 242 86 196617 0 , 30000 30000;
#P newex 11 289 90 196617 play~ BrentvoiceI;
#P newex 6 147 101 196617 record~ BrentvoiceI;
#P inlet 6 12 15 0;
#P connect 0 0 10 0;
#P connect 10 0 11 0;
#P connect 11 0 1 0;
#P connect 13 0 1 0;
#P fasten 15 0 1 0 52 105 11 105;
#P connect 1 0 5 0;
#P fasten 24 0 26 0 16 234;
#P connect 26 0 4 0;
#P connect 4 0 2 0;
#P connect 2 0 16 0;
#P connect 16 0 7 0;
#P fasten 21 0 7 0 119 376 16 376;
#P connect 10 1 12 0;
#P connect 12 0 13 0;
#P fasten 24 0 18 0 65 240 102 240 102 310 33 310;
#P connect 18 0 17 0;
#P connect 17 0 16 1;
#P fasten 8 0 6 0 142 166 65 166;
#P connect 6 0 25 0;
#P fasten 9 0 25 0 87 191 65 191;
#P connect 25 0 24 0;
#P connect 14 0 13 1;
#P fasten 24 1 3 0 119 234;
#P connect 3 0 20 0;
#P connect 20 0 19 0;
#P connect 19 0 21 0;
#P fasten 24 1 23 0 87 237 208 237 208 309 136 309;
#P connect 23 0 22 0;
#P connect 22 0 21 1;
#P pop;
#P newobj 83 663 62 196617 p Loop Bank;
#P window setfont "Sans Serif" 14.;
#P comment 108 494 100 196622 Set the pace;
#P fasten 6 0 7 0 122 586 36 586;
#P fasten 4 0 2 0 176 586 156 586 156 586 88 586;
#P fasten 3 0 2 0 149 546 103 546 103 586 88 586;
#P connect 2 0 1 0;
#P fasten 4 0 5 0 176 545 190 545 190 517 122 517;
#P connect 5 0 6 0;
#P connect 3 0 6 1;
#P connect 4 0 6 2;
#P window clipboard copycount 8;

Stealth Maestro

ps – if you answer this question, you’ll be an awesome person… but if you could also tell me how to make your wires and/or objects invisible, your status automatically elevates from ‘awesome’ to ‘godly’


November 5, 2007 | 6:09 pm

Sorry!

Here’s the real patch:

max v2;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 81 164 31 196617 adc~;
#P newex 127 271 31 196617 dac~;
#P button 176 165 45 0;
#N vpatcher 777 44 976 360;
#P window setfont "Sans Serif" 9.;
#P newex 36 170 51 196617 s Loopify;
#P outlet 7 171 15 0;
#P inlet 7 26 15 0;
#P inlet 59 25 15 0;
#P inlet 34 25 15 0;
#P newex 7 127 37 196617 metro;
#P number 34 92 75 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 34 57 35 196617 timer;
#P connect 5 0 2 0;
#P connect 2 0 6 0;
#P connect 3 0 0 0;
#P connect 0 0 1 0;
#P connect 1 0 2 1;
#P fasten 2 0 7 0 12 162 41 162;
#P connect 4 0 0 1;
#P pop;
#P newobj 146 116 65 196617 p Loop Pedal;
#P toggle 146 87 15 0;
#P button 200 87 15 0;
#P button 173 87 15 0;
#P toggle 127 164 15 0;
#N vpatcher 974 128 1260 521;
#P origin 0 4;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P message 11 252 86 196617 0 , 30000 30000;
#P toggle 60 205 15 0;
#P newex 60 227 32 196617 sel 0;
#P window linecount 1;
#P message 131 323 56 196617 0. , 1. 400;
#P newex 131 342 40 196617 line 0.;
#P newex 114 364 27 196617 *~;
#P newex 114 274 41 196617 line~ 0;
#P newex 114 300 90 196617 play~ BrentvoiceI;
#P window linecount 0;
#P message 28 322 56 196617 0. , 1. 400;
#P newex 28 341 40 196617 line 0.;
#P newex 11 363 27 196617 *~;
#P inlet 47 23 15 0;
#P number 73 23 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 28 124 55 196617 pipe 250;
#P message 28 94 14 196617 0;
#P message 6 94 14 196617 1;
#P window linecount 1;
#P newex 6 46 32 196617 sel 1;
#P newex 82 179 51 196617 r Loopify;
#P outlet 11 394 15 0;
#P user number~ 6 195 45 210 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 11 273 41 196617 line~ 0;
#P message 114 252 86 196617 0 , 30000 30000;
#P newex 11 299 90 196617 play~ BrentvoiceI;
#P newex 6 157 101 196617 record~ BrentvoiceI;
#P inlet 6 22 15 0;
#P connect 0 0 8 0;
#P connect 8 0 9 0;
#P fasten 13 0 1 0 52 115 11 115;
#P connect 11 0 1 0;
#P connect 9 0 1 0;
#P connect 1 0 5 0;
#P fasten 22 0 24 0 16 244;
#P connect 24 0 4 0;
#P connect 4 0 2 0;
#P connect 2 0 14 0;
#P fasten 19 0 6 0 119 386 16 386;
#P connect 14 0 6 0;
#P connect 8 1 10 0;
#P connect 10 0 11 0;
#P fasten 22 0 16 0 65 250 102 250 102 320 33 320;
#P connect 16 0 15 0;
#P connect 15 0 14 1;
#P fasten 7 0 23 0 87 201 65 201;
#P connect 23 0 22 0;
#P connect 12 0 11 1;
#P fasten 22 1 3 0 119 244;
#P connect 3 0 18 0;
#P connect 18 0 17 0;
#P connect 17 0 19 0;
#P fasten 22 1 21 0 87 247 208 247 208 319 136 319;
#P connect 21 0 20 0;
#P connect 20 0 19 1;
#P pop;
#P newobj 127 229 62 196617 p Loop Bank;
#P comment 383 33 100 196617 How to use:;
#P window linecount 3;
#P comment 383 58 100 196617 1) Hit first bang to begin recording sound clip;
#P comment 382 103 100 196617 2) Hit second bang to stop recording and begin looping;
#P window linecount 2;
#P comment 382 148 100 196617 3) Uncheck the box to stop;
#P fasten 7 0 5 0 205 152 185 152 185 152 132 152;
#P fasten 6 0 5 0 178 112 132 112 132 152 132 152;
#P connect 5 0 4 0;
#P connect 4 0 11 0;
#P fasten 7 0 8 0 205 111 219 111 219 83 151 83;
#P connect 8 0 9 0;
#P fasten 4 0 11 1 132 257 153 257;
#P connect 6 0 9 1;
#P fasten 9 0 10 0 151 152 181 152;
#P fasten 12 0 4 1 86 221 184 221;
#P connect 7 0 9 2;
#P pop;


November 6, 2007 | 7:35 am

Hello,

I didn’t check but most probably it’s because there is no amplitude envelope (or "fade") between the incoming sound and the recorder.

When stopping the recording:
1. mute the incoming sound (in 30 ms or such)
2. wait 30 ms or more
3. stop the recording

When starting:
1. start the recording
2. unmute the incoming sound

patch for controlling volumes:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 94 199 64 196617 audio output;
#P comment 94 68 95 196617 audio input (signal);
#P toggle 96 102 15 0;
#P outlet 79 199 15 0;
#P inlet 79 68 15 0;
#P newex 79 175 27 196617 *~;
#P newex 96 145 44 196617 line~ 0.;
#P newex 96 124 55 196617 pack f 30.;
#P comment 111 102 152 196617 mute / unmute (default: muted);
#P connect 6 0 1 0;
#P connect 3 0 5 0;
#P connect 4 0 3 0;
#P connect 2 0 3 1;
#P connect 1 0 2 0;
#P window clipboard copycount 9;


November 6, 2007 | 12:48 pm

Hey Stealth Maestro,

I checked your patch and you haven’t included a buffer~ object. Your problem is caused by the lack of fades at the start and/or end of your recording as stated in the post above.

Good luck getting this fixed.

Have you done the tutorials btw?

Peter


November 6, 2007 | 1:18 pm

Brent Huras schrieb:
> ps – if you answer this question, you’ll be an awesome person… but
> if you could also tell me how to make your wires and/or objects
> invisible, your status automatically elevates from ‘awesome’ to
> ‘godly’ — Love (But Just as Friends), Stealth Maestro

For transcending into the godly status: just select the patch
chords/objects and hit cmd-k (ctrl-k on windows) (Tut. 19)

awesome seems more difficult… ;-) You did add fadeins, but I don’t see
a fadeout. You have to fade out before you reach the end by the way…

I guess on the other hand, don’t let this project be too "urgent" in
finishing. There is still a lot to enhance and learn.
For example, I have the feeling you didn’t put the [p Loop Bank] into a
patcher object instead of using an abstraction to post it more easily,
but for that you don’t know better… (Tut. 27)

The Tut. xx refer to the tutorials you probably forgot after you did
them…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


November 6, 2007 | 1:21 pm

Brent Huras schrieb:
> Sorry!
>
> Here’s the real patch:

Yes, its a mistake to change the subject. How should one know to which
post this belongs??? (I know, but its not obvious…)

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


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