playing audio in max/msp 4.5

For topics related to using MsPinky inside the Max/MSP graphical programming environment
Post Reply
tawse
Posts:2
Joined:Mon Nov 21, 2005 6:37 pm
playing audio in max/msp 4.5

Post by tawse » Mon Nov 21, 2005 6:41 pm

Im trying to play 10 small audio clips at one time through different buffers. All the sound files are loaded and i can see them when i double-click the buffer but when i play them only three of them work. Anyone know why it won't work, cos I'm lost.



cheers
benoitsimon
Posts:6
Joined:Tue Aug 09, 2005 2:52 pm
Location:france

Post by benoitsimon » Thu Nov 24, 2005 12:27 am

Please, can you post your patch in a text file?
tawse
Posts:2
Joined:Mon Nov 21, 2005 6:37 pm

the text file of my patch ( if this is what you mean)

Post by tawse » Thu Nov 24, 2005 11:15 am

max v2;

#N vpatcher 53 47 913 611;

#P origin 98 32;

#P button 542 308 15 0;

#P window setfont "Sans Serif" 9.;

#P message 510 308 26 9109513 stop;

#P user hslider 564 308 18 128 1000 1 0 0;

#P number 584 334 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 542 363 32 9109513 metro;

#P comment 564 288 126 9109513 tempo control cymbals/other;

#P button 337 308 15 0;

#P message 305 308 26 9109513 stop;

#P user hslider 359 308 18 128 1000 1 0 0;

#P number 379 334 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P toggle 774 408 15 0;

#P toggle 721 408 15 0;

#P toggle 661 408 15 0;

#P toggle 578 408 15 0;

#P toggle 494 408 15 0;

#P toggle 430 408 15 0;

#P toggle 351 408 15 0;

#P toggle 266 408 15 0;

#N vpatcher 15 55 615 455;

#P origin 0 -7;

#P inlet 23 229 15 0;

#P inlet 52 228 15 0;

#P inlet 173 21 15 0;

#P toggle 173 60 15 0;

#P window setfont "Sans Serif" 9.;

#P number 184 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 146 146 25 9109513 sig~;

#P flonum 175 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 128 223 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 103 347 28 9109513 dac~;

#P message 23 295 26 9109513 stop;

#P message 52 295 27 9109513 start;

#P message 11 65 26 9109513 read;

#P newex 103 265 71 9109513 groove~ drum9;

#P newex 11 92 68 9109513 buffer~ drum9;

#P comment 7 47 71 9109513 hi-hat wav.;

#P connect 3 0 1 0;

#P connect 14 0 5 0;

#P connect 13 0 4 0;

#P connect 9 0 2 0;

#P connect 2 0 6 0;

#P connect 5 0 6 0;

#P connect 4 0 6 0;

#P connect 2 0 6 1;

#P connect 11 0 7 0;

#P connect 7 0 2 1;

#P connect 10 0 9 0;

#P connect 11 0 9 0;

#P connect 8 0 2 2;

#P connect 12 0 11 0;

#P pop;

#P newobj 669 456 62 9109513 patcher hihat;

#N vpatcher 400 61 1000 461;

#P origin 0 -7;

#P inlet 23 229 15 0;

#P inlet 52 228 15 0;

#P inlet 173 21 15 0;

#P toggle 173 60 15 0;

#P window setfont "Sans Serif" 9.;

#P number 184 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 146 146 25 9109513 sig~;

#P flonum 175 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 128 223 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 103 347 28 9109513 dac~;

#P message 23 295 26 9109513 stop;

#P message 52 295 27 9109513 start;

#P message 11 65 26 9109513 read;

#P newex 103 265 76 9109513 groove~ drum10;

#P newex 11 92 73 9109513 buffer~ drum10;

#P comment 7 47 71 9109513 tap wav.;

#P connect 3 0 1 0;

#P connect 14 0 5 0;

#P connect 13 0 4 0;

#P connect 9 0 2 0;

#P connect 2 0 6 0;

#P connect 5 0 6 0;

#P connect 4 0 6 0;

#P connect 2 0 6 1;

#P connect 11 0 7 0;

#P connect 7 0 2 1;

#P connect 10 0 9 0;

#P connect 11 0 9 0;

#P connect 8 0 2 2;

#P connect 12 0 11 0;

#P pop;

#P newobj 730 456 55 9109513 patcher tap;

#N vpatcher 15 55 615 455;

#P origin 0 -7;

#P inlet 23 229 15 0;

#P inlet 52 228 15 0;

#P inlet 173 21 15 0;

#P toggle 173 60 15 0;

#P window setfont "Sans Serif" 9.;

#P number 184 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 146 146 25 9109513 sig~;

#P flonum 175 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 128 223 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 103 347 28 9109513 dac~;

#P message 23 295 26 9109513 stop;

