Code Monkey home page Code Monkey logo

tutorial's Introduction

Librosa tutorial

In this tutorial, my goal is to get you set up to use librosa for audio and music analysis. This tutorial will be interactive, and it will be best if you follow along on your own machine. Feel free to bring along some of your own music to analyze!

We'll be using Jupyter notebooks and the Anaconda Python environment with Python version 3.5. It will be best if you follow the instructions below before attending the tutorial, but installation disks will also be provided in case anything goes wrong or you require assistance.


Installing the dependencies

Before getting started with librosa, it's important to have a working environment with all dependencies satisfied. For this, we recommend using the Anaconda distribution of Python 3.5. (Older versions of Python are supported as well.)

Once your Anaconda environment is installed and activated, you can install librosa through conda-forge:

conda install -c conda-forge librosa

Audio codecs

Librosa requires a few additional packages to load audio data encoded in various formats (e.g., mp3, ogg, flac, m4a). The two main libraries used by librosa are ffmpeg and gstreamer. Both are optional, but you must install at least one package. Audio codec libraries are packaged differently on different platforms.

  • On Linux, ffmpeg is available through conda-forge and is installed automatically when librosa is installed through conda-forge. GStreamer can be installed through your Linux distribution's package manager (e.g., apt-get install libgstreamer1.0-0 on Debian/Ubuntu).

  • On OSX, ffmpeg is available through conda-forge and is installed automatically when librosa is installed through conda-forge. GStreamer can be installed by brew install gstreamer or by downloading directly from the gstreamer downloads page.

  • On Windows, ffmpeg must be installed separately from the ffmpeg downloads page.

For all operating systems, if you're using gstreamer, you will need to install PyGObject through pip:

pip install PyGObject

Jupyter

The tutorial materials in this repository are provided in the form of Jupyter notebooks. Jupyter can be installed by the following command:

conda install jupyter

tutorial's People

Contributors

bmcfee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tutorial's Issues

Notebook updates

Following modifications required.

  1. librosa.feature.chroma no longer available in latest version and now has three different methods
  2. Would be good to mention (or add code cell) mentioning that librosa.display needs to be imported separately (from librosa import display)
  3. Also, should the following comment be removed/modified 'Note: major overhaul coming in 0.5'

No instructions for starting a Notebook

The documentation is great but leaves a user who is unfamiliar with Jupyter feeling a little lost:

"But... what do I do with this notebook thingy?"

Perhaps adding a link to documentation about how to start Jupyter and open a notebook would be helpful?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.