Forums > MaxMSP

Envelope follower

November 19, 2006 | 12:13 pm

hello folks
is there is an object
that works as an envelope follower?
I simply can’t remember


November 19, 2006 | 1:02 pm

Quote: Tobor Experiment wrote on Sun, 19 November 2006 13:13
—————————————————-
> hello folks
> is there is an object
> that works as an envelope follower?
> I simply can’t remember
—————————————————-

You may use number~ :

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 93 68 36 9109513 adc~ 1;
#P user number~ 93 103 132 118 9 139 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P connect 1 0 0 0;
#P window clipboard copycount 2;

Bruno

————————————————-
- http://www.brunozamborlin.com -
————————————————-


November 19, 2006 | 4:09 pm

Il giorno 19/nov/06, alle ore 13:13, Giorgio Sancristoforo ha scritto:
>
> someboday can remind me is there is an object
> that works as an envelope follower?

try this

cheers

L

max v2;
#N vpatcher 20 74 813 652;
#P user ezdac~ 375 184 419 217 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 547 279 149 196617 multiplier to amplify the signal;
#P window linecount 2;
#P comment 587 205 150 196617 you can smooth amplitude variations
with a lowpass filter;
#P comment 487 151 117 196617 …or extracting the RMS of the signal;
#P flonum 535 252 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 491 276 54 196617 *~ 1.;
#P user scope~ 491 311 621 441 256 3 128 0. 1. 0 0. 0 0. 102 255 51
135 135 135 0;
#P newex 491 252 35 196617 sqrt~;
#P flonum 548 206 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 491 227 67 196617 onepole~ 10.;
#P newex 491 204 45 196617 *~;
#P window linecount 2;
#P comment 45 140 155 196617 a simple solution , with the absolute
value of the signal…;
#P comment 272 272 150 196617 you can smooth amplitude variations
with a lowpass filter;
#P flonum 257 251 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 375 103 30 196617 open;
#P toggle 410 80 15 0;
#P message 410 103 43 196617 loop $1;
#P toggle 359 103 15 0;
#N sfplay~ 1 120960 0 ;
#P newobj 375 128 73 196617 sfplay~;
#P user scope~ 46 311 176 441 256 3 128 0. 1. 0 0. 0 0. 102 255 51
135 135 135 0;
#P user scope~ 186 311 316 441 256 3 128 0. 1. 0 0. 0 0. 102 255 51
135 135 135 0;
#P flonum 89 202 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 46 225 53 196617 *~ 1.;
#P newex 46 251 67 196617 slide~ 10 10;
#P newex 46 202 31 196617 abs~;
#P newex 186 278 81 196617 onepole~ 10.;
#P comment 135 202 149 196617 multiplier to amplify the signal;
#P connect 8 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 7 0;
#P connect 5 0 4 1;
#P fasten 3 0 1 0 51 273 191 273;
#P connect 1 0 6 0;
#P connect 13 0 1 1;
#P connect 9 0 8 0;
#P connect 10 0 8 0;
#P connect 12 0 8 0;
#P connect 8 0 26 0;
#P fasten 8 0 26 1 380 176 414 176;
#P connect 11 0 10 0;
#P connect 8 0 16 0;
#P connect 16 0 17 0;
#P connect 17 0 19 0;
#P connect 19 0 21 0;
#P connect 21 0 20 0;
#P connect 8 0 16 1;
#P connect 22 0 21 1;
#P connect 18 0 17 1;
#P pop;

Chiacchiera con i tuoi amici in tempo reale!

http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com


November 19, 2006 | 6:54 pm

rampsmooth~?
. . . . . . . . . . . .
http://www.EstateSound.com
http://ideasforstuff.blogspot.com
. . . . . . . . . . . .


November 19, 2006 | 8:59 pm

Yet another way to get the envelope is to use hilbert~

#P user scope~ 118 239 248 369 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 118 211 64 196617 onepole~ 10;
#P newex 118 186 35 196617 sqrt~;
#P newex 118 163 27 196617 +~;
#P newex 154 138 27 196617 *~;
#P newex 118 138 27 196617 *~;
#P newex 118 105 46 196617 hilbert~;
#P toggle 118 62 15 0;
#P message 138 62 30 196617 open;
#N sfplay~ 1 120960 0 ;
#P newobj 118 81 44 196617 sfplay~;
#P connect 8 0 9 0;
#P connect 7 0 8 0;
#P connect 6 0 7 0;
#P connect 5 0 6 1;
#P connect 4 0 6 0;
#P connect 3 1 5 0;
#P connect 3 1 5 1;
#P connect 3 0 4 0;
#P connect 3 0 4 1;
#P connect 0 0 3 0;
#P connect 1 0 0 0;
#P connect 2 0 0 0;
#P window clipboard copycount 10;

Best,
JM


November 19, 2006 | 9:21 pm

why are you all square rooting? just for convenience as the range is better to handle or is there a real reason for it?


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