atom feed55 messages in at.iem.pd-list[PD] declare [was: Re: Idiomatic Pd]
FromSent OnAttachments
Luke IanniniJul 27, 2008 6:33 pm 
Luigi RensinghoffJul 28, 2008 4:01 am 
Hans-Christoph SteinerJul 28, 2008 1:39 pm 
Chris McCormickJul 28, 2008 7:48 pm 
Luke IanniniJul 28, 2008 9:48 pm 
Frank BarknechtJul 28, 2008 10:31 pm 
Luke IanniniJul 28, 2008 11:07 pm 
Luke IanniniJul 28, 2008 11:29 pm 
Frank BarknechtJul 28, 2008 11:53 pm 
IOhannes m zmoelnigJul 29, 2008 12:13 am 
Matt BarberJul 29, 2008 12:18 am 
Frank BarknechtJul 29, 2008 1:04 am 
Enrique ErneJul 29, 2008 5:01 am 
marius schebellaJul 29, 2008 7:01 am 
Matt BarberJul 29, 2008 7:28 am 
Frank BarknechtJul 29, 2008 8:39 am 
Matt BarberJul 29, 2008 9:41 am 
Hans-Christoph SteinerJul 29, 2008 10:29 am 
Hans-Christoph SteinerJul 29, 2008 10:33 am 
Hans-Christoph SteinerJul 29, 2008 10:34 am 
Frank BarknechtJul 29, 2008 11:04 am 
marius schebellaJul 29, 2008 11:23 am 
marius schebellaJul 29, 2008 11:25 am 
Hans-Christoph SteinerJul 29, 2008 12:09 pm 
Hans-Christoph SteinerJul 29, 2008 12:10 pm 
Mike McGonagleJul 29, 2008 12:40 pm 
Matt BarberJul 29, 2008 12:43 pm 
Thomas MayerJul 29, 2008 12:53 pm 
Matt BarberJul 29, 2008 1:28 pm 
Hans-Christoph SteinerJul 29, 2008 4:47 pm 
Frank BarknechtJul 30, 2008 12:16 am 
Frank BarknechtJul 30, 2008 1:01 am 
Chris McCormickJul 30, 2008 1:46 am 
Hans-Christoph SteinerJul 30, 2008 9:12 am 
Frank BarknechtJul 30, 2008 10:10 am 
marius schebellaJul 30, 2008 12:14 pm 
Frank BarknechtJul 30, 2008 12:34 pm 
Roman HaefeliJul 30, 2008 4:49 pm 
marius schebellaJul 30, 2008 6:08 pm 
Hans-Christoph SteinerJul 30, 2008 8:31 pm 
Hans-Christoph SteinerJul 30, 2008 8:44 pm 
Frank BarknechtJul 30, 2008 11:20 pm 
IOhannes m zmoelnigJul 31, 2008 12:33 am 
Damian StewartJul 31, 2008 1:11 am 
Roman HaefeliJul 31, 2008 1:16 am 
Matt BarberJul 31, 2008 1:24 am 
Roman HaefeliJul 31, 2008 1:56 am 
Matt BarberJul 31, 2008 3:29 am 
Frank BarknechtJul 31, 2008 8:14 am 
Hans-Christoph SteinerAug 1, 2008 1:48 pm.pd
Luke IanniniAug 3, 2008 2:02 am 
marius schebellaAug 3, 2008 12:32 pm 
Luke IanniniAug 7, 2008 11:36 pm 
IOhannes m zmölnigAug 7, 2008 11:54 pm 
Luke IanniniSep 19, 2008 4:53 am 
Subject:[PD] declare [was: Re: Idiomatic Pd]
From:Frank Barknecht (fb@footils.org)
Date:Jul 30, 2008 1:01:29 am
List:at.iem.pd-list

Hallo, Matt Barber hat gesagt: // Matt Barber wrote:

When 0.39 begins to wane (so [declare] can be used), ...

Careful here: [declare -path ...] is disabled inside of abstractions in Pd-0.41.

Right -- but [declare -path ...] is terribly useful for not having a patch's main directory cluttered with 100 abstractions, which was the main point... but since 0.39 is still widely in use I tend to avoid it unless it's for patches I know only I am going to be running. I guess it's okay to be conservative in some parts of life. =o)

OT -- out of curiosity, if it were to be enabled within an abstraction, would the -path be relative to the abstraction file or to the patch in which it's instantiated?

Relative paths are important if you use declare in the way you described here: to make shipping "bundles" easier by putting all used abstractions into a subdirectory and adding that subdir to the searchpath of the MAIN.pd. As you don't know where a user puts your project, you cannot use absolute paths.

Now inside of an abstraction I would discern two use cases: One is using declare just as in the MAIN patch to add further subdirectories for other helper abstractions. Here the only thing that makes sense IMO when using relative paths is to have them relative to the abstraction itself.

Another use case is the path for "resources" like soundfiles or sequencer patterns. The example Miller once mentioned on pd-dev was having a [soundfiler] in a sample player abstraction. Usually this abstraction would live somewhere far away from your soundfiles or your MAIN.pd.

[soundfiler] also looks for soundfiles in the pd search path, so users may feel inclined to manipulate the path to make the sampler abstraction find wav-files in a "snd"-directory somewhere without giving the full absolute path. Here it probably is more common to use paths relative to MAIN.pd instead of sampleplayer.pd so the MAIN-file's -path setting would reach into the child patch as well.

A drum synth abstraction may be different again: Maybe it has some default samples for kick and hihat in a subdirectory next to itself. Now you could manipulate the path to make it find these samples first. Again absolute paths don't work here, as your synth.pd may be installed anywhere.

As there is no consensus which of the two path alternatives should be used inside an abstraction, -path currently is disabled completely in an abstraction. (Btw. I don't know how an abstraction knows that it's used as an abstraction, not as MAIN.pd.)

Ciao