This code enforces trials to alternate between even and odd frequency components. After a penalty trial, the trial generator increments by 2 - this skips to the next trial with the same freq structure (either even or odd). Bmi3d will keep repeating trials with the same freq structure (but different phase shifts to the trajectories are still random) until a reward trial. After a reward trial, the trial generator increments by 1 like normal.
This code enforces trials to alternate between even and odd frequency components. After a penalty trial, the trial generator increments by 2 - this skips to the next trial with the same freq structure (either even or odd). Bmi3d will keep repeating trials with the same freq structure (but different phase shifts to the trajectories are still random) until a reward trial. After a reward trial, the trial generator increments by 1 like normal.