Hello,
Let's say that I have a long recording in which an artifacted period has been marked with the extended event (bad_motion). Is there a way to split the signal into clean recordings by automatically selecting the period between the bad_motion events? (eventually removing the clean epoch that lasts less than X seconds) ?
I am thinking of a process similar to detecting head motion in MEG.
A solution I found was to create two events from the motion: motion/start and motion/end (adding one extra motion/end at t = 0s) and then generating an extend event using the combine stim/response process with the prompt: clean_period, extend, motion/end, motion/start
It is creating the clean_period extended event. I can then use the split recording process. However. it can sometimes create a lot of very short recordings that won’t be used. Is there a way to automatically remove short periods?