Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
musicinformationretrieval-com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
A.S.
musicinformationretrieval-com
Commits
2eb963ab
Commit
2eb963ab
authored
Jul 17, 2017
by
Steve Tjoa
Committed by
GitHub
Jul 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36 from sudara/gh-pages
Fix librosa issues in Genre Recognition notebook
parents
fddea7a2
ef2aad82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
genre_recognition.ipynb
genre_recognition.ipynb
+9
-5
No files found.
genre_recognition.ipynb
View file @
2eb963ab
...
...
@@ -10,7 +10,11 @@
"source": [
"%matplotlib inline\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)"
]
},
...
...
@@ -159,7 +163,7 @@
"outputs": [],
"source": [
"# 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 @@
}
],
"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 @@
"outputs": [],
"source": [
"# 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 @@
}
],
"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')"
]
},
{
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment