#44 Make each canvas uniquely adressable

open
nobody
puredata (65)
5
2006-07-21
2006-07-19
No

For the purposes of dynamic patching, it would be very
useful if all canvases were uniquely addressable. For
example:

[;pd-my_abstraction.pd foo bar(

Should retain its current behaviour and go to all
instances of that abstraction

whereas

[;pd-$0 foo bar(

Should go to its container canvas.

And the expanded $0 variable should work from other
canvases. E.g. if $0 above expands to 1001, then

[;pd-1001 foo bar(

should have the same effect as the above, but work from
any open canvas.

Discussion

  • Hans-Christoph Steiner

    • status: open --> pending
     
  • Hans-Christoph Steiner

    Logged In: YES
    user_id=27104

    You can do this already with [namecanvas $0]. [namecanvas]
    reports its deprecated, but I think we all agree that it
    should stay around.

     
  • Jamie Bullock

    Jamie Bullock - 2006-07-20
    • status: pending --> open
     
  • Jamie Bullock

    Jamie Bullock - 2006-07-20

    Logged In: YES
    user_id=1361897

    Not in my version of Pd you can't (0.40-0test01).
    [namecanvas $0] doesn't instantiate. If you create a
    [namecanvas $1] and then instatiate the abstraction with a
    name .e.g 'foo', then doing [;foo msg( from the parent
    crashes Pd. The latter, I presume, is a bug, and I'll file
    it on the tracker.

    Personally I think the best solution to this is to add the
    capability to do [s $0]

     
  • Hans-Christoph Steiner

    • status: open --> pending
     
  • Hans-Christoph Steiner

    Logged In: YES
    user_id=27104

    Sorry, I should have been a little bit more careful. This
    works:

    [namecanvas $0-receive]

    [namecanvas] needs a symbol argument, and $ args are only
    expanded when they are at the beginning of a symbol.
    (Though I think IOhannes' patch to change that was accepted).

     
  • Jamie Bullock

    Jamie Bullock - 2006-07-21
    • status: pending --> open
     
  • Jamie Bullock

    Jamie Bullock - 2006-07-21

    Logged In: YES
    user_id=1361897

    Thanks for this info, it is very useful for me. I guess the
    feature request now becomes:

    "Please don't deprecate namecanvas"

     
  • Jamie Bullock

    Jamie Bullock - 2006-07-21

    Logged In: YES
    user_id=1361897

    BTW: I have added [namecanvas $0-r] to the tips n tricks wiki

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks