Last active
April 8, 2016 17:46
-
-
Save AtlasPilotPuppy/2c1a367e6f6e23ef7bb8ed54e772f719 to your computer and use it in GitHub Desktop.
Analysis of an audio track
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"name": "stderr", | |
"output_type": "stream", | |
"text": [ | |
"/usr/local/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.\n", | |
" warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')\n" | |
] | |
} | |
], | |
"source": [ | |
"import matplotlib.pyplot as plt\n", | |
"from scipy.fftpack import fft\n", | |
"from scipy.io import wavfile\n", | |
"import librosa\n", | |
"import numpy as np\n", | |
"import IPython.display\n", | |
"\n", | |
"%matplotlib inline" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"!wget http://fgkzc.yt-downloader.org/download.php?id=f1bc3be5768c72360a08b657ca523705 -O shakira.mp3" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"y, sr = librosa.load('shakira.mp3')" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"\n", | |
" <audio controls=\"controls\" >\n", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment