[PD] turn abstractions into subpatches

2009-10-15 Thread info
hi all,

just an idea:
This would be a feature I would like:
Turn all abstractions used in a patch into subpatches, replacing the
$1's in objects inside by the actual assigned numbers or arguments.
That way you could more esily distribute a patch as one file.

Tim


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


Re: [PD] turn abstractions into subpatches

2009-10-15 Thread Mathieu Bouchard

On Thu, 15 Oct 2009, i...@timvets.net wrote:

just an idea: This would be a feature I would like: Turn all 
abstractions used in a patch into subpatches, replacing the $1's in 
objects inside by the actual assigned numbers or arguments. That way you 
could more esily distribute a patch as one file.


It doesn't work with objects that use t_canvasenvironment, such as 
GridFlow's [args], but also, [canvasargs] and other similar things... 
whenever an abstraction looks up its own dir or search path.


the exact quote, from the g_canvas.c definition:

struct _canvasenvironment {
t_symbol *ce_dir;  /* directory patch lives in */
int ce_argc;   /* number of $ arguments */
t_atom *ce_argv;   /* array of $ arguments */
int ce_dollarzero; /* value of $0 */
t_namelist *ce_path;   /* search path */
};

 _ _ __ ___ _  _ _ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] turn abstractions into subpatches

2009-10-15 Thread Jonathan Wilkes


--- On Thu, 10/15/09, i...@timvets.net i...@timvets.net wrote:

 From: i...@timvets.net i...@timvets.net
 Subject: [PD] turn abstractions into subpatches
 To: pd-list@iem.at
 Date: Thursday, October 15, 2009, 4:52 PM
 hi all,
 
 just an idea:
 This would be a feature I would like:
 Turn all abstractions used in a patch into subpatches,
 replacing the
 $1's in objects inside by the actual assigned numbers or
 arguments.
 That way you could more esily distribute a patch as one
 file.
 
 Tim

I think it would be much more useful to have the [pdddefine] functionality 
that Luke Iannini proposed back in 2006. (Just search the list for 
pddefine to see his proposal.) One of the reasons I like this idea is 
because one could immediately use one-off abstractions in a new patch 
without having to save anything.

The bundle file type discussed in the same thread would also be very useful.

-Jonathan


  

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