[PD] how to modify path in open message

2007-05-31 Thread tania habib

Hello,

I have made the script for recording wave files using 16 channels.
I am using writesf~ with the message open /Users/tania/Desktop/ch1.wav
My question is that can there be a quick way of just changing one message
box so that If I change the destination directory for files, it can be
changed for all.
Or is there a way of seperating the destination file path and file name into
two seperate blocks and combining them later in open message block
So that by just sending a bang, I will get the the changes made in all
blocks

regards,
tania
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to modify path in open message

2007-05-31 Thread Roman Haefeli
On Thu, 2007-05-31 at 19:17 +0200, tania habib wrote:
 Hello,
 
 I have made the script for recording wave files using 16 channels.
 I am using writesf~ with the message open /Users/tania/Desktop/ch1.wav
 My question is that can there be a quick way of just changing one
 message box so that If I change the destination directory for files,
 it can be changed for all. 

check the help-file for [makefilename]. with [makefilename] you can
merge two symbol messages (in your case path and filename) to one single
symbol message, that can be sent over a [open $1( message to
[writesf~]. 

maybe you are also interested in [openpanel]/[savepanel]. when banged,
they open a filebrowser and output the filename (with absolute path) as
a symbol message.

roman 






___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to modify path in open message

2007-05-31 Thread Frank Barknecht
Hallo,
tania habib hat gesagt: // tania habib wrote:

 Or is there a way of seperating the destination file path and file name into
 two seperate blocks and combining them later in open message block

Yes. Assuming your directory and filename come in a list for example
generated with [pack s s]. Then If you're using pd-0.40 and up you can
just use a message box: [open $1/$2(

If you're still on an older version of Pd, you can use [makefilename]
in two steps as shown in attached patch (or the help file)

Ciao
-- 
 Frank Barknecht _ __footils.org_ __goto10.org__


double-makefilename.pd
Description: application/puredata
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list