I like this idea very much! Could there be an argument flag? e.g.

$ pd mypatch.pd -a 23

Basically like terminal commands in sox, where the flags apply to import and 
output files dependent on the placement, in PD it could work as flags for PD 
before and in between the filename(s) to be opened.

Sebastian
On 8 Jun 2020, 14:54 +0100, Christof Ressi <i...@christofressi.com>, wrote:
> Ah, that's an interesting idea. Unfortunately, your proposed syntax wouldn't 
> work because any arguments after the flags are treated as patch files, so in 
> your case Pd would try to open "mypatch.pd" and "23".
> Top level patches usually don't use creation arguments because it is not 
> really possible to provide them with the current opening mechanism. But I 
> totally see how this could be useful. It would need some surgery in Pd, 
> though. Feel free to open an issue on GitHub!
> In the meantime, you can have a wrapper patch with a receiver which 
> dynamically creates the actual patch with the desired creation arguments.
> Christof
> On 08.06.2020 15:23, Mario Buoninfante wrote:
> > Hi Jack,
> >
> > Thanks for your help. That's great but is not exactly what I'm looking for.
> > In my previous email I missed an important bit, what I'd like to do is pass 
> > an arg to a specific patch.
> > Something like
> >
> > > pd mypatch.pd 23
> >
> > and then in "mypatch" I have [$1] that is now 23.
> >
> > Cheers,
> > Mario
> >
> >
> > _______________________________________________
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management -> 
> > https://lists.puredata.info/listinfo/pd-list
> _______________________________________________
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to