O'Reilly logo

openFrameworks Essentials by Denis Perevalov, Igor Tatarnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reading data from a text file

A fruitful source of input data for parameter automation are text files. Such files can contain various pieces of information, such as statistics of the weather (temperature) for a century, solar activity forecast, or recordings of human body motion captured by depth cameras. By parsing data from these files and using it as values for a project's parameters, we can obtain quite an interesting (and scientifically meaningful) parameter's automation.

Let's demonstrate it by parsing the eeg.txt text file containing a 128-channel electroencephalography (EEG) recording. This file is contained in the archive provided with the book.

Note

The EEG recording file, eeg.txt, was made by the Laboratory for Brain and Neurocognitive ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required