Re: Automated Soundfile Creation

May 2, 2006 at 7:57pm

Re: Automated Soundfile Creation

On 2 mai 06, at 12:14, bvoelker@mindspring.com wrote:
> i can make the buffers, but i don’t know how to make the
> soundfiles from the segments output by slice~.
> i would like to have control over where the soundfiles are saved as
> well.

The “write” message to buffer~ accepts a filepath.

Roby

#25847
May 2, 2006 at 8:10pm

thanks. is there a way to include beginning and ending sample points to write from the buffer?

bradley

#76587
May 2, 2006 at 9:49pm

NAFAIK.
You probably have to crop/copy the buffer.
Search the archive and/or http://www.maxobjects.com, there may be other
solutions out there.
Wait, there is jit.buffer~ too.

Roby

#76588
May 2, 2006 at 10:00pm

and how does write take the filepath argument? when i just append a write message with something like disk:folder:subfolder or C:/folder/subfolder it just gives me an “extra argument” error for write.

#76589
May 2, 2006 at 10:35pm

On 2 mai 06, at 23:59, bvoelker@mindspring.com wrote:

> and how does write take the filepath argument? when i just append a
> write message with something like disk:folder:subfolder or C:/
> folder/subfolder it just gives me an “extra argument” error for write.

The following patch works here (Mac).
“tosymbol” might make the difference.
And don’t forget to first save the patch below after creating it with
“New from Clipboard”, otherwise it won’t work.
How should thispatcher know its path if this path doesn’t exist?

Roby

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 182 220 51 196617 tosymbol;
#B color 5;
#P newex 182 111 135 196617 t b s path;
#P newex 182 165 185 196617 zl reg;
#P message 182 75 83 196617 mysoundfile.aiff;
#P newex 182 192 72 196617 sprintf %s%s;
#P newex 182 247 73 196617 prepend write;
#N thispatcher;
#Q end;
#P newobj 306 138 61 196617 thispatcher;
#P newex 182 277 117 196617 buffer~ writetest 1000;
#P connect 1 1 5 1;
#P connect 6 2 1 0;
#P connect 6 1 3 1;
#P connect 2 0 0 0;
#P connect 7 0 2 0;
#P connect 3 0 7 0;
#P connect 5 0 3 0;
#P connect 6 0 5 0;
#P connect 4 0 6 0;
#P window clipboard copycount 8;

#76590
May 4, 2006 at 12:47am

thanks a lot for your help and for the patch. i think i’ll have to study it closer…

bradley

#76591

You must be logged in to reply to this topic.