xdf-modules / pyxdf

Python package for working with XDF files
BSD 2-Clause "Simplified" License
37 stars 17 forks source link

Add a playback-over-LSL example script. #95

Closed cboulay closed 8 months ago

cboulay commented 11 months ago

This moves the previous example.py to print_metadata.py in a new examples module.

Additionally, in the new module, I added playback_lsl.py which will take an arbitrary XDF file and play it back over LSL. This isn't meant to be a perfect reproduction of the original streams. e.g., the stream metadata only copies over some known keys. And I keep post-processing enabled so we eliminate some jitters. It's also inefficient to run everything in a single thread. The goal here is just to have something very convenient.

cboulay commented 8 months ago

I've been using this for a while without issue.