Re: [PD] documenting messages to/from Pd and dynamic patching

2021-12-01 Thread Alexandre Torres Porres
wn >>>> machine and crash Pd... that's half the fun for such activities anyway >>>> (learning). >>>> >>>> 3. We should get a poll of which internal messages are currently in use >>>> and consider which of these could be moved into "user s

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-12-01 Thread Christof Ressi
y useful even if clunky through the current workarounds. Even with [clone] there are still many use cases... On Nov 28, 2021, at 12:25 AM, pd-list-requ...@lists.iem.at wrote: Message: 1 Date: Sat, 27 Nov 2021 20:20:4

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-12-01 Thread Alexandre Torres Porres
rash Pd... that's half the fun for such activities anyway >>> (learning). >>> >>> 3. We should get a poll of which internal messages are currently in use >>> and consider which of these could be moved into "user space" and/or >>> re

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-12-01 Thread Christof Ressi
s. Even with [clone] there are still many use cases... On Nov 28, 2021, at 12:25 AM, pd-list-requ...@lists.iem.at wrote: Message: 1 Date: Sat, 27 Nov 2021 20:20:49 +0100 From: Jean-Yves Gratius To:pd-list@lists.iem.at Subject: Re: [PD] documenti

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-12-01 Thread Alexandre Torres Porres
d/or >> replaced by a better API. I believe this thread is already providing a good >> list... >> >> 4. Open a technical discussion on supporting "dynamic patching" >> officially. It's clearly very useful even if clunky through the current >> workar

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-28 Thread Alexandre Torres Porres
I realize now how this can be useful and important to make abstractions fire a loabdang if they are created via dynamic patching! Well, I added this information then, with examples. Em dom., 28 de nov. de 2021 às 17:30, Alexandre Torres Porres < por...@gmail.com> escreveu: > > > Em dom., 28 de

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-28 Thread Alexandre Torres Porres
Em dom., 28 de nov. de 2021 às 16:33, João Pais escreveu: > I think you didn't understand - if you have an abstraction called "abs1" > used in the patch, sending messages to pd-abs1 won't work. They need to be > sent to pd-abs1.pd - and that could be clearly named in the documentation. > Oh, I se

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-28 Thread João Pais
The first one is mentioned in [pd Dynamic-Patching], although it might be easier to understand if there is an example immediately under the text. what do you mean by "immediately under the text"? just a couple of objects under the paragraph where it explains it. then it's more di

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Alexandre Torres Porres
. It's clearly very useful even if clunky through the current > workarounds. Even with [clone] there are still many use cases... > > On Nov 28, 2021, at 12:25 AM, pd-list-requ...@lists.iem.at wrote: > > Message: 1 > Date: Sat, 27 Nov 2021 20:20:49 +0100 > From: Jean-Y

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Miller Puckette via Pd-list
ng "dynamic patching" > > officially. It's clearly very useful even if clunky through the current > > workarounds. Even with [clone] there are still many use cases... > > > > > On Nov 28, 2021, at 12:25 AM, pd-list-requ...@lists.iem.at wr

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Christof Ressi
workarounds. Even with [clone] there are still many use cases... On Nov 28, 2021, at 12:25 AM, pd-list-requ...@lists.iem.at wrote: Message: 1 Date: Sat, 27 Nov 2021 20:20:49 +0100 From: Jean-Yves Gratius To:pd-list@lists.iem.at Subject: Re: [PD] documenting messages to/from Pd and dynamic patch

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Dan Wilcox
; > > On 27/11/2021 17:19, pd-list-requ...@lists.iem.at > <mailto:pd-list-requ...@lists.iem.at> wrote: >> ForwardedMessage.eml >> >> Subject: >> Re: [PD] documenting messages to/from Pd and dynamic patching >> From: >> Christof Ressi mailto:i...@c

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Jean-Yves Gratius
On 27/11/2021 17:19, pd-list-requ...@lists.iem.at wrote: ForwardedMessage.eml Subject: Re: [PD] documenting messages to/from Pd and dynamic patching From: Christof Ressi Date: 27/11/2021 à 17:01 To: Pd-List Two examples that come to my mind: 1) [iemguts/canvasselect] allows to (de)select

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Alexandre Torres Porres
just adding to my previous email below on how namecanvas talks about abstractions. It actually already did talk before, but I made it more clear, saying "*This is sometimes the only way to send a message to a canvas when initializing graph-on-parent abstractions with local parameters (using "$0" to

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Christof Ressi
if I remember correctly iemguts also adds the possibility of deleting objects without the need to simulate a mouse select and a keyboard stroke (cut? idk..) Yes! [iemguts] adds a "delete" method to the canvas class so that you can delete individual objects by index. On 27.11.2021 17:25, José d

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Alexandre Torres Porres
You know, data structures explicitly use messages to subpatches, like 'clear' and 'read/write'. So at least these are official. And the namecanvas help file had the example to make the patch create messages and we can agree this is pretty stable and used in patches. Also, 'connect' messages are use

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread José de Abreu
if I remember correctly iemguts also adds the possibility of deleting objects without the need to simulate a mouse select and a keyboard stroke (cut? idk..) (I don't know, but I think there was something about deleting with mouse emulation, but this was buggy too since you need to first bring the

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Alexandre Torres Porres
Perhaps referring to this black magic library is something I could do in the document. Em sáb., 27 de nov. de 2021 às 13:18, Alexandre Torres Porres < por...@gmail.com> escreveu: > nice! > > Em sáb., 27 de nov. de 2021 às 13:04, Christof Ressi < > i...@christofressi.com> escreveu: > >> Two exampl

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Alexandre Torres Porres
nice! Em sáb., 27 de nov. de 2021 às 13:04, Christof Ressi escreveu: > Two examples that come to my mind: > > 1) [iemguts/canvasselect] allows to (de)select objects simply by index. No > need to emulate mouse selection with "mouse" and "mouseup". > > 2) canvases/objects can be moved around with

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Alexandre Torres Porres
Em sáb., 27 de nov. de 2021 às 08:23, João Pais escreveu: > It could also be clearly mentioned that subpatches receive messages sent >> to pd-[subpatch], and abstractions are named [abstraction].pd (if I'm >> recalling correctly) - unless there is a namecanvas used in those. >> > > how isn't it c

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Christof Ressi
Two examples that come to my mind: 1) [iemguts/canvasselect] allows to (de)select objects simply by index. No need to emulate mouse selection with "mouse" and "mouseup". 2) canvases/objects can be moved around with [iemguts/canvasposition] resp. [iemguts/canvasobjectposition] Are there any

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Alexandre Torres Porres
Em sáb., 27 de nov. de 2021 às 11:59, Christof Ressi escreveu: > with [iemguts] there really is no reason to ever use > "mouse" and "mouseup" again. Unfortunately, many people seem to prefer > undocumented internal messages over a well tested external... > how exactly? please elaborate and give

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Christof Ressi
(I forgot why they are "illegal"), They are not "illegal", they are private. As I tried to explain in the last mail, messages like "donecanvasdialog" or "mouseup" are used for Pd core <-> GUI communication. The only reason why they exist in the first place is because Pd core and GUI live in dif

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread João Pais
but I've been using them for more than 15 years with no big issues. Well, a few years ago Miller changed the [donecanvasdialog( message. I noticed that it will break dynamic patching and asked him to use a workaround. He was nice enough to do it. So you were just lucky ;-) Note that the mes

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread Christof Ressi
If any of these methods is cut, then my patches won't work anymore - hopefully someone else's as well. You are using private APIs. Nobody made a guarantee that it would work forever. That being said, we try not to change - let alone remove - those methods unless absolutely necessary. but I'

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-27 Thread João Pais
Em sex., 26 de nov. de 2021 às 20:19, João Pais escreveu: I don't see a mention to these messages: mouse, mouseup, mousedown, relocate. And also all other messages related to gui stuff. yeah, I didn't put it. It felt like something hard to document and for more extreme cases. And n

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread Iain Duncan
+1 to having them in the docs but clearly labelled as something along the lines of "not in the public API - may change without notice". That kind of stuff is really helpful to people coming up on the whole system to better understand how it all works. my two cents Canadian. :-) On Fri, Nov 26, 20

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread Alexandre Torres Porres
Em sex., 26 de nov. de 2021 às 20:19, João Pais escreveu: > I don't see a mention to these messages: mouse, mouseup, mousedown, > relocate. And also all other messages related to gui stuff. > yeah, I didn't put it. It felt like something hard to document and for more extreme cases. And now that

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread João Pais
I don't see a mention to these messages: mouse, mouseup, mousedown, relocate. And also all other messages related to gui stuff. It could also be clearly mentioned that subpatches receive messages sent to pd-[subpatch], and abstractions are named [abstraction].pd (if I'm recalling correctly) -

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread Alexandre Torres Porres
Em sex., 26 de nov. de 2021 às 17:18, Christof Ressi escreveu: > don't advertize "coords" (at least you didn't mention "donecanvasdialog") > because that one should really be replaced by > https://github.com/pure-data/pure-data/pull/627 (hopefully in the next Pd > release :-) > yeah, makes sense

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread Alexandre Torres Porres
> In particular, please don't include any GUI dialog messages which are they all? anyway, I felt I was crossing a line, hence I'm waving here to the judges :) For instance, [namecanvas] did include a 'msg' message to canvas. I count that as a modest dynamic patch documentation. Also, many of us

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread Christof Ressi
I think there are definitely many "official" messages (e.g. "dsp", "fast-forward", "quit", etc.) that need to be documented properly, so in principle I very much welcome this effort. However, I'm rather sceptical about including any "dynamic patching" messages in the official documentation as

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread Alexandre Torres Porres
new commit, forgot about 'dirty' https://github.com/pure-data/pure-data/pull/1455/commits/8fe7ff12419c797bf33e6ff0409798d089dfba25 patch attached Em sex., 26 de nov. de 2021 às 17:05, Alexandre Torres Porres < por...@gmail.com> escreveu: > the reason I ask for revisions here is that I'm not an e

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread Alexandre Torres Porres
the reason I ask for revisions here is that I'm not an expert on this dark magic, so I'm not 100% sure about things. I can revert the commit in the PR and keep it on the fridge for the next release update if the real wizards see problems on it. Em sex., 26 de nov. de 2021 às 16:59, Alexandre Torre

[PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread Alexandre Torres Porres
People, I'm on a roll here, updating much of the help files and documentation. I just hit an important new addition, documenting "Messages to/from Pd" and "Dynamic Patching" I'd like you people to revise it. Here's the commit => https://github.com/pure-data/pure-data/pull/1455/commits/0ec5429629