You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2021 June 2: I'm sorry that I haven't updated this repository lately. My career focus has drifted away from MIR, sadly. Therefore, please understand that I might not be checking this repo very frequently. However, I'm grateful that many of you still find this repo helpful. I encourage you to raise GitHub issues and participate in community discussions through the issue forums. If you want to submit a pull request, you can email steve at musicinformationretrieval dot com to let me know to check GitHub.
3
+
2021 June 2: I'm sorry that I haven't updated this repository lately. My career focus has drifted away from MIR, sadly. Therefore, please understand that I might not be checking this repo very frequently. However, I'm grateful that many of you still find this repo helpful. I encourage you to raise GitHub issues and participate in community discussions through the issue forums. If you want to submit a pull request, you can email steve at musicinformationretrieval dot com to let me know to check GitHub.
5
4
6
5
---
7
6
8
7
This repository contains instructional Jupyter notebooks related to music information retrieval (MIR). Inside these notebooks are Python code snippets that illustrate basic MIR systems.
9
8
10
9
The simplest way to use this repository is to (1) browse a read-only version of this repo at [musicinformationretrieval.com](https://musicinformationretrieval.com), and (2) follow along using a blank Jupyter notebook of your own.
11
10
12
-
Installation
13
-
------------
11
+
## Installation
14
12
15
13
1. Download and install [Anaconda for Python 3.x](https://www.anaconda.com/download).
16
-
17
14
2. Install [librosa](https://librosa.github.io/librosa/install.html) and [ffmpeg](https://librosa.github.io/librosa/install.html#ffmpeg):
18
15
19
16
conda install -c conda-forge librosa ffmpeg
@@ -24,18 +21,17 @@ Installation
24
21
25
22
[2018 June 24] These notebooks reflect the following package versions:
26
23
27
-
-ipython 6.2.1
28
-
-joblib 0.11
29
-
-jupyter 1.0.0
30
-
-librosa 0.6.1
31
-
-matplotlib 2.2.0
32
-
-numpy 1.14.2
33
-
-pandas 0.22.0
34
-
-scikit-learn 0.19.1
35
-
-scipy 1.0.0
24
+
- ipython 6.2.1
25
+
- joblib 0.11
26
+
- jupyter 1.0.0
27
+
- librosa 0.6.1
28
+
- matplotlib 2.2.0
29
+
- numpy 1.14.2
30
+
- pandas 0.22.0
31
+
- scikit-learn 0.19.1
32
+
- scipy 1.0.0
36
33
37
-
Usage
38
-
-----
34
+
## Usage
39
35
40
36
1. Start the [Jupyter notebook](https://jupyter.org/) server on your local machine. For Mac users, at the Terminal:
41
37
@@ -45,40 +41,36 @@ Usage
45
41
46
42
Jupyter should automatically open a new window in your web browser that resembles a directory tree.
47
43
48
-
2. To open a new notebook, in the new window of your web browser, click on *New* near the top right to open a new notebook.
44
+
2. To open a new notebook, in the new window of your web browser, click on _New_ near the top right to open a new notebook.
49
45
50
-
-To rename the notebook, click on "Untitled" in the top left, and choose a different name.
51
-
-Inside a cell, run `1+2`. Press `<Shift-Enter>` on a cell to run that cell. Hopefully you get the output `3`.
52
-
-Inside a cell, run `import scipy, sklearn, pandas, librosa`. Press `<Shift-Enter>` to run the cell. If that runs without error, congratulations, you have the necessary libraries installed properly.
53
-
-Try executing the content from <https://musicinformationretrieval.com> inside this blank notebook.
46
+
- To rename the notebook, click on "Untitled" in the top left, and choose a different name.
47
+
- Inside a cell, run `1+2`. Press `<Shift-Enter>` on a cell to run that cell. Hopefully you get the output `3`.
48
+
- Inside a cell, run `import scipy, sklearn, pandas, librosa`. Press `<Shift-Enter>` to run the cell. If that runs without error, congratulations, you have the necessary libraries installed properly.
49
+
- Try executing the content from <https://musicinformationretrieval.com> inside this blank notebook.
54
50
55
51
3. To close the Jupyter notebook,
56
52
57
-
-Save the notebook. (Either use keyboard shortcut `s`, or "File | Save" in the top menu.)
58
-
-Close the browser window.
59
-
-If you opened the notebook from a prompt/shell as indicated in Step 1 above, from that shell, press `<Ctrl-C>` twice to return to the prompt.
53
+
- Save the notebook. (Either use keyboard shortcut `s`, or "File | Save" in the top menu.)
54
+
- Close the browser window.
55
+
- If you opened the notebook from a prompt/shell as indicated in Step 1 above, from that shell, press `<Ctrl-C>` twice to return to the prompt.
60
56
61
57
Congratulations, you are now running a Jupyter notebook, and you can get started with the notebooks in this repository.
62
58
63
59
After installing, if something doesn’t work, try closing the terminal or restarting the OS. Sometimes that can reset the necessary configurations.
64
60
61
+
## Troubleshooting
65
62
66
-
Troubleshooting
67
-
---------------
63
+
[Issue #729](https://github.com/librosa/librosa/issues/729): `import librosa` causes `TypeError: expected string or buffer`
68
64
69
-
[Issue #729](https://github.com/librosa/librosa/issues/729): `import librosa` causes `TypeError: expected string or buffer`
65
+
- Workaround: downgrade `joblib` to v0.11:
70
66
71
-
-Workaround: downgrade `joblib` to v0.11:
67
+
pip install joblib==0.11
72
68
73
-
pip install joblib==0.11
74
-
75
-
76
-
Contributions
77
-
-------------
69
+
## Contributions
78
70
79
71
Your contributions are welcome! You can contribute in two ways:
80
72
81
-
1. Submit an issue. Click on "[Issues](https://github.com/stevetjoa/musicinformationretrieval.com/issues)" in the right navigation bar, then "New Issue". Issues can include Python bugs, spelling mistakes, broken links, requests for new content, and more.
73
+
1. Submit an issue. Click on "[Issues](https://github.com/stevetjoa/musicinformationretrieval.com/issues)" in the right navigation bar, then "New Issue". Issues can include Python bugs, spelling mistakes, broken links, requests for new content, and more.
82
74
83
75
2. Submit changes to source code or documentation. [Fork this repo](https://help.github.com/articles/fork-a-repo), make edits, then [submit a pull request](https://help.github.com/articles/using-pull-requests).
84
76
@@ -101,4 +93,3 @@ To edit musicinformationretrieval.com:
101
93
$ git push
102
94
103
95
You may need to wait 1-2 minutes before the changes are live on GitHub Pages.
0 commit comments