Skip to content

Commit

Permalink
improve browser
Browse files Browse the repository at this point in the history
  • Loading branch information
porres committed Jun 8, 2024
1 parent 0cf880f commit 95778ba
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 145 deletions.
168 changes: 86 additions & 82 deletions cyclone_objects/abstractions/buffer~.pd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#N canvas 285 145 814 272 10;
#N canvas 319 281 814 272 10;
#X declare -path /Users/porres/Documents/Pd/externals/cyclone;
#X obj 24 24 inlet;
#N canvas 396 59 533 410 rename 0;
#N canvas 172 51 533 410 rename 0;
#X obj 319 189 r \$0-name;
#X obj 59 76 symbol;
#X obj 59 50 inlet;
Expand Down Expand Up @@ -36,7 +36,17 @@
#X connect 14 0 16 0;
#X connect 15 0 14 0;
#X restore 64 100 pd rename;
#N canvas 472 296 479 442 \$0-buffers 0;
#N canvas 206 153 479 442 \$0-buffers 1;
#X obj 6 20 cnv 15 448 80 empty empty empty 3 10 2 14 #e0e0e0 #404040 0;
#N canvas 0 22 450 300 ch0_1110 0;
#X array 0-buff1_1003 87741 float 2;
#X coords 0 1 87741 -1 450 82 2 0 0;
#X restore 5 19 pd ch0_1110;
#X obj 6 120 cnv 15 448 80 empty empty empty 3 10 2 14 #e0e0e0 #404040 0;
#N canvas 0 22 450 300 ch1_1110 0;
#X array 1-buff1_1003 87741 float 2;
#X coords 0 1 87741 -1 450 82 2 0 0;
#X restore 5 119 pd ch1_1110;
#X coords 0 0 0 0 10 20 0;
#X restore 627 59 pd \$0-buffers;
#N canvas 386 286 457 330 clear 0;
Expand Down Expand Up @@ -74,7 +84,7 @@
#X msg 149 241 \; \$1-\$3 const \$2;
#X obj 104 79 route bang;
#X msg 104 103 1;
#N canvas 143 25 666 661 sin 0;
#N canvas 447 25 666 661 sin 0;
#X obj 319 197 r \$0-name;
#X obj 274 221 pack f s;
#X obj 131 292 cyclone/uzi 1 0;
Expand Down Expand Up @@ -804,7 +814,7 @@
#X connect 14 1 2 0;
#X connect 14 1 0 1;
#X restore 459 96 pd getdeltas;
#N canvas 286 46 809 742 kaiser 0;
#N canvas 286 23 809 723 kaiser 0;
#X obj 380 359 r \$0-name;
#X obj 335 383 pack f s;
#X obj 143 317 cyclone/uzi 1 0;
Expand Down Expand Up @@ -1112,22 +1122,23 @@
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X restore 473 128 pd norm;
#N canvas 239 23 768 460 resize 0;
#X obj 431 165 s \$0-size;
#X obj 217 114 cyclone/mstosamps~;
#X obj 217 78 inlet;
#X obj 345 82 inlet;
#X obj 338 253 cyclone/uzi 1 0;
#X obj 307 205 v ch_\$0;
#X obj 598 237 r \$0-name;
#X obj 463 263 pack float float symbol;
#X obj 345 154 t b f;
#X obj 308 228 sel 1;
#X obj 345 279 r \$0-name;
#X obj 321 329 pack s f;
#X obj 296 300 symbol;
#X msg 463 287 \; \$1-\$3 resize \$2;
#X msg 321 357 \; \$1 resize \$2;
#N canvas 474 139 605 478 resize 0;
#X obj 345 237 s \$0-size;
#X obj 175 143 cyclone/mstosamps~;
#X obj 175 77 inlet;
#X obj 303 81 inlet;
#X obj 176 266 cyclone/uzi 1 0;
#X obj 149 218 v ch_\$0;
#X obj 398 305 r \$0-name;
#X obj 263 331 pack float float symbol;
#X obj 303 183 t b f;
#X obj 149 241 sel 1;
#X obj 182 308 r \$0-name;
#X obj 179 368 pack s f;
#X obj 149 329 symbol;
#X msg 263 355 \; \$1-\$3 resize \$2;
#X msg 179 396 \; \$1 resize \$2;
#X obj 192 111 r \$0-set-size;
#X connect 1 1 8 0;
#X connect 2 0 1 0;
#X connect 3 0 8 0;
Expand All @@ -1144,6 +1155,7 @@
#X connect 10 0 12 1;
#X connect 11 0 14 0;
#X connect 12 0 11 0;
#X connect 15 0 1 0;
#X restore 347 100 pd resize;
#N canvas 245 23 711 512 crop 0;
#X obj 269 30 inlet;
Expand Down Expand Up @@ -1214,21 +1226,21 @@
#X connect 26 0 23 0;
#X connect 26 1 20 0;
#X restore 514 101 pd crop;
#N canvas 709 338 322 283 soundfiler 0;
#N canvas 602 260 489 406 soundfiler 0;
#X obj 192 102 list prepend;
#X obj 192 129 list;
#X obj 65 104 list append;
#X obj 65 134 list trim;
#X obj 166 168 r \$0-resize;
#X obj 65 168 soundfiler;
#X msg 166 200 1;
#X obj 65 203 spigot;
#X obj 65 236 s \$0-size;
#X obj 65 164 list trim;
#X obj 166 198 r \$0-resize;
#X obj 65 198 soundfiler;
#X msg 166 230 1;
#X obj 65 233 spigot;
#X obj 65 266 s \$0-size;
#X obj 192 43 inlet;
#X obj 65 42 inlet;
#X msg 192 74 \$1-\$2;
#X obj 128 43 inlet;
#X msg 128 71 \$2;
#X obj 148 43 inlet;
#X msg 148 71 \$2;
#X connect 0 0 1 0;
#X connect 1 0 0 1;
#X connect 1 0 2 1;
Expand All @@ -1242,7 +1254,7 @@
#X connect 10 0 2 0;
#X connect 11 0 0 0;
#X connect 12 0 13 0;
#X connect 13 0 2 1;
#X connect 13 0 1 0;
#X restore 581 142 pd soundfiler;
#N canvas 836 309 267 305 load-args 0;
#N canvas 148 313 507 387 channels 0;
Expand Down Expand Up @@ -1412,7 +1424,7 @@
#X connect 35 0 33 0;
#X connect 36 0 35 0;
#X restore 75 109 pd 2nd_arg;
#N canvas 668 110 822 542 3rd_arg_(size) 0;
#N canvas 544 110 822 542 3rd_arg_(size) 0;
#X obj 363 291 t b f;
#X obj 546 432 s \$0-size;
#X obj 546 407 max 1;
Expand Down Expand Up @@ -1599,17 +1611,13 @@
#X obj 319 339 route wav aiff aif caf;
#X msg 827 445 -caf;
#N canvas 217 23 560 646 check 0;
#X msg 158 328 \$1 file not found;
#X obj 101 303 file which;
#X obj 101 277 list append 1;
#X obj 101 65 inlet;
#X obj 158 359 print [buffer~];
#X obj 101 221 list split 1, f 14;
#X obj 102 182 list;
#X obj 100 65 inlet;
#X obj 101 243 list split 1, f 14;
#X obj 101 182 list;
#X obj 262 464 list;
#X msg 212 424 read;
#X obj 283 315 t l b;
#X obj 331 313 s \$0-read;
#X obj 332 510 list;
#N canvas 93 74 401 299 start 0;
#X obj 100 157 cyclone/pak -skip 0;
Expand All @@ -1625,27 +1633,23 @@
#X connect 3 0 0 1;
#X connect 4 0 5 0;
#X connect 6 0 2 0;
#X restore 283 371 pd start;
#X obj 283 342 unpack float float float;
#N canvas 339 115 364 323 size 0;
#X obj 76 96 cyclone/mstosamps~;
#X obj 76 72 max 0;
#X obj 181 120 expr rint($f1);
#X restore 283 331 pd start;
#X obj 283 302 unpack float float float;
#N canvas 339 115 377 334 size 0;
#X obj 181 239 outlet;
#X obj 76 38 inlet;
#X obj 89 131 r \$0-resize;
#X msg 89 187 -resize;
#X msg 181 156 -maxsize \$1;
#X obj 101 160 r \$0-read;
#X connect 0 1 2 0;
#X connect 1 0 0 0;
#X connect 2 0 7 0;
#X connect 4 0 1 0;
#X connect 5 0 6 0;
#X connect 6 0 3 0;
#X connect 7 0 3 0;
#X connect 8 0 6 0;
#X restore 353 370 pd size;
#X obj 76 83 inlet;
#X obj 200 143 r \$0-resize;
#X msg 200 199 -resize;
#X obj 212 172 r \$0-read;
#X obj 76 159 s \$0-set-size;
#X obj 76 112 trigger float bang;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 3 0 0 0;
#X connect 4 0 3 0;
#X connect 6 0 5 0;
#X connect 6 1 0 0;
#X restore 353 330 pd size;
#N canvas 93 74 401 299 ch 0;
#X obj 100 157 cyclone/pak -skip 0;
#X obj 106 111 cyclone/mstosamps~;
Expand All @@ -1663,35 +1667,36 @@
#X connect 4 0 5 0;
#X connect 6 0 2 0;
#X connect 7 0 8 0;
#X restore 424 369 pd ch;
#X restore 424 329 pd ch;
#X obj 101 390 trigger symbol bang;
#X obj 101 554 outlet;
#X obj 332 554 outlet;
#X obj 331 287 b;
#X connect 0 0 4 0;
#X connect 1 0 16 0;
#X connect 1 1 0 0;
#X connect 2 0 1 0;
#X connect 3 0 6 0;
#X connect 5 0 2 0;
#X connect 5 1 19 0;
#X obj 158 364 print Warning;
#X msg 158 328 [buffer~]\$1 file not found, f 15;
#X obj 101 210 t l b;
#X obj 145 211 s \$0-read;
#X connect 0 0 12 0;
#X connect 0 1 16 0;
#X connect 1 0 0 0;
#X connect 2 0 4 0;
#X connect 3 0 1 0;
#X connect 3 1 9 0;
#X connect 4 0 17 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X connect 7 0 11 0;
#X connect 8 0 7 0;
#X connect 9 0 13 0;
#X connect 7 0 14 0;
#X connect 8 0 5 1;
#X connect 9 0 8 0;
#X connect 9 1 10 0;
#X connect 11 0 18 0;
#X connect 12 0 7 1;
#X connect 13 0 12 0;
#X connect 13 1 14 0;
#X connect 13 2 15 0;
#X connect 14 0 11 1;
#X connect 16 0 17 0;
#X connect 16 1 8 0;
#X connect 19 0 10 0;
#X connect 9 2 11 0;
#X connect 10 0 7 1;
#X connect 12 0 13 0;
#X connect 12 1 6 0;
#X connect 16 0 15 0;
#X connect 17 0 3 0;
#X connect 17 1 18 0;
#X restore 145 177 pd check;
#X obj 121 255 list prepend;
#X obj 148 471 print ========>;
#X connect 0 0 3 0;
#X connect 0 0 42 0;
#X connect 1 0 2 0;
Expand Down Expand Up @@ -1757,7 +1762,6 @@
#X connect 41 0 0 0;
#X connect 41 1 42 1;
#X connect 42 0 18 0;
#X connect 42 0 43 0;
#X restore 581 101 pd read/write;
#N canvas 147 315 743 423 init-buffers 0;
#X obj 340 246 send pd-\$0-buffers;
Expand Down
17 changes: 12 additions & 5 deletions documentation/extra_files/browser-cyclone.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,24 @@ proc menu_send_cyclone_obj {w x y item} {
}
}