#P message 52 295 27 9109513 start;

#P message 11 65 26 9109513 read;

#P newex 103 265 71 9109513 groove~ drum7;

#P newex 11 92 68 9109513 buffer~ drum7;

#P comment 7 47 71 9109513 crash soft wav.;

#P connect 3 0 1 0;

#P connect 14 0 5 0;

#P connect 13 0 4 0;

#P connect 9 0 2 0;

#P connect 2 0 6 0;

#P connect 5 0 6 0;

#P connect 4 0 6 0;

#P connect 2 0 6 1;

#P connect 11 0 7 0;

#P connect 7 0 2 1;

#P connect 10 0 9 0;

#P connect 11 0 9 0;

#P connect 8 0 2 2;

#P connect 12 0 11 0;

#P pop;

#P newobj 504 456 85 9109513 patcher crash soft;

#N vpatcher 15 55 615 455;

#P origin 0 -7;

#P inlet 23 229 15 0;

#P inlet 52 228 15 0;

#P inlet 128 21 15 0;

#P toggle 128 60 15 0;

#P window setfont "Sans Serif" 9.;

#P number 184 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 146 146 25 9109513 sig~;

#P flonum 175 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 128 223 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 103 347 28 9109513 dac~;

#P message 23 295 26 9109513 stop;

#P message 52 295 27 9109513 start;

#P message 11 65 26 9109513 read;

#P newex 103 265 71 9109513 groove~ drum8;

#P newex 11 92 68 9109513 buffer~ drum8;

#P comment 7 47 71 9109513 crash bell wav.;

#P connect 3 0 1 0;

#P connect 14 0 5 0;

#P connect 13 0 4 0;

#P connect 9 0 2 0;

#P connect 2 0 6 0;

#P connect 5 0 6 0;

#P connect 4 0 6 0;

#P connect 2 0 6 1;

#P connect 12 0 11 0;

#P connect 11 0 7 0;

#P connect 7 0 2 1;

#P connect 10 0 9 0;

#P connect 11 0 9 0;

#P connect 8 0 2 2;

#P pop;

#P newobj 589 456 82 9109513 patcher crash bell;

#N vpatcher 15 55 615 455;

#P origin 0 -7;

#P inlet 23 229 15 0;

#P inlet 52 228 15 0;

#P inlet 173 21 15 0;

#P toggle 173 60 15 0;

#P window setfont "Sans Serif" 9.;

#P number 184 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 146 146 25 9109513 sig~;

#P flonum 175 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 128 223 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 103 347 28 9109513 dac~;

#P message 23 295 26 9109513 stop;

#P message 52 295 27 9109513 start;

#P message 11 65 26 9109513 read;

#P newex 103 265 71 9109513 groove~ drum6;

#P newex 11 92 68 9109513 buffer~ drum6;

#P comment 7 47 71 9109513 crash wav.;

#P connect 3 0 1 0;

#P connect 14 0 5 0;

#P connect 13 0 4 0;

#P connect 9 0 2 0;

#P connect 2 0 6 0;

#P connect 5 0 6 0;

#P connect 4 0 6 0;

#P connect 2 0 6 1;

#P connect 11 0 7 0;

#P connect 7 0 2 1;

#P connect 10 0 9 0;

#P connect 11 0 9 0;

#P connect 8 0 2 2;

#P connect 12 0 11 0;

#P pop;

#P newobj 440 456 65 9109513 patcher crash;

#N vpatcher 35 85 635 485;

#P origin 0 -7;

#P inlet 23 229 15 0;

#P inlet 52 228 15 0;

#P inlet 173 21 15 0;

#P toggle 173 60 15 0;

#P window setfont "Sans Serif" 9.;

#P number 184 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 146 146 25 9109513 sig~;

#P flonum 175 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 128 223 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 103 347 28 9109513 dac~;

#P message 23 295 26 9109513 stop;

#P message 52 295 27 9109513 start;

#P message 11 65 26 9109513 read;

#P newex 103 265 71 9109513 groove~ drum5;

#P newex 11 92 68 9109513 buffer~ drum5;

#P comment 7 47 71 9109513 floor tom wav.;

#P connect 3 0 1 0;

#P connect 14 0 5 0;

#P connect 13 0 4 0;

#P connect 9 0 2 0;

#P connect 2 0 6 0;

#P connect 5 0 6 0;

#P connect 4 0 6 0;

#P connect 2 0 6 1;

#P connect 11 0 7 0;

#P connect 7 0 2 1;

#P connect 10 0 9 0;

#P connect 11 0 9 0;

#P connect 8 0 2 2;

#P connect 12 0 11 0;

#P pop;

#P newobj 360 456 80 9109513 patcher floor tom;

#N vpatcher 393 241 993 641;

#P origin 0 -4;

#P inlet 23 226 15 0;

