OpenBCI / OpenBCI_GUI

A cross platform application for the OpenBCI Cyton and Ganglion. Tested on Mac, Windows and Ubuntu/Mint Linux.
MIT License
728 stars 258 forks source link

Increase Spectrogram Scroll Accuracy #661

Open retiutut opened 4 years ago

retiutut commented 4 years ago

Problem

When going up to 40Hz, 30 seconds pass and the data does not hit the 30 second mark.

Expected

30 seconds pass and data always hits 30 second marker in 40Hz, and similar results across sample rates.

Hopefully, we can use something like Java TimerTask to fetch new data from FFT and shift pixel array to the left by one step in a separate thread.

Operating System and Version

macOS/Windows/Linux

GUI Version

v4.2.0-alpha

Running standalone app

VSCode + processingjava

Type of OpenBCI Board

Playback and Synthetic mode (live modes behave the same as synthetic)

Are you using a WiFi Shield?

No

Console Log

N/A

jps2000 commented 3 years ago

thank you

retiutut commented 3 years ago

Fix for new Focus widget timing that will resolve this issue: https://github.com/OpenBCI/OpenBCI_GUI/pull/973