On 2016-03-22 01:44, João Pais wrote:
Hi Fred,

thanks, that looks promissing. But there is a problem, I'm on windows.
 Does the first line in the patch means that I have to find a unix
computer  to run it? Or can it be run from tcl?

No, it should work on Windows too. The line is only relevant if you want to run the script directly as an executable program, without feeding it to tclsh. If you start tclsh with the script as the first argument, it should work on any platform.

No testing on Windows is done however. There might be some issues with the line ending convention (LF vs CR,LF).

But knowing where to find a unix computer is always a good idea ;-),

Fred Jan

Best,

Joao

Hi João,

It appeared to be a simple program in Tcl, which you should have, as it
comes with Pd.
The usage is: tclsh changeCoords.tcl patchName xcoord ycoord line1
?line2? ...
lineN arguments may be a number or a range, like 12-15.

The patch is currently dumped to the console. Only minimal checking is done.

If you remove the #'s for the puts "..." lines, you can see some interim
results (which will ruin the patch format).

Greetings,

Fred Jan


_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to