csound-memread provides a way to read data associated with a process ID as audio.
Only Linux is supported or an OS that supports userspace reading of /proc/.../mem
- Linux
- Cmake >= 2.8.12
- Csound with development headers >= 6.14.0
- Optional: X11 with development libraries
Tested on Linux as of August 2021.
Create a build directory at the top of the source tree, execute cmake .., make and optionally make install as root. If the latter is not used/possible then the resulting libcsxtract library can be used with the --opcode-lib flag in Csound.
eg:
mkdir build && cd build
cmake ..
make && sudo make install
Cmake should find Csound and X11 using the modules in the cmake/Modules directory and installation should be as simple as above.
Some examples are provided in the examples directory.
Obtain a list of process IDs owned by the executing user.
- ipids[] : array of process IDs
Get the process command line or name for a given process ID if available.
Read the memory associated with a process ID into a new function table which can be
used by loscil and other such opcodes.
Buffered memory reading and direct audio output. The buffer is only refilled when koffset changes.