Skip to content

Commit

Permalink
Making Tutorial notebook easier to run on colab directly (#239)
Browse files Browse the repository at this point in the history
* Making Tutorial notebook easier to run on colab directly

* Update Tutorial.ipynb

* Update README.md
  • Loading branch information
jalammar authored Nov 13, 2023
1 parent 541515f commit 07f4174
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
`pretty_midi` contains utility function/classes for handling MIDI data, so that it's in a format which is easy to modify and extract information from.

Documentation is available [here](http://craffel.github.io/pretty-midi/). You can also find a Jupyter notebook tutorial [here](https://nbviewer.org/github/craffel/pretty-midi/blob/main/Tutorial.ipynb).
Documentation is available [here](http://craffel.github.io/pretty-midi/). You can also find a Jupyter notebook tutorial [here](https://nbviewer.org/github/craffel/pretty-midi/blob/main/Tutorial.ipynb) (click [here](https://colab.research.google.com/github/craffel/pretty-midi/blob/main/Tutorial.ipynb) to load in Colab).

`pretty_midi` is available via [pip](https://pypi.python.org/pypi/pretty_midi) or via the [setup.py](https://github.com/craffel/pretty-midi/blob/master/setup.py) script. In order to synthesize MIDI data using fluidsynth, you need the [fluidsynth](http://www.fluidsynth.org/) program and [pyfluidsynth](https://pypi.python.org/pypi/pyfluidsynth).

Expand Down
4 changes: 4 additions & 0 deletions Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"metadata": {},
"outputs": [],
"source": [
"# Uncomment to install dependecies to run on Colab:\n",
"#!sudo apt-get install fluidsynth\n",
"#!pip install pretty_midi mir_eval pyfluidsynth\n",
"\n",
"# For Python2.6 compatibility\n",
"from __future__ import print_function\n",
"\n",
Expand Down

0 comments on commit 07f4174

Please sign in to comment.