Forums > MaxMSP

audio-rate sample trigger

March 3, 2008 | 5:05 pm

hi there – bit of a newbie question:

i want to trigger, and then re-trigger multiple copies of a sample at variable audio-rate frequencies. looping in one instance of a groove~ object is unacceptable as i want each sample to play in its entirety. i realize once i use the max scheduler that these rates are not possible. how do i do this with only signals as opposed to bangs? thanks in advance for your help – this prob has been bugging me for months

i have made a basic patch using the phasor~ object for triggering and the poly~ object to play back the sample: (2 patches; first the main patch, then the contents of the poly~)

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 230 67 31 196617 speed;
#P comment 327 67 31 196617 stop;
#P comment 290 67 31 196617 start;
#P newex 229 249 67 196617 prepend note;
#P message 229 224 20 196617 40;
#P toggle 315 251 15 0;
#P message 315 272 45 196617 steal $1;
#P message 88 225 30 196617 read;
#P newex 88 252 125 196617 buffer~ SoundFile 1000 2;
#P newex 229 306 137 196617 poly~ SimplePolyTrigger 16;
#P message 288 86 14 196617 4;
#P message 327 86 14 196617 0;
#P flonum 229 86 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 229 199 34 196617 edge~;
#P newex 229 148 35 196617 delta~;
#P newex 229 174 31 196617 < ~ 0.;
#P newex 229 112 55 196617 phasor~ 5.;
#P user ezdac~ 229 361 273 394 0;
#P comment 89 208 100 196617 load any audio file;
#P connect 11 0 10 0;
#P connect 6 0 2 0;
#P fasten 7 0 2 0 332 106 234 106;
#P fasten 8 0 2 0 293 106 234 106;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 14 0;
#P connect 14 0 15 0;
#P fasten 12 0 9 0 320 296 234 296;
#P connect 15 0 9 0;
#P connect 9 0 1 0;
#P connect 13 0 12 0;
#P window clipboard copycount 19;

inside the poly~:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 502 289 54 196617 mute 0 , 1;
#P message 439 289 54 196617 mute 1 , 0;
#P newex 197 121 40 196617 t b b b;
#P toggle 480 361 15 0;
#P number 438 361 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N out~ 2;
#P newobj 241 329 39 196617 out~ 2;
#N out~ 1;
#P newobj 197 329 39 196617 out~ 1;
#N in 1;
#P newobj 197 95 25 196617 in 1;
#P newex 438 329 52 196617 thispoly~;
#P user scope~ 297 329 427 459 256 3 128 -1. 1. 0 0. 0 0. 102 255 51 135 135 135 0;
#P newex 241 300 27 196617 *~;
#P newex 197 300 27 196617 *~;
#P message 297 182 74 196617 0 , 1 10 0 990;
#P newex 297 215 30 196617 line~;
#P message 197 182 74 196617 0 , 1000 1000;
#P newex 197 214 30 196617 line~;
#P newex 197 239 89 196617 play~ SoundFile 2;
#P fasten 14 2 16 0 232 148 507 148;
#P connect 8 1 13 0;
#P fasten 3 1 15 0 322 260 444 260;
#P connect 8 0 12 0;
#P connect 6 0 11 0;
#P fasten 6 0 8 0 246 323 443 323;
#P connect 15 0 8 0;
#P fasten 16 0 8 0 507 316 443 316;
#P fasten 3 0 5 1 302 288 219 288;
#P fasten 3 0 6 1 302 288 263 288;
#P connect 3 0 7 0;
#P connect 4 0 3 0;
#P fasten 14 1 4 0 217 160 302 160;
#P fasten 0 1 6 0 281 278 246 278;
#P connect 5 0 10 0;
#P connect 0 0 5 0;
#P connect 1 0 0 0;
#P connect 2 0 1 0;
#P connect 14 0 2 0;
#P connect 9 0 14 0;
#P window clipboard copycount 17;


March 3, 2008 | 10:07 pm

i just downloaded the LyonPotpourri2.0 externals – it seems my answer may lie with the el.player~ object

dunk


March 4, 2008 | 1:15 am

For signal-triggered ramps, you can use zigzag~ in mode 1. There is a
little bit of a learning curve, but it’s a super-useful object. I’ve
been working on a couple of MSP externals for doing various simple tasks
in a sample-triggered fashion. You are welcome to give them a look here
(at your own risk):

http://pile.pixlpa.com/ab-ext000.zip

Andrew Benson

dunk wrote:
> i just downloaded the LyonPotpourri2.0 externals – it seems my answer may lie with the el.player~ object
>
> dunk
>


March 5, 2008 | 2:48 pm

On 4 mars 08, at 02:15, Andrew Benson wrote:

> http://pile.pixlpa.com/ab-ext000.zip

Andrew, thanks for these objects. They are very usefull!

p

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://www.crfmw.be/max


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