Trigger fror two Sign Change Operators

Concerning processing components: filters, file load/save, visualizations, communication ...
Post Reply
hercp
Posts: 1
Joined: Sun Jun 08, 2014 3:11 am

Trigger fror two Sign Change Operators

Post by hercp »

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?

jtlindgren
Posts: 775
Joined: Tue Dec 04, 2012 3:53 pm
Location: INRIA Rennes, FRANCE

Re: Trigger fror two Sign Change Operators

Post by jtlindgren »

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

Post Reply