Commit 05a88ae8 authored by Steve Tjoa's avatar Steve Tjoa

Merge branch 'gh-pages' of github.com:stevetjoa/stanford-mir into gh-pages

parents 9947eee3 2eb963ab
...@@ -10,7 +10,11 @@ ...@@ -10,7 +10,11 @@
"source": [ "source": [
"%matplotlib inline\n", "%matplotlib inline\n",
"import seaborn\n", "import seaborn\n",
"import numpy, scipy, matplotlib.pyplot as plt, sklearn, pandas, librosa, urllib, IPython.display, os.path\n", "import numpy, scipy\n",
"import matplotlib.pyplot as plt\n",
"import sklearn, pandas\n",
"import librosa, librosa.display\n",
"import urllib, IPython.display, os.path\n",
"plt.rcParams['figure.figsize'] = (14, 5)" "plt.rcParams['figure.figsize'] = (14, 5)"
] ]
}, },
...@@ -159,7 +163,7 @@ ...@@ -159,7 +163,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"# See http://musicinformationretrieval.com/stft.html for more details on displaying spectrograms.\n", "# See http://musicinformationretrieval.com/stft.html for more details on displaying spectrograms.\n",
"S_brahms = librosa.feature.melspectrogram(x_brahms, fs_brahms)" "S_brahms = librosa.feature.melspectrogram(x_brahms, sr=fs_brahms)"
] ]
}, },
{ {
...@@ -202,7 +206,7 @@ ...@@ -202,7 +206,7 @@
} }
], ],
"source": [ "source": [
"librosa.display.specshow(S_log_brahms, fs_brahms, x_axis='time', y_axis='mel')" "librosa.display.specshow(S_log_brahms, sr=fs_brahms, x_axis='time', y_axis='mel')"
] ]
}, },
{ {
...@@ -467,7 +471,7 @@ ...@@ -467,7 +471,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"# See http://musicinformationretrieval.com/stft.html for more details on displaying spectrograms.\n", "# See http://musicinformationretrieval.com/stft.html for more details on displaying spectrograms.\n",
"S_busta = librosa.feature.melspectrogram(x_busta, fs_busta)" "S_busta = librosa.feature.melspectrogram(x_busta, sr=fs_busta)"
] ]
}, },
{ {
...@@ -510,7 +514,7 @@ ...@@ -510,7 +514,7 @@
} }
], ],
"source": [ "source": [
"librosa.display.specshow(S_log_busta, fs_busta, x_axis='time', y_axis='mel')" "librosa.display.specshow(S_log_busta, sr=fs_busta, x_axis='time', y_axis='mel')"
] ]
}, },
{ {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment