How can I trigger audio play with analogue input? #1824
-
Hi, guys. I recently started to use Bonsai for mouse behavioral set up and ran onto trouble. This might be stupid question but there is no other place to turn to. For now, I am trying to trigger audio play with analogue signal from NI analogue input. What I would like to do is sending trigger signal when analogue signal is bigger than certain threshold. When tried to use "Greater Than", but error occurred with the message "Unsupported number of arguments. This node requires at least 2 input connection(s)". I tried several nodes like "Int" or "Double" with threshold values but they were not compatible with "Greater Than". How can I solve this problem, or is there any other options I can try? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Heya. |
Beta Was this translation helpful? Give feedback.
Condition
is probably what you want. I would encourage you to go through the basics of bonsai by following the tutorials. These basic patterns (or something very close) are shown there.https://bonsai-rx.org/docs/tutorials/synching.html#exercise-6-recording-response-triggered-videos