Hey all,
I just did a quick hack job on Frank's improved nqpoly4 to make
nqpoly5. It is very similar to the nqpoly4 but loadbangs work
properly, thanks to the use of IOhannes' very useful [initbang].
I removed Frank's two additional inlets for number and patch name,
since those wouldn't have working loadbang support. It's easy to
send a loadband to each patch instance that nqpoly creates, but then
all of the abstractions inside of that would not be so easy to send
loadbangs to.
Here's the code:
.hc
Mistrust authority - promote decentralization. - the hacker ethic
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
I just did a quick hack job on Frank's improved nqpoly4 to make
nqpoly5. It is very similar to the nqpoly4 but loadbangs work
properly, thanks to the use of IOhannes' very useful [initbang].
Thanks for bringing this up again, but there is an easier and pure-Pd way to add the missing loadbang. I now checked in the fix to nqpoly4.pd which adds loadbang support by sending a final message "loadbang" to the poly-subpatch.
I kept the inlets for compatibilitly.
Frank
Hi Frank,
Can this fix be applied to [polypoly] as well?
Phil
Frank Barknecht wrote:
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
I just did a quick hack job on Frank's improved nqpoly4 to make
nqpoly5. It is very similar to the nqpoly4 but loadbangs work
properly, thanks to the use of IOhannes' very useful [initbang].Thanks for bringing this up again, but there is an easier and pure-Pd way to add the missing loadbang. I now checked in the fix to nqpoly4.pd which adds loadbang support by sending a final message "loadbang" to the poly-subpatch.
I kept the inlets for compatibilitly.
Ciao
Ah, a preemptive enhancement, as it were. I vaguely wondered why I never had any trouble with [loadbang] and [polypoly].
Thanks, Frank.
Phil
Frank Barknecht wrote:
Hallo, Phil Stone hat gesagt: // Phil Stone wrote:
Can this fix be applied to [polypoly] as well?
No.
Because it already is. ;)
Ciao
Hallo, Phil Stone hat gesagt: // Phil Stone wrote:
Ah, a preemptive enhancement, as it were. I vaguely wondered why I never had any trouble with [loadbang] and [polypoly].
Yep, I just forgot to include the same fix to nqpoly4 so I'm also responsibe that Hans made another workaround. But now it's in SVN in both places.
Frank
On Nov 5, 2008, at 12:05 PM, Frank Barknecht wrote:
Hallo, Phil Stone hat gesagt: // Phil Stone wrote:
Ah, a preemptive enhancement, as it were. I vaguely wondered why I never had any trouble with [loadbang] and [polypoly].
Yep, I just forgot to include the same fix to nqpoly4 so I'm also responsibe that Hans made another workaround. But now it's in SVN in both places.
Actually, please remove that if you did check it in. That change to
nqpoly4 is not backwards compatible and will likely cause patch
breakage. Make a new objectclass if you want to add that feature.
About the loadbang support, AFAIK, the loadbang technique in polypoly
will not work for abstractions that are used with the patches that
are instantiated using polypoly. This initbang technique means all
levels get proper loadbangs. Plus initbang has been submitted to
Miller, so its just a matter of him accepting it.
.hc
All mankind is of one author, and is one volume; when one man dies,
one chapter is not torn out of the book, but translated into a better
language; and every chapter must be so translated.... -John Donne
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
Actually, please remove that if you did check it in. That change to
nqpoly4 is not backwards compatible and will likely cause patch
breakage. Make a new objectclass if you want to add that feature.
You're right, it will lead to double loadbangs. I didn't think of this and will undo it. Thanks for that report.
About the loadbang support, AFAIK, the loadbang technique in polypoly
will not work for abstractions that are used with the patches that
are instantiated using polypoly. This initbang technique means all
levels get proper loadbangs.
All levels get proper loadbangs with the [loadbang(->[s pd-x] technique already, there's no need for initbang in that case at all.
Frank
On Nov 7, 2008, at 3:05 PM, Frank Barknecht wrote:
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
Actually, please remove that if you did check it in. That change to nqpoly4 is not backwards compatible and will likely cause patch breakage. Make a new objectclass if you want to add that feature.
You're right, it will lead to double loadbangs. I didn't think of this and will undo it. Thanks for that report.
About the loadbang support, AFAIK, the loadbang technique in polypoly will not work for abstractions that are used with the patches that are instantiated using polypoly. This initbang technique means all levels get proper loadbangs.
All levels get proper loadbangs with the [loadbang(->[s pd-x]
technique already, there's no need for initbang in that case at all.
Hmm, that does indeed work, according to the quick test I did. I am
pretty sure I tested this in the project I am working on, and it
didn't work then. I'll see if I can find that.
.hc
Ciao
Frank
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
"Free software means you control what your computer does. Non-free
software means someone else controls that, and to some extent
controls you." - Richard M. Stallman
On Nov 7, 2008, at 11:08 PM, Hans-Christoph Steiner wrote:
On Nov 7, 2008, at 3:05 PM, Frank Barknecht wrote:
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
Actually, please remove that if you did check it in. That change to nqpoly4 is not backwards compatible and will likely cause patch breakage. Make a new objectclass if you want to add that feature.
You're right, it will lead to double loadbangs. I didn't think of
this and will undo it. Thanks for that report.About the loadbang support, AFAIK, the loadbang technique in
polypoly will not work for abstractions that are used with the patches that are instantiated using polypoly. This initbang technique means all levels get proper loadbangs.All levels get proper loadbangs with the [loadbang(->[s pd-x]
technique already, there's no need for initbang in that case at all.
Also, I forgot to mention, I added a tiny bit of code to my own
hacked nqpoly6 which draws the instances all in a column instead of
on top of each other. That makes it easier to find instances when
debugging. If you want to add it to polypoly, here's my code:
.hc
Ciao
Frank
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
"Free software means you control what your computer does. Non-free
software means someone else controls that, and to some extent
controls you." - Richard M. Stallman
Using ReBirth is like trying to play an 808 with a long stick. - David Zicarelli
Nice! I really appreciate this little feature. It helps to see what's going on WAY better now.
Thanks,
~Kyle
On Fri, Nov 7, 2008 at 10:26 PM, Hans-Christoph Steiner hans@eds.orgwrote:
On Nov 7, 2008, at 11:08 PM, Hans-Christoph Steiner wrote:
On Nov 7, 2008, at 3:05 PM, Frank Barknecht wrote:
Hallo,
Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
Actually, please remove that if you did check it in. That change to
nqpoly4 is not backwards compatible and will likely cause patch breakage. Make a new objectclass if you want to add that feature.
You're right, it will lead to double loadbangs. I didn't think of this and will undo it. Thanks for that report.
About the loadbang support, AFAIK, the loadbang technique in polypoly
will not work for abstractions that are used with the patches that are instantiated using polypoly. This initbang technique means all levels get proper loadbangs.
All levels get proper loadbangs with the [loadbang(->[s pd-x] technique already, there's no need for initbang in that case at all.
Also, I forgot to mention, I added a tiny bit of code to my own hacked nqpoly6 which draws the instances all in a column instead of on top of each other. That makes it easier to find instances when debugging. If you want to add it to polypoly, here's my code:
.hc
Ciao -- Frank
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
"Free software means you control what your computer does. Non-free software means someone else controls that, and to some extent controls you."
- Richard M. Stallman
Using ReBirth is like trying to play an 808 with a long stick. -David Zicarelli
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list