Forums > MaxMSP

Urgent advice needed for Normalize & output levels please!

March 7, 2006 | 2:03 pm

Hi

Posted a while back re. a simple loop system i’ve created which loops and passes 8secons of audio using record~, buffer~ and index~. The loop can be layered, ie. destructive mixing with index~ feeds back into record~.

I’m using Normalize to stop clipping, and it seems to work, but here are the problems:

1. SOMETIMES, the loop begins to slowly fade out… and sometimes it doesn’t… can someone explain this and advise a fix?

2. The master output is sometimes much softer, and I’ll need to crank an amp to get a level out equal to other software, even thought I’ve used normalize…

I think both these problems are related to how normalize~ works, and that the first audio that it receives sets a dB benchmark or something…

as you can probably tell, i’m a beginner here, so any advice is welcome even if it’s basics

many thanks
anthony

(I am going to build a multi-buffer loop soon… but I actually want the simplest thing at the moment… i’m sure someone’s already built these; if there’s one for download that i can look at, please point the way)


March 7, 2006 | 3:49 pm

Here is a crossfading not clicking version of Normalise~, but u might want to consider a strong limiter instead….

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 24 251 123 196617 open jongly.aif , 1 , loop 1;
#P message 24 226 50 196617 loop 1 , 1;
#P message 73 226 30 196617 open;
#P newex 264 142 78 196617 loadmess 5000;
#P newex 98 527 35 196617 *~ 1.;
#P user ezdac~ 98 564 142 597 0;
#P window setfont "Sans Serif" 12.;
#P window linecount 5;
#P comment 168 58 269 196620 Keeps a signal hot without clipping by crossfading between reseting normalize~ processes. Set the Interval in ms;
#P window setfont "Sans Serif" 9.;
#P number 169 143 89 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 284 251 47 196617 f 5000;
#P newex 233 251 47 196617 f 5000;
#N sfplay~ 1 120960 0 ;
#P newobj 98 278 44 196617 sfplay~;
#P newex 284 350 34 196617 edge~;
#P newex 284 327 43 196617 >~ 0.99;
#P newex 234 350 34 196617 edge~;
#P newex 234 327 45 196617 < ~ 0.01;
#P message 284 372 32 196617 reset;
#P message 234 372 32 196617 reset;
#P user gswitch2 233 211 39 32 1 0;
#P newex 169 182 74 196617 train~ 5000;
#P message 284 273 49 196617 1 $1;
#P message 233 273 49 196617 0 $1;
#P newex 233 297 39 196617 line~ 0;
#P newex 349 425 58 196617 normalize~;
#P newex 98 428 58 196617 normalize~;
#N vpatcher 542 364 1142 764;
#P window setfont "Sans Serif" 9.;
#P newex 114 109 35 196617 *~ 0.;
#P newex 65 82 36 196617 !-~ 1.;
#P newex 40 111 35 196617 *~ 1.;
#P inlet 139 45 15 0;
#P inlet 114 89 15 0;
#P inlet 40 91 15 0;
#P outlet 114 131 15 0;
#P outlet 40 133 15 0;
#P connect 2 0 5 0;
#P connect 5 0 0 0;
#P connect 4 0 6 0;
#P connect 6 0 5 1;
#P connect 3 0 7 0;
#P connect 7 0 1 0;
#P connect 4 0 7 1;
#P pop;
#P newobj 98 475 62 196617 p crossfade;
#P user meter~ 156 561 236 574 50 0 168 0 103 103 103 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P connect 21 0 20 0;
#P connect 21 0 20 1;
#P connect 21 0 0 0;
#P connect 18 0 7 0;
#P fasten 18 0 16 1 174 172 275 172;
#P fasten 18 0 17 1 174 172 326 172;
#P connect 15 0 2 0;
#P fasten 15 0 3 0 103 406 354 406;
#P connect 7 1 8 0;
#P connect 7 1 8 1;
#P connect 4 0 1 2;
#P connect 4 0 11 0;
#P connect 4 0 13 0;
#P connect 3 0 1 1;
#P connect 2 0 1 0;
#P connect 1 1 21 0;
#P connect 1 0 21 0;
#P connect 25 0 15 0;
#P connect 24 0 15 0;
#P connect 23 0 15 0;
#P fasten 22 0 18 0 269 164 260 164 260 140 174 140;
#P connect 17 0 6 0;
#P fasten 8 1 17 0 267 246 289 246;
#P connect 16 0 5 0;
#P connect 8 0 16 0;
#P connect 11 0 12 0;
#P connect 10 0 2 0;
#P connect 9 0 3 0;
#P connect 5 0 4 0;
#P fasten 6 0 4 0 289 292 238 292;
#P connect 12 0 9 0;
#P connect 13 0 14 0;
#P connect 14 0 10 0;
#P window clipboard copycount 26;


March 7, 2006 | 8:13 pm

thanks, but i’m afraid i have no idea what to do with that text?


March 7, 2006 | 8:22 pm

copy it, change to Max choose New from clipboard
f


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