From 720766575f063a491372cb8d28b35e1c085eaeae Mon Sep 17 00:00:00 2001 From: "cedric.riou" Date: Tue, 24 Oct 2017 13:55:17 +0200 Subject: [PATCH 1/2] Add metabox example --- plugins/processing/examples/CMakeLists.txt | 2 + .../examples/metaboxes/SignalCleanup.mxb | 298 ++++++++++++++++++ 2 files changed, 300 insertions(+) create mode 100644 plugins/processing/examples/metaboxes/SignalCleanup.mxb diff --git a/plugins/processing/examples/CMakeLists.txt b/plugins/processing/examples/CMakeLists.txt index d29dbce8c..6db3f95fa 100755 --- a/plugins/processing/examples/CMakeLists.txt +++ b/plugins/processing/examples/CMakeLists.txt @@ -38,3 +38,5 @@ INSTALL(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION ${DIST_LIBDIR}) INSTALL(DIRECTORY box-tutorials DESTINATION ${DIST_DATADIR}/openvibe/scenarios/) +INSTALL(DIRECTORY metaboxes DESTINATION ${DIST_DATADIR}/openvibe/) + diff --git a/plugins/processing/examples/metaboxes/SignalCleanup.mxb b/plugins/processing/examples/metaboxes/SignalCleanup.mxb new file mode 100644 index 000000000..165e63202 --- /dev/null +++ b/plugins/processing/examples/metaboxes/SignalCleanup.mxb @@ -0,0 +1,298 @@ + + 1 + OpenVIBE + 0.2.99 + + + (0x007deef9, 0x2f3e95c6) + LowCutFrequency + 1 + 1 + + + (0x007deef9, 0x2f3e95c6) + HighCutFrequency + 100 + 100 + + + + + (0x5ba36127, 0x195feae1) + Input Signal + (0x0d17e04a, 0x1c8eee27) + 0 + + + + + (0x5ba36127, 0x195feae1) + Filtered Signal + (0x7ebeb131, 0x19f98c70) + 0 + + + + + (0x0d17e04a, 0x1c8eee27) + Notch Filter + (0xb4f9d042, 0x9d79f2e5) + + + (0x5ba36127, 0x195feae1) + Input signal + + + + + (0x5ba36127, 0x195feae1) + Output signal + + + + + (0x2f2c606c, 0x8512ed68) + Filter Method + Butterworth + Butterworth + false + + + (0xfa20178e, 0x4cba62e9) + Filter Type + Band Pass + Band Stop + false + + + (0x007deef9, 0x2f3e95c6) + Filter Order + 4 + 4 + false + + + (0x512a166f, 0x5c3ef83f) + Low Cut-off Frequency (Hz) + 1 + 48 + false + + + (0x512a166f, 0x5c3ef83f) + High Cut-off Frequency (Hz) + 40 + 52 + false + + + (0x512a166f, 0x5c3ef83f) + Band Pass Ripple (dB) + 0.5 + 0.5 + false + + + + + (0x1fa7a38f, 0x54edbe0b) + 256 + + + (0x207c9054, 0x3c841b63) + 288 + + + (0x4e7b798a, 0x183beafb) + (0x27a4ceec, 0x876d6384) + + + (0xc80ce8af, 0xf699f813) + 1 + + + (0xce18836a, 0x9c0eb403) + 6 + + + (0xcfad85b0, 0x7c6d841c) + 1 + + + + + (0x7ebeb131, 0x19f98c70) + Band Pass + (0xb4f9d042, 0x9d79f2e5) + + + (0x5ba36127, 0x195feae1) + Input signal + + + + + (0x5ba36127, 0x195feae1) + Output signal + + + + + (0x2f2c606c, 0x8512ed68) + Filter Method + Butterworth + Butterworth + false + + + (0xfa20178e, 0x4cba62e9) + Filter Type + Band Pass + Band Pass + false + + + (0x007deef9, 0x2f3e95c6) + Filter Order + 4 + 4 + false + + + (0x512a166f, 0x5c3ef83f) + Low Cut-off Frequency (Hz) + 1 + $var{LowCutFrequency} + false + + + (0x512a166f, 0x5c3ef83f) + High Cut-off Frequency (Hz) + 40 + $var{HighCutFrequency} + false + + + (0x512a166f, 0x5c3ef83f) + Band Pass Ripple (dB) + 0.5 + 0.5 + false + + + + + (0x1fa7a38f, 0x54edbe0b) + 320 + + + (0x207c9054, 0x3c841b63) + 288 + + + (0x4e7b798a, 0x183beafb) + (0x27a4ceec, 0x876d6384) + + + (0xc80ce8af, 0xf699f813) + 1 + + + (0xce18836a, 0x9c0eb403) + 6 + + + (0xcfad85b0, 0x7c6d841c) + 1 + + + + + + + (0x47f3989a, 0x16eca6a5) + + (0x0d17e04a, 0x1c8eee27) + 0 + + + (0x7ebeb131, 0x19f98c70) + 0 + + + + + + (0x1785e47c, 0x56b8227f) + This is an <u>example of metabox</u> used in the metabox +tutorial at <i>http://openvibe.inria.fr/designer-tutorial-5-metaboxes#Creating+metaboxes</i> + + + (0x473d9a43, 0x97fc0a97) + 320 + + + (0x7234b86b, 0x2b8651a5) + 96 + + + + + + + (0x260f2f8f, 0x2018a17e) + (0x3bcce5d2, 0x43f2d968) + [{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"height":1,"identifier":"(0x2493e905, 0x578f4d26)","name":"Default window","parentIdentifier":"(0xffffffff, 0xffffffff)","type":1,"width":1},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"identifier":"(0x3e591476, 0x11ecc87e)","index":0,"name":"Default tab","parentIdentifier":"(0x2493e905, 0x578f4d26)","type":2},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":0,"identifier":"(0x1b569e6e, 0x77c50f4a)","index":0,"name":"Empty","parentIdentifier":"(0x3e591476, 0x11ecc87e)","type":0}] + + + + + (0x079d1f09, 0x667c7871) + + + + (0x198dd621, 0xab7f153f) + (0x40c92d63, 0xac62524f) + + + (0x20c6d158, 0xfe90aadd) + (0xc5ff4141, 0x29c532e4) + + + (0x60bc58ab, 0x7a1b4d83) + + + + (0x790d75b8, 0x3bb90c33) + + + + (0x7a3a1558, 0xf12c63c2) + + + + (0x84009d7c, 0x3c4e763b) + + + + (0x8c1fc55b, 0x7b433dc2) + 1.0 + + + (0x9f5c4075, 0x4a0d3666) + Signal Cleanup + + + (0xf36a1567, 0xd13c53da) + + + + (0xf6b2e3fa, 0x7bd43926) + Metabox/Signal Process + + + (0xf8034a49, 0x8b3f37cc) + + + + \ No newline at end of file -- GitLab From 8c86f7aca218feaff1e04b8bd4a30d43d85089d7 Mon Sep 17 00:00:00 2001 From: "cedric.riou" Date: Tue, 24 Oct 2017 14:14:07 +0200 Subject: [PATCH 2/2] Add pygame requiry for python-pygame scenario --- .../python/python-pygame-multiprocessing.xml | 35 ++++--------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/contrib/plugins/processing/python/box-tutorials/python/python-pygame-multiprocessing.xml b/contrib/plugins/processing/python/box-tutorials/python/python-pygame-multiprocessing.xml index 3060bfb37..278dbdb19 100644 --- a/contrib/plugins/processing/python/box-tutorials/python/python-pygame-multiprocessing.xml +++ b/contrib/plugins/processing/python/box-tutorials/python/python-pygame-multiprocessing.xml @@ -1,7 +1,10 @@ 1 - openvibe - 2.0 + OpenVIBE + 0.2.99 + + + (0x441e2100, 0x610e711c) @@ -32,10 +35,6 @@ (0x1fa7a38f, 0x54edbe0b) 224 - - (0x1fa963f5, 0x1a638cd4) - 57 - (0x207c9054, 0x3c841b63) 256 @@ -56,10 +55,6 @@ (0x61d11811, 0x71e65362) - - (0xad100179, 0xa3c984ab) - 180 - (0xce18836a, 0x9c0eb403) 2 @@ -103,10 +98,6 @@ (0x1fa7a38f, 0x54edbe0b) 352 - - (0x1fa963f5, 0x1a638cd4) - 57 - (0x207c9054, 0x3c841b63) 256 @@ -127,10 +118,6 @@ (0x61d11811, 0x71e65362) - - (0xad100179, 0xa3c984ab) - 180 - (0xce18836a, 0x9c0eb403) 2 @@ -174,10 +161,6 @@ (0x1fa7a38f, 0x54edbe0b) 416 - - (0x1fa963f5, 0x1a638cd4) - 57 - (0x207c9054, 0x3c841b63) 256 @@ -198,10 +181,6 @@ (0x61d11811, 0x71e65362) - - (0xad100179, 0xa3c984ab) - 180 - (0xce18836a, 0x9c0eb403) 2 @@ -274,7 +253,7 @@ the same time. <big><b><span color="red">Warning</span></b></big> For the time being multiprocessing and pygame only work -on <b>Linux</b> operating system. +on <b>Linux</b> operating system provided <span color="red">you have installed <i>pygame</i> module</span> in Python. (0x473d9a43, 0x97fc0a97) @@ -291,7 +270,7 @@ on <b>Linux</b> operating system. (0x0000775c, 0x000078ff) (0x3bcce5d2, 0x43f2d968) - [{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"height":1,"identifier":"(0x71777b71, 0x7d9b955c)","index":0,"name":"Default window","parentIdentifier":"(0xffffffff, 0xffffffff)","type":1,"width":1},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"identifier":"(0x3587c6af, 0x788f3c37)","index":0,"name":"Default tab","parentIdentifier":"(0x71777b71, 0x7d9b955c)","type":2},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":0,"identifier":"(0x5aab9723, 0x14698840)","index":0,"name":"Empty","parentIdentifier":"(0x3587c6af, 0x788f3c37)","type":0}] + [{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"height":1,"identifier":"(0x71777b71, 0x7d9b955c)","name":"Default window","parentIdentifier":"(0xffffffff, 0xffffffff)","type":1,"width":1},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"identifier":"(0x3587c6af, 0x788f3c37)","index":0,"name":"Default tab","parentIdentifier":"(0x71777b71, 0x7d9b955c)","type":2},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":0,"identifier":"(0x5aab9723, 0x14698840)","index":0,"name":"Empty","parentIdentifier":"(0x3587c6af, 0x788f3c37)","type":0}] \ No newline at end of file -- GitLab