aboutsummaryrefslogtreecommitdiff
path: root/add.scm
diff options
context:
space:
mode:
Diffstat (limited to 'add.scm')
-rw-r--r--add.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/add.scm b/add.scm
new file mode 100644
index 0000000..b4bfd76
--- /dev/null
+++ b/add.scm
@@ -0,0 +1,15 @@
+
+(pd-inlets 2)
+(pd-outlets 1)
+
+(let ((inlet1 0))
+ (pd-inlet 1 'float
+ (lambda (x)
+ (set! inlet1 x)))
+ (pd-inlet 0 'float
+ (lambda (x)
+ (pd-outlet 0 (+ inlet1 x)))))
+
+
+
+