Using Record~ and buffer~, to record a soundstream into a sequence of files (With example patch).

Mar 20, 2007 at 12:06pm

Using Record~ and buffer~, to record a soundstream into a sequence of files (With example patch).

Hi all!

Making sure I have the scheduler in overdrive and audio interrupt, I created a simple patch that continuously records into a buffer, thus creating a sequence of files.

However, like I feared, there is a clearly audible click when transitioning between one file and the next, so it seems the output process is not sample accurate.

I have pasted the patch that I made for this below. Do you have any suggestion as to what I need to do to make the transition from one audio file to the next seamless?

And better still, also how to automate the gluing together of the files in the end, preferably from within Max/MSP :)?

Thank you!

Regards,
Ilias B.

Pasted below is the simple example patch I made to achieve this:

———————————————

max v2;
#N vpatcher 464 32 1269 944;
#P origin 33 -163;
#P window setfont “Sans Serif” 9.;
#P flonum 65 439 74 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 65 412 61 9109513 clocker 1000;
#P newex 229 640 85 9109513 prepend writewave;
#P message 161 338 33 9109513 loop 1;
#P button 229 469 15 0;
#P message 244 490 14 9109513 1;
#P newex 229 510 40 9109513 accum;
#P newex 229 616 49 9109513 tosymbol;
#B color 5;
#P newex 229 583 61 9109513 append .wav;
#P newex 326 313 45 9109513 loadbang;
#P message 326 335 52 9109513 separator;
#P newex 229 556 90 9109513 prepend d:\\pieces_;
#P number 229 537 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user number~ 161 424 200 439 9 139 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 138 259 15 0;
#P newex 229 669 99 9109513 buffer~ recme 1000 1;
#P newex 161 393 76 9109513 record~ recme 1;
#P message 103 40 18 9109513 16;
#P newex 103 199 37 9109513 / 200.;
#P slider 103 61 15 128 0 1;
#P newex 18 136 27 9109513 * 5;
#P window setfont “Proportional Serif” 10.;
#P comment 24 158 55 9175050 Frequency;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 18 200 80 9240586 cycle~ 1000.;
#P flonum 18 172 62 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Sans Serif” 9.;
#N counter 0 55 275;
#X flags 0 0;
#P newobj 18 104 78 9109513 counter 0 55 275;
#P user ezdac~ 9 341 53 374 0;
#P newex 19 245 38 9109513 *~ 0.05;
#P newex 18 72 45 9109513 metro 40;
#P toggle 18 51 15 0;
#P window linecount 2;
#P comment 154 259 100 9109513 2. Switch to start recording;
#P window linecount 1;
#P user com 10 25 76 9109513 7;
#K set 0 12590 8275 29793 29300 8307 28533 28260;
#K end;
#B frgb 207 73 164;
#P fasten 4 0 5 0 24 302 14 302;
#P connect 2 0 3 0;
#P connect 3 0 6 0;
#P connect 6 0 10 0;
#P connect 10 0 7 0;
#P connect 7 0 8 0;
#P connect 8 0 4 0;
#P fasten 4 0 5 1 24 302 48 302;
#P fasten 12 0 4 1 108 231 52 231;
#P fasten 16 0 29 0 111 298;
#P connect 29 0 30 0;
#P connect 13 0 11 0;
#P connect 11 0 12 0;
#P fasten 21 0 27 0 331 334 166 334;
#P connect 16 0 14 0;
#P fasten 4 0 14 0 24 287 63 287 63 364 166 364;
#P fasten 27 0 14 0 166 370 166 370;
#P connect 14 0 17 0;
#P fasten 30 0 26 0 70 465 234 465;
#P fasten 16 0 24 0 143 493 234 493;
#P connect 26 0 24 0;
#P connect 24 0 18 0;
#P connect 18 0 19 0;
#P connect 19 0 22 0;
#P fasten 20 0 23 0 331 608 234 608;
#P connect 22 0 23 0;
#P connect 23 0 28 0;
#P connect 28 0 15 0;
#P connect 26 0 25 0;
#P connect 25 0 24 1;
#P connect 21 0 20 0;
#P pop;

#30929

You must be logged in to reply to this topic.