justinsalamon / scaper

A library for soundscape synthesis and augmentation
BSD 3-Clause "New" or "Revised" License
383 stars 56 forks source link

Putting code from the tutorial in a runnable script #78

Open pseeth opened 4 years ago

pseeth commented 4 years ago

I made this script from the tutorial code as it stands in #55. It downloads the data required, does some clean up of the directories, and then creates the Scaper generator as laid out in the tutorial, and makes the soundscape with the associated isolated_event_audio.

https://gist.github.com/pseeth/d8140c9c0a649d6ad0b2b72ee3069b6d

Feel like it could go somewhere, perhaps in the docs. If you have Scaper installed, then running the script just makes the tutorial happen in one shot.

justinsalamon commented 4 years ago

That's really cool, nice!

How about we follow the librosa model, and have a top-level folder (at the same level as the docs and tests folders) called "examples", and place the script there? We'd then link to the script at the beginning of the tutorial so people know they can download just the code from the tutorial.

Love it.