# set nested list
proc category_cyclone_menu::load_menutree {} {
set menutree {
{cyclone
{lib
{cyclone}}
{max
{accum acos acosh active anal append asin asinh atanh atodb bangbang bondo borax bucket buddy capture cartopol clip coll comment cosh counter cycle dbtoa decide decode drunk flush forward fromsymbol funbuff funnel gate grab histo iter join linedrive listfunnel loadmess match maximum mean midiflush midiformat midiparse minimum mousefilter mousestate mtr next offer onebang pak past peak poltocar pong prepend prob pv rdiv rminus round scale seq sinh speedlim spell split spray sprintf substitute sustain switch table tanh thresh togedge tosymbol trough universal unjoin urn uzi xbendin xbendin2 xbendout xbendout2 xnotein xnoteout zl}}
{msp
{acos~ acosh~ allpass~ asin~ asinh~ atan~ atan2~ atanh~ atodb~ average~ avg~ bitand~ bitnot~ bitor~ bitsafe~ bitshift~ bitxor~ buffer~ buffir~ capture~ cartopol~ change~ click~ clip~ comb~ cosh~ cosx~ count~ cross~ curve~ cycle~ dbtoa~ degrade~ delay~ delta~ deltaclip~ downsamp~ edge~ equals~ frameaccum~ framedelta~ gate~ greaterthan~ greaterthaneq~ index~ kink~ lessthan~ lessthaneq~ line~ lookup~ lores~ matrix~ maximum~ minimum~ minmax~ modulo~ mstosamps~ notequals~ number~ onepole~ overdrive~ peakamp~ peek~ phaseshift~ phasewrap~ pink~ play~ plusequals~ poke~ poltocar~ pong~ pow~ rampsmooth~ rand~ rdiv~ record~ reson~ rminus~ round~ sah~ sampstoms~ scale~ scope_dialog~ scope~ selector~ sinh~ sinx~ slide~ snapshot~ spike~ svf~ tanh~ tanx~ teeth~ thresh~ train~ trapezoid~ triangle~ trunc~ vectral~ wave~ zerox~}}
{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}}
{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}}
{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~}}
{msp\ filters
{allpass~ buffir~ comb~ cross~ deltaclip~ lores~ onepole~ phaseshift~ rampsmooth~ reson~ slide~ svf~ teeth~}}
{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~}}
}
}
return $menutree
Expand Down
2 changes: 1 addition & 1 deletion documentation/help_files/bucket-help.pd
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
#X obj 88 224 cyclone/bucket 4 1;
#X obj 88 173 random 100;
#X text 174 494 - output flag: <0> (default) holds the input and passes it on the next round \, <1> outputs the input immediately;
#X text 49 87 As [bucket] is input with floats \, it outputs them shiftting from outlet to outlet in a rotational pattern (or "passing the bucket" as in a ucket brigade).;
#X obj 3 4 header bucket;
#X text 22 62 Pass numbers from outlet to outlet;
#X text 49 87 As [bucket] is input with floats \, it outputs them shiftting from outlet to outlet in a rotational pattern (or "passing the bucket" as in a bucket brigade).;
#X connect 5 0 45 0;
#X connect 16 0 44 0;
#X connect 27 0 34 0;
Expand Down
Loading

0 comments on commit 95778ba

Please sign in to comment.