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.