Re: [PD] clone object - dynamically change number of instances?
This is indeed on my dolist... at least to receive a message to change the number of voices, perhaps not to be able to do so automatically (that seems to raise problems I donlt know how to solve :) M On Tue, Mar 06, 2018 at 11:04:15AM +0100, hans w. koch wrote: > someone with a better memory…or searching skills… > :-) > lets hope it gets upped on the to do list this way. > > > > > Am 06.03.2018 um 10:38 schrieb IOhannes m zmoelnig : > > > > On 2018-03-06 00:58, hans w. koch wrote: > >> is there any known way to dynamically change the number of instances > >> associated with a clone object, e.g. via message? > >> i know, the dsp graph would need to be rebulit, but for a project i am > >> contemplating that would be less of a concern. > >> > >> if not, can i suggest this for consideration as a feature request? > > > > https://lists.puredata.info/pipermail/pd-dev/2018-01/021422.html > > > > fgmasdr > > IOhannes > > > > ___ > > Pd-list@lists.iem.at mailing list > > UNSUBSCRIBE and account-management -> > > https://lists.puredata.info/listinfo/pd-list > > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] clone object - dynamically change number of instances?
someone with a better memory…or searching skills… :-) lets hope it gets upped on the to do list this way. > Am 06.03.2018 um 10:38 schrieb IOhannes m zmoelnig : > > On 2018-03-06 00:58, hans w. koch wrote: >> is there any known way to dynamically change the number of instances >> associated with a clone object, e.g. via message? >> i know, the dsp graph would need to be rebulit, but for a project i am >> contemplating that would be less of a concern. >> >> if not, can i suggest this for consideration as a feature request? > > https://lists.puredata.info/pipermail/pd-dev/2018-01/021422.html > > fgmasdr > IOhannes > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] clone object - dynamically change number of instances?
On 2018-03-06 00:58, hans w. koch wrote: > is there any known way to dynamically change the number of instances > associated with a clone object, e.g. via message? > i know, the dsp graph would need to be rebulit, but for a project i am > contemplating that would be less of a concern. > > if not, can i suggest this for consideration as a feature request? https://lists.puredata.info/pipermail/pd-dev/2018-01/021422.html fgmasdr IOhannes signature.asc Description: OpenPGP digital signature ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] clone object - dynamically change number of instances?
Hi all, if it's not for conceptual reasons or for a very small memory footprint, a possible take would be to switch off DSP processing for superfluous voices using a switch~ object within the loaded abstraction. best, Thomas > Am 06.03.2018 um 09:59 schrieb oliver : > > hans w. koch wrote: >> hello list, >> hello miller, >> >> is there any known way to dynamically change the number of instances >> associated with a clone object, e.g. via message? >> i know, the dsp graph would need to be rebulit, but for a project i am >> contemplating that would be less of a concern. > > hi, hans ! > > you are aware of the "messages to PD" examples ? > > afaict they are not mentioned in the latest official PD release, but i > attached one exmaple from PD-extended, that's still valid and documenting > this feature. this way you can easily change the instances of a clone object, > simply by deleting it and creating a new one with the right arguments. > > if you put your clone object as a single item into a subpatch, it's just a > "clear" message and a "obj ... " message to the subpatch. > > coming from MAX/MSP (where this object is called [poly~]), my experience is > that assigning a new number of voices via a message does pretty much the same > thing: it clears all former instances and reloads the new instances, all > loadbang messages sent anew, no values are kept. > > so i guess (while i too would appreciate a "voices" message for [clone]) in > the end the result would probably be pretty much the same. > > but mind you, this is no in-depth knowledge, just personal experience > > best > > oliver > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list signature.asc Description: Message signed with OpenPGP using GPGMail ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] clone object - dynamically change number of instances?
hans w. koch wrote: hello list, hello miller, is there any known way to dynamically change the number of instances associated with a clone object, e.g. via message? i know, the dsp graph would need to be rebulit, but for a project i am contemplating that would be less of a concern. hi, hans ! you are aware of the "messages to PD" examples ? afaict they are not mentioned in the latest official PD release, but i attached one exmaple from PD-extended, that's still valid and documenting this feature. this way you can easily change the instances of a clone object, simply by deleting it and creating a new one with the right arguments. if you put your clone object as a single item into a subpatch, it's just a "clear" message and a "obj ... " message to the subpatch. coming from MAX/MSP (where this object is called [poly~]), my experience is that assigning a new number of voices via a message does pretty much the same thing: it clears all former instances and reloads the new instances, all loadbang messages sent anew, no values are kept. so i guess (while i too would appreciate a "voices" message for [clone]) in the end the result would probably be pretty much the same. but mind you, this is no in-depth knowledge, just personal experience best oliver #N canvas 123 120 1246 795 12; #X msg 40 732 restore; #X text 23 29 objects; #X text 511 33 GUI stuff; #X msg 515 56 menusave; #X msg 515 80 menusaveas; #X msg 515 104 menuclose; #X msg 515 129 saveto; #X msg 515 216 cut; #X msg 515 242 copy; #X msg 515 290 duplicate; #X msg 515 153 tidy; #X msg 515 177 texteditor; #X msg 515 490 editmode \$1; #X msg 515 521 loadbang; #X msg 515 348 menufont; #X msg 515 432 findagain; #X msg 515 456 findparent; #X text 579 130 ?; #X msg 515 266 paste; #X msg 515 314 selectall; #X text 22 470 reset the patch; #X msg 40 492 clear; #N canvas 20 500 500 200 subpatch 0; #X coords 0 200 1 199 50 50 0; #X restore 513 707 pd subpatch; #X obj 40 762 s pd-subpatch; #X obj 515 664 s pd-subpatch; #X msg 40 236 connect 0 0 1 0; #X msg 40 575 read textfile.txt; #X msg 40 599 write textfile.txt; #X msg 515 558 vis \$1; #X obj 631 619 loadbang; #X msg 40 705 donecanvasdialog 1 -1 1 0 -1 1 1 50 50 100 100; #X text 22 685 this controls graph-on-parent; #X msg 40 260 disconnect 0 0 1 0; #X text 178 235 obj# outlet# obj# inlet#; #X text 117 733 ?; #X msg 40 173 graph mygraph; #X obj 173 201 s pd-mygraph; #X msg 173 173 pop \, array array1 100 float 2; #X msg 40 49 obj 350 10 r test; #X msg 40 73 msg 350 40 bang; #X msg 40 97 floatatom 350 70; #X msg 40 121 symbolatom 350 100 symbol; #X msg 40 145 text 350 130 comment; #N canvas 166 389 487 212 ds 0; #X obj 38 39 filledcurve 990 0 1 0 0 50 0 50 50 0 50; #X obj 38 66 drawcurve 0 1 15 15 20 15 20 20 15 20 15 15; #X obj 38 93 drawcurve 0 1 30 15 35 15 35 20 30 20 30 15; #X obj 38 120 filledcurve 999 0 1 10 25 25 45 40 25 25 35 10 25; #X obj 20 12 struct ds float x float y symbol sym; #X obj 38 147 drawsymbol sym 55 25 0; #X restore 318 623 pd ds; #X msg 40 433 motion 200 200 0; #X msg 40 314 editmode 1; #X msg 40 385 key 1 8 0; #X msg 40 337 mouse 340 135 1 0; #X msg 40 361 mouseup 355 145 0; #X msg 40 409 click 355 145 0 1 0; #X text 128 385 (8 = backspace); #X text 207 409 ?; #X text 181 434 ?; #X text 578 558 ( 0 or 1 ); #X text 622 490 ( 0 or 1 ); #X text 23 211 connections; #N canvas 523 391 265 191 ds2 0; #N canvas 50 470 557 157 template-toplevel 0; #X obj 21 102 plot bazoo 700 3 10 20 20; #X obj 21 68 drawpolygon q 4 0 0 20 z z -5 10 20; #X obj 21 21 struct template-toplevel float x float y float z float q array bazoo template-element; #X restore 11 11 pd template-toplevel; #N canvas 199 231 600 239 template-element 0; #X obj 58 83 drawpolygon 10 2 5 0 0 -5 -5 0 0 5 5 0; #X obj 59 48 struct template-element float x float y float w; #X restore 11 34 pd template-element; #X restore 318 587 pd ds2; #X msg 40 623 scalar ds 225 225 -hi_there!; #X text 22 551 reading/writing/creating data structures; #X text 630 408 ( 0 or 1 ); #X text 603 105 Warning !!!; #N canvas 458 158 549 396 META 0; #X text 12 5 GENRE tutorial; #X text 12 65 DESCRIPTION a (hopefully) comprehensive list of all internal messages that can be sent to a canvas; #X text 12 95 HELP_PATCH_AUTHORS Damien Henry. "pd meta" information added by Jonathan Wilkes for Pd version 0.42.; #X text 12 25 KEYWORDS control canvas_op nonlocal dynamic_patching ; #X text 12 45 LICENSE public domain; #X restore 611 707 pd META; #X text 299 5 MESSAGES TO PD:; #X obj 496 561 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 495 494 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 494 411 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X msg 515 408 find route \$1; #X msg 631 644 vis 0 \, clear; #X text 49 280 events (only work when editmode = 1 \, vis = 1) !; #X msg 515 372 font \$1 100 100; #X msg 659 352 12; #X msg 686 352 10; #X text 810 19 This will create a sub patch in this w
[PD] clone object - dynamically change number of instances?
hello list, hello miller, is there any known way to dynamically change the number of instances associated with a clone object, e.g. via message? i know, the dsp graph would need to be rebulit, but for a project i am contemplating that would be less of a concern. if not, can i suggest this for consideration as a feature request? thanks for the object anyway, very helpful hans ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list