MTG / essentia

C++ library for audio and music analysis, description and synthesis, including Python bindings
http://essentia.upf.edu
GNU Affero General Public License v3.0
2.84k stars 530 forks source link

Re-organize and consolidate Python examples and tutorials #1123

Open dbogdanov opened 3 years ago

dbogdanov commented 3 years ago

Consider reorganizing Python examples (*.py code examples) and tutorials (*.ipynb notebooks).

Currently both appear in two folders, src/examples/python and src/examples/tutorial, and this can create some confusion.

Consolidating into one folder is possibly a good approach. From the other side, there will be to many files and we could split into subfolders by topics.

palonso commented 3 years ago

I think that neither all the *.py files are examples nor all the *.ipynb are tutorials. But maybe the extension is already good enough for the division. What about src/examples/python and src/examples/python/notebooks. We could also rename the files as <type>_<title>.<ext> where type can be example or tutorial for consistency.

palonso commented 3 years ago

@dbogdanov should I go on and create a PR with this organization?

dbogdanov commented 3 years ago

I am reviewing the main notebook with examples and I am going to consolidate more examples from this tutorial. Let's hold on til I finish this.

I am thinking whether to split the examples by application already (e.g., melody detection, onsets, tempo, spectral shape) instead of having a single notebook. Having a single notebook is going to be very cluttered in the future as we are going to add even more examples.

dbogdanov commented 3 years ago
dbogdanov commented 3 years ago

Started some work in the examples_updates branch.