A bidirectional link between brain oscillations and geometric patterns