Commit graph

6 commits

Author SHA1 Message Date
Thomas Kolb ded8a7c21f main: cleanup 2021-02-21 19:49:16 +01:00
Thomas Kolb 8776e8e960 Properly handle and display Lua errors 2021-02-21 19:49:16 +01:00
Thomas Kolb 864add8403 Provide SignalProcessing methods to the Lua script
This is accomplished by providing a wrapped reference to the
SignalProcessing instance of the Rust program as a global Lua variable.
The wrapper class implements mlua::UserData, wraps the relevant
SignalProcessing methods and provides them as Lua methods.

So far, this is implemented for get_energy_in_band() only.
2021-02-21 19:49:16 +01:00
Thomas Kolb 62bbff481c Lua support: add script handling class with basic I/O
The relevant functions are called and the return types and sizes
verified. The API for the user is not implemented yet.
2021-02-19 23:29:52 +01:00
Thomas Kolb 942f66f7df Support overlapping FFT blocks
Now an arbitrary number of samples can be read and appended to the FFT
block. Old samples will be dropped such that only BLOCK_LEN samples
are in the memory buffer. Currently one half of the FFT block is
replaced per update.
2021-02-19 23:26:28 +01:00
Thomas Kolb ff018a98e1 Initial commit
Start experimenting with Rust. This is a little experimental, but fully
functional real-time FFT program based on the FFTW library.
2021-02-16 22:44:31 +01:00