OpenViBE forum

The OpenViBE community
It is currently Sat Dec 16, 2017 8:30 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon May 02, 2016 4:17 pm 
Offline

Joined: Sun Jun 08, 2014 3:11 am
Posts: 1
I have two Sign Change Operators. When both are true, I would like to have a sound generated through the Sound player. Is there an easy way to detect when the output of both Sign Change Operators are 1 and thus trigger the Sound player?


Top
 Profile  
Reply with quote  
PostPosted: Tue May 17, 2016 9:24 am 
Offline

Joined: Tue Dec 04, 2012 3:53 pm
Posts: 601
Location: INRIA Rennes, FRANCE
Hi Hercp,

thats a very good question! OpenViBE doesn't currently have boxes that would do generic logic/arithmetic with stimulations. However, you can use the Lua stimulator box to this purpose. To be specific, you add two inputs to the Lua box, and then write the simple logic in Lua, inserting the result to the output of the Lua box, which you then forward to Sound Player in Designer. You can find examples of Lua scripts among the bci-scenarios/ and box-tutorials/lua/ bundled with OpenViBE.

(its also possible to do the same thing with Python and using the Python scripting box, but it might be a bit easier with Lua)


Hope this helps,
Jussi


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Americanized by Maƫl Soucaze.