From c0dc3476a8baa832e6874b229470decfd522e3cd Mon Sep 17 00:00:00 2001 From: Luke Iannini Date: Thu, 21 May 2009 05:10:26 +0000 Subject: more work on the delegate/dispatch design pattern switched time- series to delegate/dispatch and added more beat-sync objects midi-stream2notes turns a continuous stream of midi notes into static lists of notes and durations - great for building sequencers but still has a bug. list-extract to "split" a list into a sublist and the remainder ds-criteria to get a pointer to the first item with a specific variable value svn path=/trunk/abstractions/sfruit/; revision=11471 --- sfruit/delegate_setter.pd | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sfruit/delegate_setter.pd (limited to 'sfruit/delegate_setter.pd') diff --git a/sfruit/delegate_setter.pd b/sfruit/delegate_setter.pd new file mode 100644 index 0000000..9943e28 --- /dev/null +++ b/sfruit/delegate_setter.pd @@ -0,0 +1,37 @@ +#N canvas 142 461 444 327 10; +#X obj 167 34 inlet; +#X obj 286 189 list split 1; +#X obj 286 215 swap-any; +#X msg 331 243 will_set_\$1; +#X obj 286 272 delegate \$1; +#X obj 186 299 outlet; +#X obj 167 97 t a a a; +#X obj 46 189 list split 1; +#X obj 46 215 swap-any; +#X obj 46 272 delegate \$1; +#X msg 91 243 did_set_\$1; +#X obj 286 150 list prepend; +#X obj 46 150 list prepend; +#X obj 232 76 loadbang; +#X obj 232 98 list-onearg \$2; +#X text 18 11 [delegate_setter unique *name]; +#X text 201 10 *optional; +#X connect 0 0 6 0; +#X connect 1 0 2 0; +#X connect 1 1 2 1; +#X connect 2 0 4 0; +#X connect 2 1 3 0; +#X connect 3 0 4 1; +#X connect 6 0 12 0; +#X connect 6 1 5 0; +#X connect 6 2 11 0; +#X connect 7 0 8 0; +#X connect 7 1 8 1; +#X connect 8 0 9 0; +#X connect 8 1 10 0; +#X connect 10 0 9 1; +#X connect 11 0 1 0; +#X connect 12 0 7 0; +#X connect 13 0 14 0; +#X connect 14 0 11 1; +#X connect 14 0 12 1; -- cgit v1.2.1