Christophe Favergeon 4806c7f01d Streamdoc (#94) 3 лет назад
..
docassets 4806c7f01d Streamdoc (#94) 3 лет назад
CMakeLists.txt 66ea68b096 Added a dynamic mode to the compute graph. 3 лет назад
README.md 4806c7f01d Streamdoc (#94) 3 лет назад
appnodes.py 4806c7f01d Streamdoc (#94) 3 лет назад
custom.py 8e4c71fd0d Renamed SDF to Compute Graph - Static Flow 3 лет назад
dynamic_image.py 8e4c71fd0d Renamed SDF to Compute Graph - Static Flow 3 лет назад
graph.py 66ea68b096 Added a dynamic mode to the compute graph. 3 лет назад
main.py 8e4c71fd0d Renamed SDF to Compute Graph - Static Flow 3 лет назад
mfcc.mp4 8e4c71fd0d Renamed SDF to Compute Graph - Static Flow 3 лет назад
sched.py 66ea68b096 Added a dynamic mode to the compute graph. 3 лет назад
sharedconfig.py 8e4c71fd0d Renamed SDF to Compute Graph - Static Flow 3 лет назад
test.dot 3d1a7f7ff4 Improvement to the Python wrapper 3 лет назад
test.pdf 66ea68b096 Added a dynamic mode to the compute graph. 3 лет назад
test_stereo.wav 8e4c71fd0d Renamed SDF to Compute Graph - Static Flow 3 лет назад

README.md

Example 5

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.

graph5

Expected output

Generate graphviz and code
Schedule length = 292
Memory usage 6614 bytes

And when executed you should get an animation looking like this:

mfcc

The Python main.py contains a line which can be uncommented to record the animation as a .mp4 video.