Forums > MaxMSP

problems trying to record sfplay~ into a buffer

June 15, 2006 | 4:49 pm

hi

I’m having a bit of a problem with record~. I have an sfplay~ whose output i want to be able to capture into a buffer, but record~ doesn’t seem to want to do it. I’ve had no problems before, but I recently started using a digi mbox2 as my primary soundcard, and I have a slight suspicion that it could be related. If somebody could take a look, I’d be grateful. sorry if this is blindingly obvious

robin

#P user ezdac~ 44 135 88 168 0;
#P toggle 121 49 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 141 49 30 196617 open;
#P message 194 49 14 196617 0;
#P message 175 49 14 196617 1;
#N sfplay~ 2 120960 0 ;
#P newobj 141 85 61 196617 sfplay~ 2;
#P newex 141 164 75 196617 buffer~ buffer;
#P newex 141 137 86 196617 record~ buffer 2;
#P fasten 2 1 7 1 171 118 83 118;
#P connect 2 1 0 1;
#P fasten 2 0 7 0 146 118 49 118;
#P connect 2 0 0 0;
#P connect 6 0 0 0;
#P connect 3 0 2 0;
#P connect 4 0 2 0;
#P connect 5 0 2 0;
#P window clipboard copycount 8;


June 15, 2006 | 4:55 pm

sorry – it was just that the buffer needed a length specified. i didn’t post it in that patch, but i had been using -1 with no luck

actually, this brings up a new question. -1 as the buffer size doesn’t seem to work with record~, so does this mean there is no way that a buffer can be resized on the fly?

robin (again)


June 15, 2006 | 8:29 pm

Your patch happily records the full length of zero seconds…

Best is to start your patches with the helpfiles, they usually work, and
you can copy bits and pieces into your own patches, modify them till
they don’t work anymore, and put them back into work, till you
understand the interna…

Stefan


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


June 16, 2006 | 10:14 am

thanks stefan. I’m an idiot.

rather than copy the part of the patch for inclusion in the list, I built it again, and neglected the argument -1 for the buffer length, which according to the helpfile lets it resize. if I want to achieve this using record~, is the only way to set a bigger buffer size than I think I will need?

robin


June 16, 2006 | 8:34 pm

Yes, a record~ wich will grow while recording doesn’t exist. If you want
to do something like that, use sfrecord~ and then replace the file into
a buffer~…
Look into the quickrecord patch to see how to name soundfiles
automatically…

Stefan


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


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