#P inlet 52 225 15 0;

#P inlet 173 18 15 0;

#P toggle 173 57 15 0;

#P window setfont "Sans Serif" 9.;

#P number 184 102 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 146 143 25 9109513 sig~;

#P flonum 175 221 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 128 220 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 103 344 28 9109513 dac~;

#P message 23 292 26 9109513 stop;

#P message 52 292 27 9109513 start;

#P message 11 62 26 9109513 read;

#P newex 103 262 71 9109513 groove~ drum4;

#P newex 11 89 68 9109513 buffer~ drum4;

#P comment 9 41 78 9109513 steel snare wav.;

#P connect 3 0 1 0;

#P connect 14 0 5 0;

#P connect 13 0 4 0;

#P connect 9 0 2 0;

#P connect 2 0 6 0;

#P connect 5 0 6 0;

#P connect 4 0 6 0;

#P connect 2 0 6 1;

#P connect 11 0 7 0;

#P connect 7 0 2 1;

#P connect 10 0 9 0;

#P connect 11 0 9 0;

#P connect 8 0 2 2;

#P connect 12 0 11 0;

#P pop;

#P newobj 273 456 88 9109513 patcher steel snare;

#N vpatcher 15 55 615 455;

#P origin 0 -7;

#P inlet 23 229 15 0;

#P inlet 52 228 15 0;

#P inlet 173 21 15 0;

#P toggle 173 60 15 0;

#P window setfont "Sans Serif" 9.;

#P number 184 105 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 146 146 25 9109513 sig~;

#P flonum 175 224 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 128 223 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 103 347 28 9109513 dac~;

#P message 23 295 26 9109513 stop;

#P message 52 295 27 9109513 start;

#P message 11 65 26 9109513 read;

#P newex 103 265 71 9109513 groove~ drum3;

#P newex 11 92 68 9109513 buffer~ drum3;

#P comment 10 45 84 9109513 wood snare wav.;

#P connect 3 0 1 0;

#P connect 14 0 5 0;

#P connect 13 0 4 0;

#P connect 11 0 2 0;

#P connect 9 0 2 0;

#P connect 2 0 6 0;

#P connect 5 0 6 0;

#P connect 4 0 6 0;

#P connect 2 0 6 1;

#P connect 7 0 2 1;

#P connect 10 0 9 0;

#P connect 11 0 9 0;

#P connect 8 0 2 2;

#P connect 12 0 11 0;

#P pop;

#P newobj 188 456 89 9109513 patcher wood snare;

#P button 402 515 15 0;

#P button 335 515 15 0;

#P toggle 179 408 15 0;

#P toggle 86 408 15 0;

#N vpatcher 271 91 871 491;

#P origin -224 0;

#P inlet 279 237 15 0;

#P inlet 308 236 15 0;

#P inlet 429 29 15 0;

#P toggle 429 68 15 0;

#P window setfont "Sans Serif" 9.;

#P number 440 113 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 402 154 25 9109513 sig~;

#P flonum 431 232 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 384 231 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 359 355 28 9109513 dac~;

#P message 279 303 26 9109513 stop;

#P message 308 303 27 9109513 start;

#P message 267 73 26 9109513 read;

#P newex 359 273 71 9109513 groove~ drum2;

#P newex 267 100 68 9109513 buffer~ drum2;

#P comment 263 55 71 9109513 snare wav.;

#P connect 3 0 1 0;

#P connect 14 0 5 0;

#P connect 13 0 4 0;

#P connect 11 0 2 0;

#P connect 9 0 2 0;

#P connect 2 0 6 0;

#P connect 5 0 6 0;

#P connect 4 0 6 0;

#P connect 2 0 6 1;

#P connect 7 0 2 1;

#P connect 10 0 9 0;

#P connect 11 0 9 0;

#P connect 8 0 2 2;

#P connect 12 0 11 0;

#P pop;

#P newobj 95 456 94 9109513 patcher picollo snare;

#N vpatcher 15 56 384 455;

#P inlet 57 222 15 0;

#P inlet 178 24 15 0;

#P toggle 178 50 15 0;

#P window setfont "Sans Serif" 9.;

#P number 189 95 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 151 136 25 9109513 sig~;

#P flonum 180 214 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 133 213 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 108 337 28 9109513 dac~;

#P message 28 285 26 9109513 stop;

#P message 57 285 27 9109513 start;

#P message 16 55 26 9109513 read;

#P newex 108 255 71 9109513 groove~ drum1;

#P newex 16 82 68 9109513 buffer~ drum1;

#P comment 12 37 71 9109513 bass drum wav.;

#P inlet 28 223 15 0;

#P connect 4 0 2 0;

#P connect 0 0 6 0;

#P connect 14 0 5 0;

#P connect 12 0 3 0;

#P connect 10 0 3 0;

