Playing wav files continously when ROI is entered #1995
Unanswered
LunaReimer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Guys!
I'm new with the Bonsai and are currently in a project where we want to play AudioPlayback when the defined ROI is entered by the animal. And these sounds should be repeatedly played until the ROI is left again.
I'm so far that I defined the ROI and also somehow in another file with a threshold (reagion entered) where the sound is played. But it only playes ones and then stoppes the recording and also it is difficult for me to combine it with the tracking of the animal.
So the major problem:
How can I define the threshold for the ROI like: detection of the animal -> animal enters -> sound plays -> animal leaves -> sound stops.
In the end I want to perform this with a box where 4 different sounds are played in 4 different regions.
I attached my workflows below.
Thank you!
Luna
I couldn't attach the files as bonsai so I put them in to txt.
Bonsai_ROI_definition.bonsai.txt
Audioplayback.bonsai.txt
Beta Was this translation helpful? Give feedback.
All reactions