Skip to content

Commit 730e5a5

Browse files
authored
Merge pull request #169 from CPJKU/develop
Release 1.1.1
2 parents 5844ece + f86320c commit 730e5a5

File tree

84 files changed

+1087
-321
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1087
-321
lines changed

.github/workflows/partitura_unittests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Partitura Unittests
22

33
on:
44
push:
5-
branches: [master, develop]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [master, develop]
7+
branches: [develop]
88

99
jobs:
1010
test:

.readthedocs.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# .readthedocs.yaml
3+
# Read the Docs configuration file
4+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
5+
6+
# Required
7+
version: 2
8+
9+
# Set the version of Python and other tools you might need
10+
build:
11+
os: ubuntu-20.04
12+
tools:
13+
python: "3.8"
14+
15+
#mkdocs:
16+
# configuration: mkdocs.yml
17+
18+
# Optionally declare the Python requirements required to build your docs
19+
python:
20+
install:
21+
- requirements: docs/requirements.txt

CHANGES.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
Release Notes
22
=============
33

4+
5+
Version 1.1.1 (Released on 2022-10-31)
6+
--------------------------------------
7+
8+
New features:
9+
10+
* New minor feature : Adding midi pitch to freq for synthesizer add reference-based midi pitch to freq #163
11+
12+
Bug fixes:
13+
14+
* Documentation Fix of ReadTheDocs
15+
* Bug fix Bug synthesizing scores with pickup measures #166 Synthesizing score with pick up measure
16+
* Bug Fix of kern import Kern import fix #160
17+
* Bug Fix of Musicxml import repeat infer Bug with musicxml Import #161
18+
* Bug fix Note array with empty voice Note array from note list with empty voice bug. #159
19+
* Fix synthesizing scores with pickup measures #167
20+
21+
Other changes:
22+
23+
* Encoding declaration on all files.
24+
* Renaming master branch as main
25+
26+
427
Version 1.0.0 (Released on 2022-09-20)
528
--------------------------------------
629

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ agreement No. 670035 project ["Con Espressione"](https://www.jku.at/en/institute
241241
and the Austrian Science Fund (FWF) under grant P 29840-G26 (project
242242
["Computer-assisted Analysis of Herbert von Karajan's Musical Conducting Style"](https://karajan-research.org/programs/musical-interpretation-karajan))
243243
<p align="center">
244-
<img src="./docs/images/aknowledge_logo.png#gh-light-mode-only" height="200">
245-
<img src="./docs/images/aknowledge_logo_negative.png#gh-dark-mode-only" height="200">
244+
<img src="docs/source/images/aknowledge_logo.png#gh-light-mode-only" height="200">
245+
<img src="docs/source/images/aknowledge_logo_negative.png#gh-dark-mode-only" height="200">
246246
</p>
247247

248248
[//]: # ()

docs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# from the environment for the first two.
66
SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
8-
SOURCEDIR = .
9-
BUILDDIR = _build
8+
SOURCEDIR = source
9+
BUILDDIR = build
1010

1111
# Put it first so that "make" without argument is like "make help".
1212
help:

docs/make.bat

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
@ECHO OFF
2-
3-
pushd %~dp0
4-
5-
REM Command file for Sphinx documentation
6-
7-
if "%SPHINXBUILD%" == "" (
8-
set SPHINXBUILD=sphinx-build
9-
)
10-
set SOURCEDIR=.
11-
set BUILDDIR=_build
12-
13-
if "%1" == "" goto help
14-
15-
%SPHINXBUILD% >NUL 2>NUL
16-
if errorlevel 9009 (
17-
echo.
18-
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19-
echo.installed, then set the SPHINXBUILD environment variable to point
20-
echo.to the full path of the 'sphinx-build' executable. Alternatively you
21-
echo.may add the Sphinx directory to PATH.
22-
echo.
23-
echo.If you don't have Sphinx installed, grab it from
24-
echo.http://sphinx-doc.org/
25-
exit /b 1
26-
)
27-
28-
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29-
goto end
30-
31-
:help
32-
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33-
34-
:end
35-
popd
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
if "%1" == "" goto help
14+
15+
%SPHINXBUILD% >NUL 2>NUL
16+
if errorlevel 9009 (
17+
echo.
18+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19+
echo.installed, then set the SPHINXBUILD environment variable to point
20+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
21+
echo.may add the Sphinx directory to PATH.
22+
echo.
23+
echo.If you don't have Sphinx installed, grab it from
24+
echo.http://sphinx-doc.org/
25+
exit /b 1
26+
)
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

docs/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
partitura
2+
sphinx>=5
3+
nbsphinx
Lines changed: 18 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -39,41 +39,29 @@
3939
},
4040
{
4141
"cell_type": "code",
42-
"execution_count": 1,
42+
"execution_count": null,
4343
"id": "facial-quarterly",
4444
"metadata": {
4545
"colab": {
4646
"base_uri": "https://localhost:8080/"
4747
},
4848
"id": "PeabdL1k7YC4",
4949
"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
6753
}
68-
],
54+
},
55+
"outputs": [],
6956
"source": [
7057
"# Install partitura\n",
7158
"! pip install partitura\n",
7259
" \n",
7360
"# To be able to access helper modules in the repo for this tutorial\n",
7461
"# (not necessary if the jupyter notebook is run locally instead of google colab)\n",
7562
"!git clone https://github.com/CPJKU/partitura_tutorial.git\n",
76-
" \n",
63+
"import warnings\n",
64+
"warnings.filterwarnings('ignore')\n",
7765
"import sys, os\n",
7866
"sys.path.insert(0, os.path.join(os.getcwd(), \"partitura_tutorial\", \"content\"))\n",
7967
"sys.path.insert(0,'/content/partitura_tutorial/content')\n"
@@ -122,7 +110,7 @@
122110
"application/vnd.jupyter.widget-view+json": {
123111
"version_major": 2,
124112
"version_minor": 0,
125-
"model_id": "6918ecbb7839408cb384594317cddb27"
113+
"model_id": "51b999065d4e4460b960ff64e7507006"
126114
}
127115
},
128116
"metadata": {},
@@ -319,7 +307,7 @@
319307
"outputs": [
320308
{
321309
"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>]"
323311
},
324312
"execution_count": 5,
325313
"metadata": {},
@@ -839,16 +827,7 @@
839827
"execution_count": 26,
840828
"id": "passing-lending",
841829
"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": [],
852831
"source": [
853832
"# Note array from a performance\n",
854833
"\n",
@@ -912,11 +891,11 @@
912891
"name": "stdout",
913892
"output_type": "stream",
914893
"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"
920899
]
921900
}
922901
],
@@ -1089,14 +1068,6 @@
10891068
"text": [
10901069
"[(0.25, 47, 1) (1.25, 47, 1) (2.25, 47, 1) (3. , 68, 1) (3.25, 47, 1)]\n"
10911070
]
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-
]
11001071
}
11011072
],
11021073
"source": [
@@ -1354,16 +1325,7 @@
13541325
"execution_count": 40,
13551326
"id": "rolled-cloud",
13561327
"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": [],
13671329
"source": [
13681330
"# path to the match\n",
13691331
"match_fn = os.path.join(MATCH_DIR, 'Chopin_op10_no3_p01.match')\n",
@@ -1567,7 +1529,7 @@
15671529
"\n",
15681530
"Thank you for trying out partitura! We hope it serves you well. \n",
15691531
"\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"
15711533
]
15721534
}
15731535
],

docs/conf.py renamed to docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import sys
1515
import pkg_resources
1616

17-
sys.path.insert(0, os.path.abspath("../partitura"))
17+
sys.path.insert(0, os.path.abspath("../../partitura"))
1818
# The master toctree document.
1919
master_doc = "index"
2020

@@ -29,9 +29,9 @@
2929
# built documents.
3030
#
3131
# The short X.Y version.
32-
version = "1.1.0" # pkg_resources.get_distribution("partitura").version
32+
version = "1.1.1" # pkg_resources.get_distribution("partitura").version
3333
# The full version, including alpha/beta/rc tags.
34-
release = "1.1.0"
34+
release = "1.1.1"
3535

3636
# # The full version, including alpha/beta/rc tags
3737
# release = pkg_resources.get_distribution("partitura").version
File renamed without changes.

0 commit comments

Comments
 (0)