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
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
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)
Frank Barknecht _ ______footils.org_ __goto10.org__