|
39 | 39 | }, |
40 | 40 | { |
41 | 41 | "cell_type": "code", |
42 | | - "execution_count": 1, |
| 42 | + "execution_count": null, |
43 | 43 | "id": "facial-quarterly", |
44 | 44 | "metadata": { |
45 | 45 | "colab": { |
46 | 46 | "base_uri": "https://localhost:8080/" |
47 | 47 | }, |
48 | 48 | "id": "PeabdL1k7YC4", |
49 | 49 | "outputId": "fcb7d1be-27a1-4c79-c5d3-8cbfa54cae44", |
50 | | - "scrolled": true |
51 | | - }, |
52 | | - "outputs": [ |
53 | | - { |
54 | | - "name": "stdout", |
55 | | - "output_type": "stream", |
56 | | - "text": [ |
57 | | - "Requirement already satisfied: partitura in /home/manos/Desktop/JKU/codes/partitura (1.0.0)\r\n", |
58 | | - "Requirement already satisfied: numpy in /home/manos/miniconda3/envs/partitura/lib/python3.8/site-packages (from partitura) (1.21.2)\r\n", |
59 | | - "Requirement already satisfied: scipy in /home/manos/miniconda3/envs/partitura/lib/python3.8/site-packages (from partitura) (1.7.1)\r\n", |
60 | | - "Requirement already satisfied: lxml in /home/manos/miniconda3/envs/partitura/lib/python3.8/site-packages (from partitura) (4.6.3)\r\n", |
61 | | - "Requirement already satisfied: lark-parser in /home/manos/miniconda3/envs/partitura/lib/python3.8/site-packages (from partitura) (0.12.0)\r\n", |
62 | | - "Requirement already satisfied: xmlschema in /home/manos/miniconda3/envs/partitura/lib/python3.8/site-packages (from partitura) (1.8.0)\r\n", |
63 | | - "Requirement already satisfied: mido in /home/manos/miniconda3/envs/partitura/lib/python3.8/site-packages (from partitura) (1.2.10)\r\n", |
64 | | - "Requirement already satisfied: elementpath<3.0.0,>=2.2.2 in /home/manos/miniconda3/envs/partitura/lib/python3.8/site-packages (from xmlschema->partitura) (2.3.2)\r\n", |
65 | | - "fatal: destination path 'partitura_tutorial' already exists and is not an empty directory.\r\n" |
66 | | - ] |
| 50 | + "scrolled": true, |
| 51 | + "pycharm": { |
| 52 | + "is_executing": true |
67 | 53 | } |
68 | | - ], |
| 54 | + }, |
| 55 | + "outputs": [], |
69 | 56 | "source": [ |
70 | 57 | "# Install partitura\n", |
71 | 58 | "! pip install partitura\n", |
72 | 59 | " \n", |
73 | 60 | "# To be able to access helper modules in the repo for this tutorial\n", |
74 | 61 | "# (not necessary if the jupyter notebook is run locally instead of google colab)\n", |
75 | 62 | "!git clone https://github.com/CPJKU/partitura_tutorial.git\n", |
76 | | - " \n", |
| 63 | + "import warnings\n", |
| 64 | + "warnings.filterwarnings('ignore')\n", |
77 | 65 | "import sys, os\n", |
78 | 66 | "sys.path.insert(0, os.path.join(os.getcwd(), \"partitura_tutorial\", \"content\"))\n", |
79 | 67 | "sys.path.insert(0,'/content/partitura_tutorial/content')\n" |
|
122 | 110 | "application/vnd.jupyter.widget-view+json": { |
123 | 111 | "version_major": 2, |
124 | 112 | "version_minor": 0, |
125 | | - "model_id": "6918ecbb7839408cb384594317cddb27" |
| 113 | + "model_id": "51b999065d4e4460b960ff64e7507006" |
126 | 114 | } |
127 | 115 | }, |
128 | 116 | "metadata": {}, |
|
319 | 307 | "outputs": [ |
320 | 308 | { |
321 | 309 | "data": { |
322 | | - "text/plain": "[<partitura.score.Note at 0x7fdb59595430>,\n <partitura.score.Note at 0x7fdb59595c40>,\n <partitura.score.Note at 0x7fdb59595ca0>]" |
| 310 | + "text/plain": "[<partitura.score.Note at 0x7fb004c3bc70>,\n <partitura.score.Note at 0x7fb0048fb790>,\n <partitura.score.Note at 0x7fb0048fb7f0>]" |
323 | 311 | }, |
324 | 312 | "execution_count": 5, |
325 | 313 | "metadata": {}, |
|
839 | 827 | "execution_count": 26, |
840 | 828 | "id": "passing-lending", |
841 | 829 | "metadata": {}, |
842 | | - "outputs": [ |
843 | | - { |
844 | | - "name": "stderr", |
845 | | - "output_type": "stream", |
846 | | - "text": [ |
847 | | - "/home/manos/Desktop/JKU/codes/partitura/partitura/io/importmidi.py:128: UserWarning: change of Tempo to mpq = 500000 and resulting seconds per tick = 0.000125at time: 0.0\n", |
848 | | - " warnings.warn(\n" |
849 | | - ] |
850 | | - } |
851 | | - ], |
| 830 | + "outputs": [], |
852 | 831 | "source": [ |
853 | 832 | "# Note array from a performance\n", |
854 | 833 | "\n", |
|
912 | 891 | "name": "stdout", |
913 | 892 | "output_type": "stream", |
914 | 893 | "text": [ |
915 | | - "[(5.6075 , 5.5025 , 72, 37, 1, 0, 'n0')\n", |
916 | | - " (5.63375, 5.47625, 60, 27, 1, 0, 'n1')\n", |
917 | | - " (6.07 , 5.04 , 72, 45, 1, 0, 'n2')\n", |
918 | | - " (6.11125, 4.99875, 60, 26, 1, 0, 'n3')\n", |
919 | | - " (6.82625, 4.28375, 60, 39, 1, 0, 'n4')]\n" |
| 894 | + "[(5.6075 , 5.5025 , 72, 37, 0, 0, 'n0')\n", |
| 895 | + " (5.63375, 5.47625, 60, 27, 0, 0, 'n1')\n", |
| 896 | + " (6.07 , 5.04 , 72, 45, 0, 0, 'n2')\n", |
| 897 | + " (6.11125, 4.99875, 60, 26, 0, 0, 'n3')\n", |
| 898 | + " (6.82625, 4.28375, 60, 39, 0, 0, 'n4')]\n" |
920 | 899 | ] |
921 | 900 | } |
922 | 901 | ], |
|
1089 | 1068 | "text": [ |
1090 | 1069 | "[(0.25, 47, 1) (1.25, 47, 1) (2.25, 47, 1) (3. , 68, 1) (3.25, 47, 1)]\n" |
1091 | 1070 | ] |
1092 | | - }, |
1093 | | - { |
1094 | | - "name": "stderr", |
1095 | | - "output_type": "stream", |
1096 | | - "text": [ |
1097 | | - "/home/manos/Desktop/JKU/codes/partitura/partitura/directions.py:533: UserWarning: error parsing \"ritenuto\" (UnexpectedCharacters)\n", |
1098 | | - " warnings.warn('error parsing \"{}\" ({})'.format(string, type(e).__name__))\n" |
1099 | | - ] |
1100 | 1071 | } |
1101 | 1072 | ], |
1102 | 1073 | "source": [ |
|
1354 | 1325 | "execution_count": 40, |
1355 | 1326 | "id": "rolled-cloud", |
1356 | 1327 | "metadata": {}, |
1357 | | - "outputs": [ |
1358 | | - { |
1359 | | - "name": "stderr", |
1360 | | - "output_type": "stream", |
1361 | | - "text": [ |
1362 | | - "/tmp/ipykernel_907569/209301002.py:4: DeprecationWarning: `create_part` is deprecated as an argument to `load_match`; use `create_score` instead.\n", |
1363 | | - " performed_part, alignment, score_part = pt.load_match(match_fn, create_part=True)\n" |
1364 | | - ] |
1365 | | - } |
1366 | | - ], |
| 1328 | + "outputs": [], |
1367 | 1329 | "source": [ |
1368 | 1330 | "# path to the match\n", |
1369 | 1331 | "match_fn = os.path.join(MATCH_DIR, 'Chopin_op10_no3_p01.match')\n", |
|
1567 | 1529 | "\n", |
1568 | 1530 | "Thank you for trying out partitura! We hope it serves you well. \n", |
1569 | 1531 | "\n", |
1570 | | - "If you miss a particular functionality or encounter a bug, we appreciate it if you raise an issue on github: https://github.com/CPJKU/partitura/issues" |
| 1532 | + "If you miss a particular functionality or encounter a bug, we appreciate it if you raise an issue on GitHub: https://github.com/CPJKU/partitura/issues" |
1571 | 1533 | ] |
1572 | 1534 | } |
1573 | 1535 | ], |
|
0 commit comments