aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2010-05-12 19:17:15 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2010-05-12 19:17:15 +0000
commitf6f29377728c80d1e1c72fdc3f9a113712d737f6 (patch)
treebd57888677fd17cc2ce8bd2227240ae3a034e875
parentce7d7364150288a3214561111e77040318dae520 (diff)
Added to_ and from_ascii_code
svn path=/trunk/externals/tof/; revision=13515
-rw-r--r--help/from_ascii_code-help.pd29
-rw-r--r--help/to_ascii_code-help.pd14
-rw-r--r--src/from_ascii_code.c (renamed from test/from_ascii_code.c)0
-rw-r--r--src/to_ascii_code.c (renamed from test/to_ascii_code.c)0
-rw-r--r--test/Makefile69
-rw-r--r--test/from_ascii_code-help.pd19
-rw-r--r--test/to_ascii_code-help.pd13
7 files changed, 78 insertions, 66 deletions
diff --git a/help/from_ascii_code-help.pd b/help/from_ascii_code-help.pd
new file mode 100644
index 0000000..341c5bf
--- /dev/null
+++ b/help/from_ascii_code-help.pd
@@ -0,0 +1,29 @@
+#N canvas 1080 84 708 396 10;
+#X obj 94 332 print;
+#X msg 133 156 43;
+#X obj 71 69 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X msg 108 116 32;
+#X obj 94 285 tof/from_ascii_code 13;
+#X msg 99 94 54;
+#X msg 155 197 13;
+#X text 64 29 Tags: conversion text symbols;
+#X text 64 13 Description: Convert ASCII codes into PD messages;
+#X text 134 95 Floats and lists: enter ASCII codes;
+#X text 93 68 Bang: output data;
+#X text 248 285 Optionnal argument: output data once that ASCII code
+is received;
+#X msg 121 137 65;
+#X text 185 192 Because of [form_ascii_code]'s creation argument \,
+the number 13 acts like a bang;
+#X msg 161 229 49 50 51 32 52 53 13;
+#X msg 143 176 49 50 51 32 52 53;
+#X connect 1 0 4 0;
+#X connect 2 0 4 0;
+#X connect 3 0 4 0;
+#X connect 4 0 0 0;
+#X connect 5 0 4 0;
+#X connect 6 0 4 0;
+#X connect 12 0 4 0;
+#X connect 14 0 4 0;
+#X connect 15 0 4 0;
diff --git a/help/to_ascii_code-help.pd b/help/to_ascii_code-help.pd
new file mode 100644
index 0000000..4d49897
--- /dev/null
+++ b/help/to_ascii_code-help.pd
@@ -0,0 +1,14 @@
+#N canvas 1427 407 571 202 10;
+#X msg 49 60 test;
+#X msg 182 61 1234;
+#X obj 49 112 tof/to_ascii_code 13;
+#X msg 92 60 list abcdef;
+#X obj 49 153 print codes;
+#X text 54 19 Tags: conversion text symbols;
+#X text 55 3 Description: Convert PD messages into ASCII codes;
+#X text 188 111 Optionnal argument: append ASCII code (in this case
+13 \, a carriage return);
+#X connect 0 0 2 0;
+#X connect 1 0 2 0;
+#X connect 2 0 4 0;
+#X connect 3 0 2 0;
diff --git a/test/from_ascii_code.c b/src/from_ascii_code.c
index 31f5086..31f5086 100644
--- a/test/from_ascii_code.c
+++ b/src/from_ascii_code.c
diff --git a/test/to_ascii_code.c b/src/to_ascii_code.c
index 8aa3155..8aa3155 100644
--- a/test/to_ascii_code.c
+++ b/src/to_ascii_code.c
diff --git a/test/Makefile b/test/Makefile
index 22929fb..dd9f914 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,36 +1,37 @@
default:
-PARAM: param paramDump paramRoute paramFile paramId paramCustom
-
-current:
- echo make class
-
-clean:
- rm -f *.pd_linux *.o
-
-# ----------------------- LINUX i386 -----------------------
-
-#paramL: param.pd_linux
-
-#patchArguments: patchArguments.pd_linux
-
-.SUFFIXES: .pd_linux
-
-PDPATH = ../../../pd
-
-TOFPATH = ../src
-
-LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
- -Wall -W -Wshadow -Wstrict-prototypes \
- -Wno-unused -Wno-parentheses -Wno-switch
-
-LINUXINCLUDE = -I$(PDPATH)/src
-
-#.pd_linux: .c
-
-.c:
- cc $(LINUXCFLAGS) $(LINUXINCLUDE) -I $(TOFPATH) -o $*.o -c $*.c
- ld --export-dynamic -shared -o $*.pd_linux $*.o -lc -lm
- strip --strip-unneeded $*.pd_linux
- rm $*.o
- mv $*.pd_linux ~/pd-externals/tof
+PARAM: param paramDump paramRoute paramFile paramId paramCustom
+
+current:
+ echo make class
+
+clean:
+ rm -f *.pd_linux *.o
+
+# ----------------------- LINUX i386 -----------------------
+
+#paramL: param.pd_linux
+
+#patchArguments: patchArguments.pd_linux
+
+.SUFFIXES: .pd_linux
+
+PDPATH = ../../../pd
+
+TOFPATH = ../src
+
+LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+LINUXINCLUDE = -I$(PDPATH)/src
+
+#.pd_linux: .c
+
+.c:
+ cc $(LINUXCFLAGS) $(LINUXINCLUDE) -I $(TOFPATH) -o $*.o -c $*.c
+ ld --export-dynamic -shared -o $*.pd_linux $*.o -lc -lm
+ strip --strip-unneeded $*.pd_linux
+ rm $*.o
+ mv $*.pd_linux ~/pd-externals/tof
+ cp $*-help.pd ~/pd-externals/tof
diff --git a/test/from_ascii_code-help.pd b/test/from_ascii_code-help.pd
deleted file mode 100644
index 0b4ee06..0000000
--- a/test/from_ascii_code-help.pd
+++ /dev/null
@@ -1,19 +0,0 @@
-#N canvas 1285 315 450 300 10;
-#X obj 107 212 print;
-#X msg 93 43 65;
-#X msg 139 47 43;
-#X obj 190 61 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
--1;
-#X msg 52 49 32;
-#X obj 107 165 tof/from_ascii_code 13;
-#X msg 240 60 49 50 51 32 50 13;
-#X msg 280 95 54;
-#X msg 282 126 13;
-#X connect 1 0 5 0;
-#X connect 2 0 5 0;
-#X connect 3 0 5 0;
-#X connect 4 0 5 0;
-#X connect 5 0 0 0;
-#X connect 6 0 5 0;
-#X connect 7 0 5 0;
-#X connect 8 0 5 0;
diff --git a/test/to_ascii_code-help.pd b/test/to_ascii_code-help.pd
deleted file mode 100644
index 276bd99..0000000
--- a/test/to_ascii_code-help.pd
+++ /dev/null
@@ -1,13 +0,0 @@
-#N canvas 1371 321 506 219 10;
-#X msg 108 32 test;
-#X msg 262 34 1234;
-#X obj 95 74 tof/to_ascii_code 13;
-#X msg 173 36 list abcdef;
-#X obj 95 115 print codes;
-#X obj 214 115 print length;
-#X text 234 73 Optionnal argument: append ascii code;
-#X connect 0 0 2 0;
-#X connect 1 0 2 0;
-#X connect 2 0 4 0;
-#X connect 2 1 5 0;
-#X connect 3 0 2 0;