Forums > MaxMSP

adding pitch lfo to samples?

April 16, 2008 | 12:01 pm

Hi,

I’m interested in adding an LFO to the pitch of samples coming out of play~ or groove~. What’s the best way to do this? I understand how to use [cycle~] with the $ message to [line] to achieve LFO’ed transposition but this is not what I’m looking for as it does not LFO throughout the whole sample but only at the beginning to set pitch of the entire sample.

Thanks,


April 16, 2008 | 6:56 pm

if you want to affect the pitch of the samples coming out you need to modulate whatever is driving play~ or groove~

have a play with this example – in which the same modulation is applied to play~ & groove~ but with different effects….

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 330 133 29 196617 depth;
#P flonum 328 149 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 242 150 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 242 241 49 196617 *~ 0.5;
#P newex 242 219 35 196617 *~ 0.5;
#P newex 242 197 31 196617 +~ 1;
#P newex 242 172 52 196617 cycle~ 0.5;
#P message 338 229 50 196617 loop 1 , 0;
#P newex 358 304 27 196617 +~;
#P newex 358 276 41 196617 sig~ 1.;
#P user ezdac~ 142 391 186 424 0;
#P message 142 219 74 196617 0 , 2000 2000;
#P newex 142 304 27 196617 +~;
#P newex 142 250 32 196617 line~;
#P newex 444 299 107 196617 buffer~ one anton.aif;
#P newex 358 330 65 196617 groove~ one;
#P newex 142 334 53 196617 play~ one;
#P comment 245 133 29 196617 rate;
#P fasten 14 0 5 1 247 278 164 278;
#P fasten 14 0 9 1 247 298 380 298;
#P connect 15 0 11 0;
#P connect 11 0 12 0;
#P connect 2 0 7 1;
#P connect 5 0 1 0;
#P connect 4 0 5 0;
#P connect 16 0 14 1;
#P connect 13 0 14 0;
#P connect 12 0 13 0;
#P fasten 10 0 2 0 343 327 363 327;
#P connect 8 0 9 0;
#P connect 9 0 2 0;
#P connect 1 0 7 0;
#P connect 4 1 6 0;
#P connect 6 0 4 0;
#P window clipboard copycount 18;


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