Current Page: NeXtMidas Training Primitives Introduction to DSP Using the Data Class
| DSP in NeXtMidas: A DSP primitive is realy no different than a simple primitive that reads and writes frame-based data. If you completed Lab 4 (Write a lite version of NOOP.), you are in good shape. The difference between a DSP primitive and `NOOP` is that the DSP primitive does something with the data between the `read(..)` and `write(..)`. The key to understanding how to do DSP in NeXtMidas is understanding the `Data` class. The `Data` Class: The `Data` class acts as a buffer for data read in from a file or that will be written out to a file. Data from a BLUE file can be directly read into a `Data` buffer and can also be written out from a `Data` buffer. Refer back to the sections on Reading Frame-Based Data and Writing Frame-Based Data for details. The `Data` class also handles conversion to/from native Java arrays. The docs for the nxm.sys.lib.Data class have details on how this works. A few of the highlights are outlined on the next page.