|
|
%!s(int64=3) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| docassets | %!s(int64=3) %!d(string=hai) anos | |
| CMakeLists.txt | %!s(int64=3) %!d(string=hai) anos | |
| README.md | %!s(int64=3) %!d(string=hai) anos | |
| appnodes.py | %!s(int64=3) %!d(string=hai) anos | |
| custom.py | %!s(int64=3) %!d(string=hai) anos | |
| dynamic_image.py | %!s(int64=3) %!d(string=hai) anos | |
| graph.py | %!s(int64=3) %!d(string=hai) anos | |
| main.py | %!s(int64=3) %!d(string=hai) anos | |
| mfcc.mp4 | %!s(int64=3) %!d(string=hai) anos | |
| sched.py | %!s(int64=3) %!d(string=hai) anos | |
| sharedconfig.py | %!s(int64=3) %!d(string=hai) anos | |
| test.dot | %!s(int64=3) %!d(string=hai) anos | |
| test.pdf | %!s(int64=3) %!d(string=hai) anos | |
| test_stereo.wav | %!s(int64=3) %!d(string=hai) anos | |
This is a pure python example. It is computing a sequence of MFCC with an overlap of 0.5 s and it is creating an animation.
It can be run with:
python main.py
The NumPy sink at the end is just recording all the MFCC outputs as a list of buffers. This list is used to create an animation.

Generate graphviz and code
Schedule length = 292
Memory usage 6614 bytes
And when executed you should get an animation looking like this:
The Python main.py contains a line which can be uncommented to record the animation as a .mp4 video.