iranroman/musicinformationretrieval.com

Google Collab

Opened this issue · 1 comments

Is there any interest to put this content available on google collaboratory for easy run?

@stevetjoa I'd like to help with updating the notebooks to run online on Google Colab. I have a few suggestions, whcih I tried to capture in the screen recording below:

ipython_audio.ipynb.mp4
  1. Skip stanford_mir. Even when fetched from the repository with wget it throws an error on init(). The notebook seems to run just fine without it
# import stanford_mir; stanford_mir.init()
  1. Add a line of code to fetch the audio file referenced in the notebook i.e.
# On Google Colab run this to fetch the audio file
!wget -P "audio" "https://github.com/stevetjoa/musicinformationretrieval.com/raw/gh-pages/audio/simple_loop.wav"
  1. Replace librosa.display.waveplot with librosa.display.waveshow
librosa.display.waveshow(x, sr=sr)

I used ipython_audio.ipynb only as an example. If you like my suggestions, I can to submit a PR with similar updates applied to all other files. I just think the repo is great and I'd be happy to contribute.