Instructional material for the Music Information Retrieval Workshop at CCRMA, Stanford University, 2014.
Basically, this repo contains a bunch of IPython notebooks related to music information retrieval.
If you're a visitor, browse this repo at nbviewer.ipython.org which renders the notebooks in this repo so they can be viewed in a web browser.
If you're a workshop participant, follow the steps below to get started with Git, Vagrant, and IPython.
If you don't have Git, download Git here, and install it on your local machine.
Optional: create an account at https://github.com. A GitHub account allows you to contribute code back into this repo. Then, fork this repo:
-
Click "Fork" in the top-right corner.
-
Clone this repo onto your local machine:
macbook:~$ git clone https://github.com/your_github_username/stanford-mir
Otherwise, without a GitHub account, clone this repo onto your local machine:
macbook:~$ git clone https://github.com/stevetjoa/stanford-mir
In previous workshops, a major difficulty was installing software prequisites and handling dependencies. Everyone has a different computing setup, and we would often run into problems when installed packages conflict or prerequisites aren't met.
This year, we will use Vagrant to create a local virtual development environment running Ubuntu 12.04. Vagrant will ensure that every person has exactly the same development environment with the same installed packages.
Vagrant is available for all major operating systems, including Windows, Mac OS X, and Linux. It's a breeze to install.
-
Install VirtualBox and Vagrant.
-
Create a new virtual machine using our customized Vagrant box built upon Ubuntu 12.04 64-bit.
macbook:~/stanford-mir$ vagrant up
If this is your first time running
vagrant up
, this step may take five minutes to download the Vagrant box. -
Finally, login to the new virtual machine:
macbook:~/stanford-mir$ vagrant ssh
This step logs you in to Ubuntu locally as user
vagrant
with default passwordvagrant
.
A majority of our instruction and laboratory work will occur inside the IPython notebook. You can think of the IPython notebook like the Mathematica or Matlab desktop, except it's in Python and it runs inside your web browser.
-
In your Vagrant box, start the IPython notebook server:
vagrant@stanford-mir:~$ ipython notebook
-
On your host machine, visit http://localhost:8888.
-
Open the notebook
stanford-mir/Table_of_Contents.ipynb
.
Congratulations, you are now running an IPython notebook, and you can get started with the workshop material.
Your contributions are very welcome! You can contribute in two ways:
-
Submit an issue. Click on "Issues" in the right navigation bar, then "New Issue". Issues can include Python bugs, spelling mistakes, broken links, requests for new content, and more. For a prioritized list of open issues awaiting contribution, click on the blue "Ready" button above.
-
Submit changes to source code or documentation. Fork this repo, make edits, then submit a pull request.