Forums > MaxMSP

problem with recording

October 26, 2006 | 9:00 am

hi!

i have a problem making a recording with sampler.mxt

here is sampler.mxt :

max v2;
#N vpatcher 30 45 630 513;
#P inlet 469 42 15 0;
#P inlet 437 42 15 0;
#P outlet 349 391 15 0;
#P window setfont "Sans Serif" 9.;
#P user number~ 320 362 359 377 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 320 328 64 196617 sfrecord~ 2;
#P newex 320 293 33 196617 r rec;
#P newex 286 189 33 196617 s rec;
#P message 346 138 80 196617 samptype int16;
#P message 286 138 49 196617 nchans 2;
#P message 221 138 60 196617 resample 1;
#P outlet 188 391 15 0;
#P newex 188 327 62 196617 prepend set;
#P newex 115 391 33 196617 s rec;
#P newex 115 327 68 196617 prepend open;
#P newex 115 293 168 196617 sprintf %s-%s-%s-%s-%s-%s.aif;
#P newex 115 269 38 196617 zl join;
#P newex 115 240 44 196617 zl rot 1;
#P newex 115 211 61 196617 date;
#P message 152 185 30 196617 time;
#P message 115 185 29 196617 date;
#P newex 115 161 47 196617 t b b;
#P button 115 138 15 0;
#P message 76 138 14 196617 1;
#P message 55 138 14 196617 0;
#P newex 76 102 89 196617 t b b b;
#P newex 55 75 52 196617 sel 0 1;
#P inlet 55 42 15 0;
#P window linecount 5;
#P user com 183 225 100 196617 43;
#K set 0 29800 26995 8307 25955 29801 28526 8294 26990 25715 8295 25972 29472 29800 25888 25461 29298 25966 29728 25697 29797 9844 26989 25888 26223 29216 30067 25888 26990 8302 24941 26990 26400 29800 25888 26217 27749 8308 28448 25189 8306 25955 28530 25600;
#K end;
#P window linecount 1;
#P comment 233 94 100 196617 recording config;
#P connect 2 0 3 0;
#P connect 3 0 5 0;
#P connect 3 1 4 0;
#P connect 4 0 6 0;
#P connect 4 1 7 0;
#P connect 7 0 8 0;
#P connect 8 0 9 0;
#P connect 10 0 11 0;
#P connect 9 0 11 0;
#P connect 11 0 12 0;
#P connect 12 0 13 0;
#P connect 13 0 14 0;
#P connect 14 0 15 0;
#P fasten 6 0 16 0 81 350 120 350;
#P fasten 5 0 16 0 60 354 120 354;
#P connect 15 0 16 0;
#P connect 8 1 10 0;
#P fasten 14 0 17 0 120 318 193 318;
#P connect 17 0 18 0;
#P fasten 4 2 19 0 159 128 226 128;
#P fasten 4 2 20 0 159 128 291 128;
#P fasten 21 0 22 0 351 177 291 177;
#P connect 20 0 22 0;
#P fasten 19 0 22 0 226 177 291 177;
#P fasten 27 0 24 0 442 310 442 317 325 317;
#P connect 23 0 24 0;
#P connect 24 0 25 0;
#P fasten 4 2 21 0 159 128 351 128;
#P connect 25 1 26 0;
#P fasten 28 0 24 1 474 321 379 321;
#P pop;

and here when i tried to connect to it:

max v2;
#N vpatcher 11 126 611 526;
#P origin 0 -2;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 180 236 32 196617 print;
#P message 356 163 79 196617 record 100000;
#P toggle 352 112 15 0;
#P message 211 111 29 196617 stop;
#P message 189 95 67 196617 startwindow;
#P toggle 69 87 15 0;
#P message 344 137 30 196617 open;
#P newex 167 131 31 196617 adc~;
#P message 134 274 148 196617 2006-10-26—.aif;
#P newex 145 207 46 196617 sampler;
#P connect 0 0 1 0;
#P connect 4 0 0 0;
#P connect 8 0 0 1;
#P connect 2 0 0 1;
#P connect 3 0 0 1;
#P connect 7 0 0 1;
#P connect 5 0 2 0;
#P connect 6 0 2 0;
#P connect 0 1 9 0;
#P connect 2 1 0 2;
#P pop;

what is wrong?

eboy


October 26, 2006 | 12:27 pm


October 28, 2006 | 2:50 am

I was bored, so I did open your patcher. I’m not sure exactly what trouble you’re having, since you didn’t say and I’m not bored enough to really agonize over it. I haven’t looked at your patches for all that long, but I did notice that you are sending a "time" message to "date" in sampler.mxt. The message "time" causes the time to be sent out the middle outlet of "date." As far as I can tell, you have nothing connected to that outlet.

Hope that helps,
EH


October 28, 2006 | 12:26 pm

Boye Riis jr. wrote:
> i have a problem making a recording with sampler.mxt
>
> here is sampler.mxt :

I didn’t check for any problems, but a first glance would show that you
are each time you start recording, you reinitialise sfrecord~ with
resample, nchans and samptype. Maybe its better to do that with a
loadbang only once?

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


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