Skip to content

Commit 70c5586

Browse files
committed
fix tutorials, toml file and tempo module
1 parent 85c04ce commit 70c5586

File tree

6 files changed

+145307
-1383
lines changed

6 files changed

+145307
-1383
lines changed

docs/source/Tutorial poprock.ipynb

+227-1,220
Large diffs are not rendered by default.

docs/source/Tutorial.ipynb

+1,437-55
Large diffs are not rendered by default.

docs/source/musif.log.2023-12-26

+143,640
Large diffs are not rendered by default.

musif/extract/features/tempo/handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def extract_time_signatures(measures: list, score_data: dict) -> tuple:
136136
time_signatures.append(time_signatures[ts_measures[element.measureNumber]])
137137

138138
time_signatures_set = set(time_signatures)
139-
time_signature = list(sorted(time_signatures_set, key=time_signatures.index))[0]
139+
time_signature = list(sorted(time_signatures_set, key=time_signatures.index))[0] if time_signatures_set else ''
140140

141141
time_signature_grouped = get_time_signature_type(time_signature)
142142
number_of_beats = get_number_of_beats(time_signature)

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ dependencies = [
1414
name = "musif"
1515
version = "1.2"
1616
description = "Music feature extraction library from the DIDONE project"
17-
authors = [{ name = "Didone Project", email = "[email protected]" }]
17+
authors = [{name = "Didone Project", email = "[email protected]"}]
1818
requires-python = ">=3.10"
1919
readme = "README.md"
20-
license = { text = "MIT" }
20+
license = { text = "MIT"}
2121
[project.optional-dependencies]
2222

2323
[build-system]
2424
requires = ["pdm-pep517>=1.0.0"]
2525
build-backend = "pdm.pep517.api"
2626

27-
2827
[tool]
2928
[tool.pdm]
3029
[tool.pdm.build]

xml_cut_and_save_midi.py

-104
This file was deleted.

0 commit comments

Comments
 (0)