Dear friends,
I feel very embarassed to post the following questions after all these years, but I still don't know whether I'm doing something wrong or some features I was expecting are missing:
I was not able to shove a bang down an inlet - what does an inlet accept beside numbers?
I was not able to create a subpatch, save it into a file, and create an object with 'pd file.pd' in it (like you can do on Max)
Sorry again
nicb
+---------------------------------+ | Nicola Bernardini | |E-mail: nicb@centrotemporeale.it | +---------------------------------+
Hi
combination of numbers and/or 'symbols' (eg. 'bang' or 'set' etc). There are in addition of course, signal only inlets. 2. for abstractions (a subpatch saved as a file) reference it by typing its name into an object without the '.pd' suffix or with the preceding 'pd' identifier. Ie. your example should simply be "file" rather than "pd file.pd". A 'one-off' subpatch (saved in its parent rather than to file) is created when you type "pd name" into an object - when this is done, a new window pops up in which you can add the contents of the patch.
see: http://crca.ucsd.edu/~msp/Pd_documentation/index.htm for examples and more detail.
Cheers iain
Iain Mott phone: +61 3 9639 2959 email: mott@reverberant.com http://www.reverberant.com
-----Original Message----- From: Nicola Bernardini [mailto:nicb@centrotemporeale.it] Sent: Saturday, 19 May 2001 10:02 PM To: pd list Cc: Maura Capuzzo; Nicola Giosmin Subject: [PD] still a newbie after all these years
Dear friends,
I feel very embarassed to post the following questions after all these years, but I still don't know whether I'm doing something wrong or some features I was expecting are missing:
I was not able to shove a bang down an inlet - what does an inlet accept beside numbers?
I was not able to create a subpatch, save it into a file, and create an object with 'pd file.pd' in it (like you can do on Max)
Sorry again
nicb
+---------------------------------+ | Nicola Bernardini | |E-mail: nicb@centrotemporeale.it | +---------------------------------+
Il 20/05/01 alle 08:16, Iain Mott scrisse:
- Besides numbers (floats) an object might accept lists, which can be any
combination of numbers and/or 'symbols' (eg. 'bang' or 'set' etc). There are in addition of course, signal only inlets. 2. for abstractions (a subpatch saved as a file) reference it by typing its name into an object without the '.pd' suffix or with the preceding 'pd' identifier. Ie. your example should simply be "file" rather than "pd file.pd". A 'one-off' subpatch (saved in its parent rather than to file) is created when you type "pd name" into an object - when this is done, a new window pops up in which you can add the contents of the patch.
see: http://crca.ucsd.edu/~msp/Pd_documentation/index.htm for examples and more detail.
Thanks Iain, very kind of you. 2, I should have known: same as in Max.
a very ashamed nicb
+---------------------------------+ | Nicola Bernardini | |E-mail: nicb@centrotemporeale.it | +---------------------------------+
Iain Mott wrote:
- for abstractions (a subpatch saved as a file) reference it by typing its
name into an object without the '.pd' suffix or with the preceding 'pd' identifier. Ie. your example should simply be "file" rather than "pd file.pd". A 'one-off' subpatch (saved in its parent rather than to file) is created when you type "pd name" into an object - when this is done, a new window pops up in which you can add the contents of the patch.
Which brings up (begs) the questions: which one is faster / more efficient /"better" in which way(s)? is it better to copy a subpatch from one patch to another, or to create an external file and load it?
suggestions, implementation issues, references to documentation greatly appreciated...
cheers,
tm
They're identical, except that abstractions are saved as a separate file, so that you can re-use them. So, if you're going to use anything more than once, it's better as an abstraction; if you're going to use it only in one place just use a one-off sub-patch.
cheers Miller
On Mon, May 21, 2001 at 10:57:37PM +0200, Timmy B wrote:
Iain Mott wrote:
- for abstractions (a subpatch saved as a file) reference it by typing its
name into an object without the '.pd' suffix or with the preceding 'pd' identifier. Ie. your example should simply be "file" rather than "pd file.pd". A 'one-off' subpatch (saved in its parent rather than to file) is created when you type "pd name" into an object - when this is done, a new window pops up in which you can add the contents of the patch.
Which brings up (begs) the questions: which one is faster / more efficient /"better" in which way(s)? is it better to copy a subpatch from one patch to another, or to create an external file and load it?
suggestions, implementation issues, references to documentation greatly appreciated...
cheers,
tm
Il 21/05/01 alle 21:35, Miller Puckette scrisse:
They're identical, except that abstractions are saved as a separate file, so that you can re-use them. So, if you're going to use anything more than once, it's better as an abstraction; if you're going to use it only in one place just use a one-off sub-patch.
Thanks Miller... ahem... which brings to the next question:
is there a way to make tables be local variables?
To specify better: if I make an abstraction which I want to re-use twice in a single patch, I'm going to get name space pollution conflicts right? Is there a way I can avoid this?
thanks a lot again
nicb
+---------------------------------+ | Nicola Bernardini | |E-mail: nicb@centrotemporeale.it | +---------------------------------+
Hi again Nicola,
Yes, this is done by using "$" substitution, as in "table $1-tab1 1000". If you say that in an abstraction, the "$1" gets substituted by the creation argumetn of the abstraction.
"$0" gives you a unique number in case you don't want to have to specify it at all, so "$0-bazoo" type names work as if they were in a local namespace.
The substitution only works if "$" is the first character of the symbol; i.e., "hi-$1-there" doesn't get expanded.
ahem... which brings to the next question:
is there a way to make tables be local variables?
To specify better: if I make an abstraction which I want to re-use twice in a single patch, I'm going to get name space pollution conflicts right? Is there a way I can avoid this?
thanks a lot again
nicb
+---------------------------------+ | Nicola Bernardini | |E-mail: nicb@centrotemporeale.it | +---------------------------------+