From 8a4a7a9768339aaa61f9a9c9805411e55aaf3e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Sun, 9 Mar 2014 21:21:44 +0100 Subject: [PATCH] added initial transcoding config for mario, the actual mapping targets must be discussed --- config_files/transcoding_config.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 config_files/transcoding_config.py diff --git a/config_files/transcoding_config.py b/config_files/transcoding_config.py new file mode 100644 index 0000000..c68f489 --- /dev/null +++ b/config_files/transcoding_config.py @@ -0,0 +1,30 @@ +from chaosc.transcoders_ng import * + +transcoders = [ + MappingTranscoder( + "/(.*?)/ekg", + "insert resolume osc address here", + [["osc_arg", 0, "osc_arg", 0, IntRange2FloatConverter(1023)]]), + MappingTranscoder( + "/(.*?)/heartbeat", + "insert resolume osc address here", + [ + ["osc_arg", 0, "osc_arg", 0, KeepConverter()], + ["osc_arg", 1, "osc_arg", 1, KeepConverter()], + ["osc_arg", 2, "osc_arg", 2, KeepConverter()]]), + MappingTranscoder( + "/(.*?)/airFlow", + "insert resolume osc address here", + [ + ["osc_arg", 0, "osc_arg", 0, KeepConverter()]]), + MappingTranscoder( + "/(.*?)/emg", + "insert resolume osc address here", + [ + ["osc_arg", 0, "osc_arg", 0, KeepConverter()]]), + MappingTranscoder( + "/(.*?)/temperature", + "insert resolume osc address here", + [ + ["osc_arg", 0, "osc_arg", 0, KeepConverter()]]), +]