aboutsummaryrefslogtreecommitdiff
path: root/help-k_cfunc.pd
blob: 390b46cc4c7cf71fa65791564058b8af2cedd30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#N canvas 583 347 825 399 10;
#X obj 31 310 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
-262144 -1 -1 30 256;
#X obj 259 312 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
-262144 -1 -1 20 256;
#X floatatom 33 110 5 0 0 0 - - -;
#X floatatom 217 107 5 0 0 0 - - -;
#X floatatom 30 182 5 0 0 0 - - -;
#X obj 32 140 k_cext 2 1 \; O(0 \, INT_func(I(0) \, I(1))) \;;
#X obj 31 234 k_cfunc 0 2 INT_func int a int b \; O(0 \, a) \; O(1
\, b) \; return a+b \;;
#X obj 404 315 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
-262144 -1 -1 32 256;
#X obj 632 317 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
-262144 -1 -1 12 256;
#X floatatom 406 115 5 0 0 0 - - -;
#X floatatom 590 112 5 0 0 0 - - -;
#X floatatom 403 187 5 0 0 0 - - -;
#X obj 405 144 k_cext 2 1 \; O(0 \, FLOAT_func(V(0) \, V(1))) \;;
#X obj 404 239 k_cfunc 0 2 FLOAT_func float a float b \; O(0 \, a)
\; O(1 \, b) \; return a+b \;;
#X text 148 25 Demonstrating the use of two functions to add integer
numbers. The first one does an integer operation \, the second one
does a floating point operation.;
#X connect 2 0 5 0;
#X connect 3 0 5 1;
#X connect 5 0 4 0;
#X connect 6 0 0 0;
#X connect 6 1 1 0;
#X connect 9 0 12 0;
#X connect 10 0 12 1;
#X connect 12 0 11 0;
#X connect 13 0 7 0;
#X connect 13 1 8 0;