[PD] Toxy (was Re: [Instance])
You are right, I just started looking through the Toxy library examples, and so far it looks really nice! I'm excited about this! How do these sliders and such compare with the iemgui objects in terms of gridlock? ~Kyle On 5/7/07, Hans-Christoph Steiner [EMAIL PROTECTED] wrote: As far as I know, [tot] is quite stable, at least in the context of Pd-extended. If anyone has a problems with it, please file a bug report. .hc On May 7, 2007, at 2:09 PM, Kyle Klipowicz wrote: Never mind, that one actually worked for me. But the tot examples are not loaded when using Pd-0.39.2-extended-rc2.app on OS X 10.4.9. I'll file a bug in the tracker? ~Kyle On 5/7/07, Kyle Klipowicz [EMAIL PROTECTED] wrote: Yes, but good luck actually being able to use the toxy library out of box! ~Kyle On 5/4/07, Hans-Christoph Steiner [EMAIL PROTECTED] wrote: On May 3, 2007, at 11:56 PM, Chris McCormick wrote: On Thu, May 03, 2007 at 03:10:16PM +0200, Roman Haefeli wrote: On Thu, 2007-05-03 at 02:01 -0700, Luke Iannini (pd) wrote: thanks to [closebang]). i vote for including [closebang] into pd vanilla. is there any chance, that it will be included? that is one of the most wanted missing objects for me. I second that vote. Would love to see a 'savebang' too. That would really help with the state saving stuff. It should go off after ctrl-S or 'Save' menu item is selected, but before the save is performed. You can already do that with a little help from [toxy/tot], see attached. .hc Chris. --- http://mccormick.cx ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list - --- If you are not part of the solution, you are part of the problem. ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list -- http://theradioproject.com http://perhapsidid.blogspot.com (()()()(()))()()())( (())(())()((( ))(__ _())(()))___ (((000)))oOO -- http://theradioproject.com http://perhapsidid.blogspot.com (()()()(()))()()())( (())(())()((( ))(__ _())(()))___ (((000)))oOO [W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity.-John Gilmore -- http://theradioproject.com http://perhapsidid.blogspot.com (()()()(()))()()())( (())(())()((( ))(__ _())(()))___ (((000)))oOO ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Toxy (was Re: [Instance])
On Mon May 07, 2007 at 01:26:09PM -0500, Kyle Klipowicz wrote: You are right, I just started looking through the Toxy library examples, and so far it looks really nice! I'm excited about this! How do these sliders and such compare with the iemgui objects in terms of gridlock? you mean like when the widgets stop updating graphically (numbox moves the value but doesnt reflect the changes in the GUI) or something else? it works better than iemgui for effiiency since you can just send over values, instead of drawing instructions which are often 4x as long. as long as you stay within the socket bandwidth limit, i found win32 was the best performer. i mean a scrolling full color 25fps spectrogram was using 2% total CPU, if the task manager is to be believed, on a lowly single-core 2ghz amd64. the same patch on linux has pd and X eaech using like 20% CPU, if top can be believed :/ i'd agree Toxy is pretty nice - its the best youre going to get with the old pd-gui - you get constructors, destructors, all of Tk, and you dont have to know/care how nastily the rest of the GUI is implemented :) ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Toxy (was Re: [Instance])
One question I have with the toxy sliders is this: in the multiscale-test.pd file, there are some really neat sliders, but how do you create these, and what are the creation arguments? I know that we can just go in to the patch as a text file and get this information, but it would be nice if there were some more instructions on the usage of these really powerful gui tools. What references are recommended for experimenting with this? ~Kyle On 5/7/07, carmen [EMAIL PROTECTED] wrote: On Mon May 07, 2007 at 01:26:09PM -0500, Kyle Klipowicz wrote: You are right, I just started looking through the Toxy library examples, and so far it looks really nice! I'm excited about this! How do these sliders and such compare with the iemgui objects in terms of gridlock? you mean like when the widgets stop updating graphically (numbox moves the value but doesnt reflect the changes in the GUI) or something else? it works better than iemgui for effiiency since you can just send over values, instead of drawing instructions which are often 4x as long. as long as you stay within the socket bandwidth limit, i found win32 was the best performer. i mean a scrolling full color 25fps spectrogram was using 2% total CPU, if the task manager is to be believed, on a lowly single-core 2ghz amd64. the same patch on linux has pd and X eaech using like 20% CPU, if top can be believed :/ i'd agree Toxy is pretty nice - its the best youre going to get with the old pd-gui - you get constructors, destructors, all of Tk, and you dont have to know/care how nastily the rest of the GUI is implemented :) ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- http://theradioproject.com http://perhapsidid.blogspot.com (()()()(()))()()())( (())(())()((( ))(__ _())(()))___ (((000)))oOO ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Toxy (was Re: [Instance])
On Mon May 07, 2007 at 02:08:12PM -0500, Kyle Klipowicz wrote: One question I have with the toxy sliders is this: in the multiscale-test.pd file, there are some really neat sliders, but how do you create these, and what are the creation arguments? [widget widgetname widgetref moreargs] where widgetname is the name of the .wid file sans extension and widgetref is any unique symbol I know that we can just go in to the patch as a text file and get this information, but it would be nice if there were some more instructions on the usage of these really powerful gui tools. What references are recommended for experimenting with this? that's probably the most nasty part of toxy, its got its own preprocessing syntax on top of normal TCL with special additions for arguments from pd, widget/canvas IDs, etc, and the widget source code is read by the server, then processed and sent to the client (so scripts longer than the max pd message size get truncated) an autogenerated '--usage' message responder would probably need some hints to be more useful and efficient than just reading the widget's source.. can you instantiate PD objects via right clicking on the canvas yet? toxy registering all the avilable widgets in a user-GUI submenu of that menu's class-browser model sounds like the way to go.. ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Toxy (was Re: [Instance])
There is a fair amount of documentation on the website: http://suita.chopin.edu.pl/~czaja/miXed/externs/toxy.html It would be very handy if you created some better help files for this stuff thru your explorations. I'll happily check them in. Also, if you get really inspired, it would be very nice to figure out how best to integrate these into Pd-extended so that they are easy to use. .hc On May 7, 2007, at 3:08 PM, Kyle Klipowicz wrote: One question I have with the toxy sliders is this: in the multiscale-test.pd file, there are some really neat sliders, but how do you create these, and what are the creation arguments? I know that we can just go in to the patch as a text file and get this information, but it would be nice if there were some more instructions on the usage of these really powerful gui tools. What references are recommended for experimenting with this? ~Kyle On 5/7/07, carmen [EMAIL PROTECTED] wrote: On Mon May 07, 2007 at 01:26:09PM -0500, Kyle Klipowicz wrote: You are right, I just started looking through the Toxy library examples, and so far it looks really nice! I'm excited about this! How do these sliders and such compare with the iemgui objects in terms of gridlock? you mean like when the widgets stop updating graphically (numbox moves the value but doesnt reflect the changes in the GUI) or something else? it works better than iemgui for effiiency since you can just send over values, instead of drawing instructions which are often 4x as long. as long as you stay within the socket bandwidth limit, i found win32 was the best performer. i mean a scrolling full color 25fps spectrogram was using 2% total CPU, if the task manager is to be believed, on a lowly single-core 2ghz amd64. the same patch on linux has pd and X eaech using like 20% CPU, if top can be believed :/ i'd agree Toxy is pretty nice - its the best youre going to get with the old pd-gui - you get constructors, destructors, all of Tk, and you dont have to know/care how nastily the rest of the GUI is implemented :) ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list -- http://theradioproject.com http://perhapsidid.blogspot.com (()()()(()))()()())( (())(())()((( ))(__ _())(()))___ (((000)))oOO ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/ listinfo/pd-list I have the audacity to believe that peoples everywhere can have three meals a day for their bodies, education and culture for their minds, and dignity, equality and freedom for their spirits. - Martin Luther King, Jr. ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Toxy (was Re: [Instance])
Good question, the [widget] and [tot] externals are maybe hacks, but also very powerfull if the user knows tcl and tk, but with a limited set of examples, certainly because a few people did try to explore this. I'm trying to build a 'good old' pianoroll, http://megalego.free.fr/pd/pianoroll/proll.JPG with starting from the grid widget available in ix widget extensions, but it's a quite complicated task for someone that just begin to understand what is an interpreted language, if anyone is interested into looking at the code it's attached. Le lundi 07 mai 2007 à 14:08 -0500, Kyle Klipowicz a écrit : One question I have with the toxy sliders is this: in the multiscale-test.pd file, there are some really neat sliders, but how do you create these, and what are the creation arguments? I know that we can just go in to the patch as a text file and get this information, but it would be nice if there were some more instructions on the usage of these really powerful gui tools. What references are recommended for experimenting with this? ~Kyle On 5/7/07, carmen [EMAIL PROTECTED] wrote: On Mon May 07, 2007 at 01:26:09PM -0500, Kyle Klipowicz wrote: You are right, I just started looking through the Toxy library examples, and so far it looks really nice! I'm excited about this! How do these sliders and such compare with the iemgui objects in terms of gridlock? you mean like when the widgets stop updating graphically (numbox moves the value but doesnt reflect the changes in the GUI) or something else? it works better than iemgui for effiiency since you can just send over values, instead of drawing instructions which are often 4x as long. as long as you stay within the socket bandwidth limit, i found win32 was the best performer. i mean a scrolling full color 25fps spectrogram was using 2% total CPU, if the task manager is to be believed, on a lowly single-core 2ghz amd64. the same patch on linux has pd and X eaech using like 20% CPU, if top can be believed :/ i'd agree Toxy is pretty nice - its the best youre going to get with the old pd-gui - you get constructors, destructors, all of Tk, and you dont have to know/care how nastily the rest of the GUI is implemented :) ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list namespace eval ::xt { proc proll_clic {w k t div scx scy} { zoom $w $k $t $scx $scy bind $w Motion ::xt::draw $w $t %x %y $div motion 0 item bind $w 1 ::xt::draw $w $t %x %y $div draw 0 item } proc draw {w t x y div type i item} { if {$i == 0} { set x [$w canvasx $x] set y [$w canvasy $y] } for {set z 0} {$z = [expr $div - 1]} {incr z} { set j [expr $z + 1] if {$z 1} { set rectx1 0 set rectx2 [lindex [$w coords gridver1] 0] set q $z } if {$z 0} { set x1 [lindex [$w coords gridver$z] 0] set x2 [lindex [$w coords gridver$j] 0] if {$x1 = $x $x =$x2} { set rectx1 $x1 set rectx2 $x2 set q $z } } } for {set i 0} {$i = 127} {incr i} { set j [expr $i + 1] if {$i 1} { set recty1 0 set recty2 [lindex [$w coords gridhor1] 1] set o 0 } if {$i 0} { set y1 [lindex [$w coords gridhor$i] 1] set y2 [lindex [$w coords gridhor$j] 1] if {$y1 = $y $y =$y2} { set recty1 $y1 set recty2 $y2 set o [expr abs(-1*($i-127))] } } } switch -- $type { draw { if {[$w find withtag note$rectx1$rectx2] == } { pd $t.rp _cb add $q $o 127 500; proll_draw $w $t draw $rectx1 $rectx2 $recty1 $recty2 $div}} redraw { $w delete $item proll_draw $w $t draw $rectx1 $rectx2 $recty1 $recty2 $div } delete { pd $t.rp _cb delete $q $o; $w delete $item } motion {proll_draw $w $t $type $rectx1 0 $recty1 0 $div} } } proc proll_draw {w t type x1 x2 y1 y2 d} { set x1 [expr $x1+1];set x2 [expr $x2-1];set y1 [expr $y1+1];set y2 [expr $y2-1] switch -- $type { draw { $w create rectangle $x1 $y1 $x2 $y2 -fill red -tags note$x1$y1 -activefill yellow -disabledfill black #