#P connect 3 0 7 0;

#P connect 5 0 7 0;

#P connect 6 0 7 0;

#P connect 3 0 7 1;

#P connect 8 0 3 1;

#P connect 11 0 10 0;

#P connect 12 0 10 0;

#P connect 9 0 3 2;

#P connect 13 0 12 0;

#P pop;

#P newobj 10 456 86 9109513 patcher bass drum;

#P newex 337 363 32 9109513 metro;

#P toggle 249 6 15 0;

#P comment 321 534 51 9109513 Start Audio;

#P comment 388 534 51 9109513 Stop Audio;

#P comment 359 288 115 9109513 tempo control bass/snare;

#P fasten 10 0 5 0 15 530;

#P fasten 9 0 5 1 53 530;

#P fasten 4 0 7 0 91 382;

#P connect 7 0 5 2;

#P fasten 10 0 6 0 100 530;

#P fasten 9 0 6 1 142 530;

#P fasten 4 0 8 0 184 382;

#P connect 8 0 6 2;

#P fasten 10 0 11 0 193 530;

#P fasten 9 0 11 1 232 530;

#P fasten 4 0 19 0 271 382;

#P connect 19 0 11 2;

#P fasten 10 0 12 0 278 530;

#P fasten 9 0 12 1 317 530;

#P connect 30 0 4 0;

#P fasten 29 0 4 0 310 362 342 362;

#P fasten 4 0 20 0 356 382;

#P connect 20 0 12 2;

#P connect 28 0 4 1;

#P fasten 10 0 13 0 365 530;

#P fasten 28 0 27 0 384 326;

#P fasten 9 0 13 1 400 530;

#P fasten 32 0 21 0 435 382;

#P connect 21 0 13 2;

#P fasten 10 0 14 0 445 530;

#P fasten 9 0 14 1 472 530;

#P fasten 32 0 22 0 499 382;

#P connect 22 0 14 2;

#P fasten 10 0 16 0 509 530;

#P fasten 9 0 16 1 546 530;

#P fasten 35 0 32 0 515 362 547 362;

#P connect 36 0 32 0;

#P connect 34 0 32 1;

#P fasten 32 0 23 0 583 382;

#P connect 23 0 16 2;

#P fasten 34 0 33 0 589 326;

#P fasten 10 0 15 0 594 530;

#P fasten 9 0 15 1 630 530;

#P fasten 32 0 24 0 666 382;

#P connect 24 0 15 2;

#P fasten 10 0 18 0 674 530;

#P fasten 9 0 18 1 700 530;

#P fasten 32 0 25 0 726 382;

#P connect 25 0 18 2;

#P fasten 10 0 17 0 735 530;

#P fasten 9 0 17 1 757 530;

#P fasten 32 0 26 0 779 382;

#P connect 26 0 17 2;

#P pop;

[/quote]
benoitsimon
Posts:6
Joined:Tue Aug 09, 2005 2:52 pm
Location:france

solution

Post by benoitsimon » Mon Nov 28, 2005 10:28 am

You will find the explanation inside the patcher







max v2;

#N vpatcher 143 117 743 517;

#P origin 0 -4;

#P window setfont "Sans Serif" 9.;

#P window linecount 2;

#P comment 238 191 224 196617 <- I have removed the link with the toggle because it modified the starting point;

#P window linecount 1;

#P newex 172 98 35 196617 t 1 0.;

#P newex 173 78 32 196617 sel 1;

#P inlet 23 226 15 0;

#P inlet 52 225 15 0;

#P inlet 173 18 15 0;

#P toggle 173 57 15 0;

#P number 219 131 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 172 144 25 196617 sig~;

#P flonum 227 247 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;

#P number 189 189 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;

#P newex 103 344 28 196617 dac~;

#P message 23 292 26 196617 stop;

#P window linecount 2;

#P message 52 292 27 196617 start;

#P window linecount 1;

#P message 11 72 26 196617 read;

#P newex 100 262 79 196617 groove~ drum4;

#P window linecount 2;

#P newex 11 89 68 196617 buffer~ drum4;

#P comment 9 41 78 196617 steel snare wav.;

#P window linecount 1;

#P comment 235 63 224 196617 <- you need this \, in order to reset the buffer~;

#P connect 4 0 2 0;

#P connect 15 0 6 0;

#P connect 14 0 5 0;

#P connect 17 1 3 0;

#P connect 10 0 3 0;

#P connect 3 0 7 0;

#P connect 6 0 7 0;

#P connect 5 0 7 0;

#P connect 3 0 7 1;

#P connect 8 0 3 1;

#P connect 9 0 3 2;

#P connect 16 0 17 0;

#P connect 17 0 10 0;

#P connect 11 0 10 0;

#P connect 13 0 12 0;

#P connect 12 0 16 0;

#P pop;
Post Reply