From 5bef67e613f2b69b4c144c1cac232dff68991326 Mon Sep 17 00:00:00 2001 From: porres Date: Wed, 3 Jul 2024 16:04:03 -0300 Subject: [PATCH] improve object browser --- cyclone_objects/binaries/control/comment.c | 2 +- cyclone_objects/binaries/cyclone_lib.c | 2 +- documentation/extra_files/CHANGELOG.txt | 4 ++++ documentation/extra_files/browser-cyclone.tcl | 16 ++++++++++++---- documentation/help_files/cyclone-help.pd | 16 ++++++++-------- 5 files changed, 26 insertions(+), 14 deletions(-) diff --git a/cyclone_objects/binaries/control/comment.c b/cyclone_objects/binaries/control/comment.c index 5f416f62..40666e61 100644 --- a/cyclone_objects/binaries/control/comment.c +++ b/cyclone_objects/binaries/control/comment.c @@ -1525,7 +1525,7 @@ CYCLONE_OBJ_API void comment_setup(void){ class_addmethod(handle_class, (t_method)handle__click_callback, gensym("_click"), A_FLOAT, 0); class_addmethod(handle_class, (t_method)handle__motion_callback, gensym("_motion"), A_FLOAT, A_FLOAT, 0); - post("warning: [cyclone/comment~] has been deprecated"); + post("warning: [cyclone/comment] has been deprecated"); sys_gui("proc comment_bbox {target cvname tag} {\n\ pdsend \"$target _bbox $target [$cvname bbox $tag]\"}\n" diff --git a/cyclone_objects/binaries/cyclone_lib.c b/cyclone_objects/binaries/cyclone_lib.c index addf1586..8b30cf11 100644 --- a/cyclone_objects/binaries/cyclone_lib.c +++ b/cyclone_objects/binaries/cyclone_lib.c @@ -4,7 +4,7 @@ * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ -/* Porres 2016-2018 for versions 0.3 onward: +/* Porres 2016 for versions 0.3 onward: This is the cyclone library containing 12 non alphanumeric objects. Originally, the externals in cyclone used to come in a library called "cyclone", which included these 12 objects plus the "hammer" and "sickle" diff --git a/documentation/extra_files/CHANGELOG.txt b/documentation/extra_files/CHANGELOG.txt index 145f4931..f2550d27 100644 --- a/documentation/extra_files/CHANGELOG.txt +++ b/documentation/extra_files/CHANGELOG.txt @@ -2,6 +2,10 @@ | Under the maintenance of Porres, Kwan and Barber: --------------------------------------------------- +-------------------------------------------------- +cyclone 0.9-1 (needs at least Pd Vanilla 0.55-0): +-------------------------------------------------- +- Improved the object browser plugin -------------------------------------------------- cyclone 0.9-0 (needs at least Pd Vanilla 0.55-0): diff --git a/documentation/extra_files/browser-cyclone.tcl b/documentation/extra_files/browser-cyclone.tcl index 91865247..cf20bdcb 100644 --- a/documentation/extra_files/browser-cyclone.tcl +++ b/documentation/extra_files/browser-cyclone.tcl @@ -30,15 +30,23 @@ proc category_cyclone_menu::load_menutree {} { {max\ math {accum acos acosh asin asinh atanh atodb cartopol clip cosh dbtoa maximum mean minimum poltocar pong rdiv rminus round scale sinh tanh}} {max\ midi - {borax flush midiflush midiformat midiparse seq sustain xbendin xbendin2 xbendout xbendout2 xnotein xnoteout}} + {borax flush midiflush midiformat midiparse seq sustain xnotein xnoteout}} {max\ others - {active anal append bangbang bondo bucket buddy capture coll comment counter cycle decide decode drunk forward fromsymbol funbuff funnel gate grab histo iter join linedrive listfunnel loadmess match mousefilter mousestate mtr next offer onebang pak past peak prepend prob pv speedlim spell split spray sprintf substitute switch table thresh togedge tosymbol trough universal unjoin urn uzi zl}} + {active anal bangbang bondo bucket buddy capture coll counter cycle decide decode drunk fromsymbol funbuff funnel gate grab histo iter join linedrive listfunnel loadmess match mousefilter mousestate mtr next offer onebang pak past peak prepend prob pv speedlim spell split spray sprintf substitute switch table thresh togedge tosymbol trough universal unjoin urn uzi zl}} {msp\ math - {acos~ acosh~ asin~ asinh~ atan~ atan2~ atanh~ atodb~ average~ avg~ bitand~ bitnot~ bitor~ bitsafe~ bitshift~ bitxor~ cartopol~ clip~ cosh~ cosx~ dbtoa~ delta~ equals~ greaterthan~ greaterthaneq~ lessthan~ lessthaneq~ maximum~ minimum~ modulo~ mstosamps~ notequals~ plusequals~ poltocar~ pong~ pow~ rdiv~ rminus~ round~ sampstoms~ scale~ sinh~ sinx~ tanh~ tanx~ trunc~}} + {acos~ acosh~ asin~ asinh~ atan~ atan2~ atanh~ atodb~ average~ avg~ bitand~ bitnot~ bitor~ bitsafe~ bitshift~ bitxor~ cartopol~ cosh~ cosx~ dbtoa~ delta~ equals~ greaterthan~ greaterthaneq~ lessthan~ lessthaneq~ modulo~ mstosamps~ notequals~ plusequals~ poltocar~ pong~ rdiv~ rminus~ round~ sampstoms~ scale~ sinh~ sinx~ tanh~ tanx~ trunc~}} + {msp\ fx + {degrade~ delay~ downsamp~ overdrive~}} {msp\ filters {allpass~ buffir~ comb~ cross~ deltaclip~ lores~ onepole~ phaseshift~ rampsmooth~ reson~ slide~ svf~ teeth~}} + {msp\ synthesis + {cycle~ pink~ rand~ train~ trapezoid~ triangle~ wave~}} + {msp\ play\ buffer + {buffer~ index~ peek~ play~ poke~ record~}} {msp\ others - {capture~ change~ click~ count~ curve~ cycle~ degrade~ delay~ downsamp~ edge~ frameaccum~ framedelta~ gate~ index~ kink~ line~ lookup~ matrix~ minmax~ number~ overdrive~ peakamp~ peek~ phasewrap~ pink~ play~ poke~ rand~ record~ sah~ scope~ selector~ snapshot~ spike~ thresh~ train~ trapezoid~ triangle~ vectral~ wave~ zerox~}} + {capture~ change~ click~ count~ curve~ edge~ frameaccum~ framedelta~ gate~ kink~ line~ lookup~ matrix~ minmax~ peakamp~ phasewrap~ sah~ scope~ selector~ snapshot~ spike~ thresh~ vectral~ zerox~}} + {deprecated + {append clip~ comment forward maximum~ minimum~ number~ pow~ xbendin xbendin2 xbendout xbendout2}} } } return $menutree diff --git a/documentation/help_files/cyclone-help.pd b/documentation/help_files/cyclone-help.pd index cf7fc781..2aff5bcc 100644 --- a/documentation/help_files/cyclone-help.pd +++ b/documentation/help_files/cyclone-help.pd @@ -1,4 +1,4 @@ -#N canvas 450 25 563 721 10; +#N canvas 450 38 563 721 10; #X declare -lib cyclone -path cyclone; #X msg 157 437 about; #N canvas 604 130 484 477 operators 0; @@ -60,7 +60,6 @@ #X text 207 562 - outputs version information as a list; #X msg 202 437 version; #X text 61 363 The binary is also loaded as the cyclone object. This also loads the library \, but you shouldn't load it this way! The object only accepts the "about" message \, which prints basic information (objects \, version \, release date) on the terminal and the "version" message that outputs the cyclone version as a list of major \, minor \, bugfix., f 71; -#X obj 202 465 cyclone/cyclone, f 18; #X text 63 201 The cyclone library also automatically loads cyclone's path to Pd so you can load the separate binaries (but this doesn't guarantee search priority). Objects from the cyclone library are mostly a set of separate binaries \, but also contains a few abstractions. You can load the cyclone library via "Startup" and "Path" (to guarantee search priority). Alternatively \, you can use [declare] as follows:, f 71; #X obj 83 286 declare -lib cyclone -path cyclone; #X obj 307 338 bng 15 250 50 0 \$0-install dummy empty 17 7 0 10 #dcdcdc #000000 #000000; @@ -108,9 +107,10 @@ #X connect 5 0 3 0; #X connect 7 0 4 0; #X restore 304 170 pd open; -#X connect 0 0 16 0; -#X connect 14 0 16 0; -#X connect 16 0 22 0; -#X connect 16 1 23 0; -#X connect 16 2 24 0; -#X connect 40 0 41 0; +#X obj 202 465 cyclone, f 18; +#X connect 0 0 41 0; +#X connect 14 0 41 0; +#X connect 39 0 40 0; +#X connect 41 0 21 0; +#X connect 41 1 22 0; +#X connect 41 2 23 0;