diff options
Diffstat (limited to 'send_receive.scm')
-rw-r--r-- | send_receive.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/send_receive.scm b/send_receive.scm new file mode 100644 index 0000000..bae7668 --- /dev/null +++ b/send_receive.scm @@ -0,0 +1,24 @@ + + + +;; Send out what comes in. +(pd-bind 'in + (lambda (arg) + (pd-send 'out arg))) + + +#! +;; This one does the same and is faster, but requires some more typing: +(let ((s-out (pd-get-symbol 'out))) + (pd-bind 'in + (lambda (arg) + (pd-send s-out arg)))) +!# + + +#! +;; And the following example will (most probably) lead to a segmentation fault: +;; This is also the only way I can think of right now that will make pd segfault using the pd- interface. +(pd-send 5 arg) +!# + |