maialib 1.7.0__cp311-cp311-macosx_10_15_universal2.whl → 1.7.1__cp311-cp311-macosx_10_15_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of maialib might be problematic. Click here for more details.
- maialib/maiacore/maiacore.cpython-311-darwin.so +0 -0
- maialib/maiacore/maiacore.pyi +56 -3
- maialib/maiapy/other.py +10 -1
- {maialib-1.7.0.dist-info → maialib-1.7.1.dist-info}/METADATA +1 -1
- {maialib-1.7.0.dist-info → maialib-1.7.1.dist-info}/RECORD +8 -8
- {maialib-1.7.0.dist-info → maialib-1.7.1.dist-info}/LICENSE.txt +0 -0
- {maialib-1.7.0.dist-info → maialib-1.7.1.dist-info}/WHEEL +0 -0
- {maialib-1.7.0.dist-info → maialib-1.7.1.dist-info}/top_level.txt +0 -0
|
Binary file
|
maialib/maiacore/maiacore.pyi
CHANGED
|
@@ -5,6 +5,9 @@ from __future__ import annotations
|
|
|
5
5
|
import typing
|
|
6
6
|
__all__ = ['Barline', 'C', 'Chord', 'Clef', 'ClefSign', 'F', 'G', 'HeapData', 'Helper', 'Interval', 'Key', 'Measure', 'Note', 'NoteData', 'NoteDataHeap', 'P', 'Part', 'RhythmFigure', 'Score', 'ScoreCollection', 'TimeSignature']
|
|
7
7
|
class Barline:
|
|
8
|
+
@staticmethod
|
|
9
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
10
|
+
...
|
|
8
11
|
def __hash__(self) -> int:
|
|
9
12
|
...
|
|
10
13
|
def __init__(self) -> None:
|
|
@@ -32,6 +35,9 @@ class Barline:
|
|
|
32
35
|
def toXML(self, identSize: int = 2) -> str:
|
|
33
36
|
...
|
|
34
37
|
class Chord:
|
|
38
|
+
@staticmethod
|
|
39
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
40
|
+
...
|
|
35
41
|
def __add__(self, arg0: Chord) -> Chord:
|
|
36
42
|
...
|
|
37
43
|
def __eq__(self, arg0: Chord) -> bool:
|
|
@@ -322,6 +328,9 @@ class Chord:
|
|
|
322
328
|
def transposeStackOnly(self, semiTonesNumber: int) -> None:
|
|
323
329
|
...
|
|
324
330
|
class Clef:
|
|
331
|
+
@staticmethod
|
|
332
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
333
|
+
...
|
|
325
334
|
def __hash__(self) -> int:
|
|
326
335
|
...
|
|
327
336
|
def __init__(self, sign: ClefSign = ..., line: int = -1) -> None:
|
|
@@ -355,6 +364,9 @@ class ClefSign:
|
|
|
355
364
|
G: typing.ClassVar[ClefSign] # value = <ClefSign.G: 0>
|
|
356
365
|
P: typing.ClassVar[ClefSign] # value = <ClefSign.P: 3>
|
|
357
366
|
__members__: typing.ClassVar[dict[str, ClefSign]] # value = {'G': <ClefSign.G: 0>, 'F': <ClefSign.F: 1>, 'C': <ClefSign.C: 2>, 'P': <ClefSign.P: 3>}
|
|
367
|
+
@staticmethod
|
|
368
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
369
|
+
...
|
|
358
370
|
def __eq__(self, other: typing.Any) -> bool:
|
|
359
371
|
...
|
|
360
372
|
def __getstate__(self) -> int:
|
|
@@ -382,9 +394,14 @@ class ClefSign:
|
|
|
382
394
|
def value(self) -> int:
|
|
383
395
|
...
|
|
384
396
|
class HeapData:
|
|
385
|
-
|
|
397
|
+
@staticmethod
|
|
398
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
399
|
+
...
|
|
386
400
|
class Helper:
|
|
387
401
|
@staticmethod
|
|
402
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
403
|
+
...
|
|
404
|
+
@staticmethod
|
|
388
405
|
@typing.overload
|
|
389
406
|
def calculateMelodyEuclideanSimilarity(melodyPattern: list[Note], otherMelody: list[Note]) -> float:
|
|
390
407
|
...
|
|
@@ -481,6 +498,9 @@ class Helper:
|
|
|
481
498
|
def transposePitch(pitch: str, semitones: int, accType: str = '#') -> str:
|
|
482
499
|
...
|
|
483
500
|
class Interval:
|
|
501
|
+
@staticmethod
|
|
502
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
503
|
+
...
|
|
484
504
|
def __hash__(self) -> int:
|
|
485
505
|
...
|
|
486
506
|
@typing.overload
|
|
@@ -658,6 +678,9 @@ class Interval:
|
|
|
658
678
|
def toCents(self) -> int:
|
|
659
679
|
...
|
|
660
680
|
class Key:
|
|
681
|
+
@staticmethod
|
|
682
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
683
|
+
...
|
|
661
684
|
def __hash__(self) -> int:
|
|
662
685
|
...
|
|
663
686
|
@typing.overload
|
|
@@ -681,6 +704,9 @@ class Key:
|
|
|
681
704
|
def setIsMajorMode(self, isMajorMode: bool) -> None:
|
|
682
705
|
...
|
|
683
706
|
class Measure:
|
|
707
|
+
@staticmethod
|
|
708
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
709
|
+
...
|
|
684
710
|
def __hash__(self) -> int:
|
|
685
711
|
...
|
|
686
712
|
def __init__(self, numStaves: int = 1, divisionsPerQuarterNote: int = 256) -> None:
|
|
@@ -852,6 +878,9 @@ class Measure:
|
|
|
852
878
|
def toXML(self, instrumentId: int = 1, identSize: int = 2) -> str:
|
|
853
879
|
...
|
|
854
880
|
class Note:
|
|
881
|
+
@staticmethod
|
|
882
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
883
|
+
...
|
|
855
884
|
def __eq__(self, arg0: Note) -> bool:
|
|
856
885
|
...
|
|
857
886
|
def __ge__(self, arg0: Note) -> bool:
|
|
@@ -1041,6 +1070,9 @@ class Note:
|
|
|
1041
1070
|
def transpose(self, semitones: int, accType: str = '') -> None:
|
|
1042
1071
|
...
|
|
1043
1072
|
class NoteData:
|
|
1073
|
+
@staticmethod
|
|
1074
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1075
|
+
...
|
|
1044
1076
|
@typing.overload
|
|
1045
1077
|
def __init__(self) -> None:
|
|
1046
1078
|
...
|
|
@@ -1048,8 +1080,13 @@ class NoteData:
|
|
|
1048
1080
|
def __init__(self, note: Note, wasEnharmonized: bool, enharmonicDiatonicDistance: int) -> None:
|
|
1049
1081
|
...
|
|
1050
1082
|
class NoteDataHeap:
|
|
1051
|
-
|
|
1083
|
+
@staticmethod
|
|
1084
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1085
|
+
...
|
|
1052
1086
|
class Part:
|
|
1087
|
+
@staticmethod
|
|
1088
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1089
|
+
...
|
|
1053
1090
|
def __hash__(self) -> int:
|
|
1054
1091
|
...
|
|
1055
1092
|
def __init__(self, partName: str, numStaves: int = 1, isPitched: bool = True, divisionsPerQuarterNote: int = 256) -> None:
|
|
@@ -1167,6 +1204,9 @@ class RhythmFigure:
|
|
|
1167
1204
|
QUARTER: typing.ClassVar[RhythmFigure] # value = <RhythmFigure.QUARTER: 5>
|
|
1168
1205
|
WHOLE: typing.ClassVar[RhythmFigure] # value = <RhythmFigure.WHOLE: 3>
|
|
1169
1206
|
__members__: typing.ClassVar[dict[str, RhythmFigure]] # value = {'MAXIMA': <RhythmFigure.MAXIMA: 0>, 'LONG': <RhythmFigure.LONG: 1>, 'BREVE': <RhythmFigure.BREVE: 2>, 'WHOLE': <RhythmFigure.WHOLE: 3>, 'HALF': <RhythmFigure.HALF: 4>, 'QUARTER': <RhythmFigure.QUARTER: 5>, 'EIGHTH': <RhythmFigure.EIGHTH: 6>, 'N16TH': <RhythmFigure.N16TH: 7>, 'N32ND': <RhythmFigure.N32ND: 8>, 'N64TH': <RhythmFigure.N64TH: 9>, 'N128TH': <RhythmFigure.N128TH: 10>, 'N256TH': <RhythmFigure.N256TH: 11>, 'N512TH': <RhythmFigure.N512TH: 12>, 'N1024TH': <RhythmFigure.N1024TH: 13>}
|
|
1207
|
+
@staticmethod
|
|
1208
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1209
|
+
...
|
|
1170
1210
|
def __eq__(self, other: typing.Any) -> bool:
|
|
1171
1211
|
...
|
|
1172
1212
|
def __getstate__(self) -> int:
|
|
@@ -1194,6 +1234,9 @@ class RhythmFigure:
|
|
|
1194
1234
|
def value(self) -> int:
|
|
1195
1235
|
...
|
|
1196
1236
|
class Score:
|
|
1237
|
+
@staticmethod
|
|
1238
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1239
|
+
...
|
|
1197
1240
|
def __hash__(self) -> int:
|
|
1198
1241
|
...
|
|
1199
1242
|
@typing.overload
|
|
@@ -1210,8 +1253,12 @@ class Score:
|
|
|
1210
1253
|
...
|
|
1211
1254
|
def clear(self) -> None:
|
|
1212
1255
|
...
|
|
1256
|
+
@typing.overload
|
|
1213
1257
|
def findMelodyPatternDataFrame(self, melodyPattern: list[Note], totalIntervalsSimilarityThreshold: float = 0.5, totalRhythmSimilarityThreshold: float = 0.5, intervalsSimilarityCallback: typing.Callable[[list[Note], list[Note]], list[float]] = None, rhythmSimilarityCallback: typing.Callable[[list[Note], list[Note]], list[float]] = None, totalIntervalSimilarityCallback: typing.Callable[[list[float]], float] = None, totalRhythmSimilarityCallback: typing.Callable[[list[float]], float] = None, totalSimilarityCallback: typing.Callable[[float, float], float] = None) -> typing.Any:
|
|
1214
1258
|
...
|
|
1259
|
+
@typing.overload
|
|
1260
|
+
def findMelodyPatternDataFrame(self, melodyPatterns: list[list[Note]], intervalSimilarityThreshold: float = 0.5, rhythmSimilarityThreshold: float = 0.5, intervalsSimilarityCallback: typing.Callable[[list[Note], list[Note]], list[float]] = None, rhythmSimilarityCallback: typing.Callable[[list[Note], list[Note]], list[float]] = None, totalIntervalSimilarityCallback: typing.Callable[[list[float]], float] = None, totalRhythmSimilarityCallback: typing.Callable[[list[float]], float] = None, totalSimilarityCallback: typing.Callable[[float, float], float] = None) -> typing.Any:
|
|
1261
|
+
...
|
|
1215
1262
|
def forEachNote(self, callback: typing.Callable[[Part, Measure, int, Note], None], measureStart: int = 0, measureEnd: int = -1, partNames: list[str] = []) -> None:
|
|
1216
1263
|
...
|
|
1217
1264
|
def getChords(self, config: json = None) -> list[tuple[int, float, Key, Chord, bool]]:
|
|
@@ -1283,6 +1330,9 @@ class Score:
|
|
|
1283
1330
|
def xPathCountNodes(self, xPath: str) -> int:
|
|
1284
1331
|
...
|
|
1285
1332
|
class ScoreCollection:
|
|
1333
|
+
@staticmethod
|
|
1334
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1335
|
+
...
|
|
1286
1336
|
def __add__(self, arg0: ScoreCollection) -> ScoreCollection:
|
|
1287
1337
|
...
|
|
1288
1338
|
def __hash__(self) -> int:
|
|
@@ -1329,6 +1379,9 @@ class ScoreCollection:
|
|
|
1329
1379
|
def setDirectoriesPaths(self, directoriesPaths: list[str]) -> None:
|
|
1330
1380
|
...
|
|
1331
1381
|
class TimeSignature:
|
|
1382
|
+
@staticmethod
|
|
1383
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1384
|
+
...
|
|
1332
1385
|
def __init__(self, timeUpper: int = 4, timeLower: int = 4) -> None:
|
|
1333
1386
|
...
|
|
1334
1387
|
def getLowerValue(self) -> int:
|
|
@@ -1345,4 +1398,4 @@ C: ClefSign # value = <ClefSign.C: 2>
|
|
|
1345
1398
|
F: ClefSign # value = <ClefSign.F: 1>
|
|
1346
1399
|
G: ClefSign # value = <ClefSign.G: 0>
|
|
1347
1400
|
P: ClefSign # value = <ClefSign.P: 3>
|
|
1348
|
-
__version__: str = '"1.7.
|
|
1401
|
+
__version__: str = '"1.7.1"'
|
maialib/maiapy/other.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import sys
|
|
2
3
|
from enum import Enum
|
|
3
4
|
import subprocess
|
|
4
5
|
import maialib.maiacore as mc
|
|
@@ -102,7 +103,15 @@ def getSampleScorePath(sampleEnum: SampleScore) -> str:
|
|
|
102
103
|
SampleScore.Strauss_Also_Sprach_Zarathustra: "Strauss_Also_Sprach_Zarathustra.mxl"
|
|
103
104
|
}[sampleEnum]
|
|
104
105
|
|
|
105
|
-
xmlDir = pkg_resources.files("maialib").joinpath("xml-scores-examples")
|
|
106
|
+
# xmlDir = pkg_resources.files("maialib").joinpath("xml-scores-examples")
|
|
107
|
+
xmlDir = ""
|
|
108
|
+
if sys.version_info >= (3, 9):
|
|
109
|
+
from importlib import resources
|
|
110
|
+
xmlDir = resources.files("maialib").joinpath("xml-scores-examples")
|
|
111
|
+
else:
|
|
112
|
+
from importlib_resources import files
|
|
113
|
+
xmlDir = files("maialib").joinpath("xml-scores-examples")
|
|
114
|
+
|
|
106
115
|
fileFullPath = os.path.join(xmlDir, xmlFileName)
|
|
107
116
|
return str(fileFullPath)
|
|
108
117
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
maialib-1.7.
|
|
2
|
-
maialib-1.7.
|
|
3
|
-
maialib-1.7.
|
|
4
|
-
maialib-1.7.
|
|
5
|
-
maialib-1.7.
|
|
1
|
+
maialib-1.7.1.dist-info/RECORD,,
|
|
2
|
+
maialib-1.7.1.dist-info/WHEEL,sha256=j-M40XxUlVuA6-6K0zmfA4XIE-X4z1PEOYnYOvNfOQw,115
|
|
3
|
+
maialib-1.7.1.dist-info/top_level.txt,sha256=sZWQaa-Up2ba00WpAxBhOLKM6qQYTpUKJMXgSE0Nc48,17
|
|
4
|
+
maialib-1.7.1.dist-info/LICENSE.txt,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
|
5
|
+
maialib-1.7.1.dist-info/METADATA,sha256=YMcaVW1wyLigMx1hVgrONs_PhIOF8_ItN1J9Vt5hJYU,6926
|
|
6
6
|
maialib/__init__.py,sha256=qiIEL1ZDvpDK0bkGUdZRib3bG973EtKQDFYPFfvJKQA,122
|
|
7
7
|
maialib/setup.py,sha256=1Cbv0DfEUNK1EQHb64-1B0rwbRrsTSnJBY8fVn8gtbU,2168
|
|
8
8
|
maialib/xml-scores-examples/Mahler_Symphony_8_Finale.mxl,sha256=F2-QBKNYjBv_sWT-z4LWi1rX84-P3msxtl-g6joA2FQ,229034
|
|
@@ -14,12 +14,12 @@ maialib/xml-scores-examples/Strauss_Also_Sprach_Zarathustra.mxl,sha256=nOQra05RH
|
|
|
14
14
|
maialib/xml-scores-examples/Bach_Cello_Suite_1.mxl,sha256=0XGNlcW8o0W7kkeG8j2V_M4eggdOnrxvvvCkpf6x_z4,29622
|
|
15
15
|
maialib/maiacore/__init__.pyi,sha256=cJfflEKHJ6BPUTlDQt95xZmi2N3zwHJkHEXy27fBd5c,1282
|
|
16
16
|
maialib/maiacore/__init__.py,sha256=IW7E0LuzAttsn0b37SEthCA0LKuzSgkepSpq8DWExYQ,77
|
|
17
|
-
maialib/maiacore/maiacore.cpython-311-darwin.so,sha256=
|
|
18
|
-
maialib/maiacore/maiacore.pyi,sha256=
|
|
17
|
+
maialib/maiacore/maiacore.cpython-311-darwin.so,sha256=SV-xFaJo-NtmnTOnFOHVeWTDY0-oM6LDlHiwLb0aIIw,7975760
|
|
18
|
+
maialib/maiacore/maiacore.pyi,sha256=VP-QsvidFYf4nRU_WTLSVGtwhhSOmYhqUZQv5Yer0tQ,46920
|
|
19
19
|
maialib/maiapy/other.pyi,sha256=jEmAc-MDc3iMA2-5hp41RLgNrfBQRMvq-sF2_pexhbo,2163
|
|
20
20
|
maialib/maiapy/__init__.pyi,sha256=L8YtZYJMw_9TrdejcKs2c5xTbu5WMRwlHhKz6Qzulf8,77
|
|
21
21
|
maialib/maiapy/__init__.py,sha256=L8YtZYJMw_9TrdejcKs2c5xTbu5WMRwlHhKz6Qzulf8,77
|
|
22
|
-
maialib/maiapy/other.py,sha256=
|
|
22
|
+
maialib/maiapy/other.py,sha256=4LjETHcpDpNRjSYIbMW_9CuRZTymuoAzog_L3CkYDA0,4345
|
|
23
23
|
maialib/maiapy/sethares_dissonance.py,sha256=uRQLTQN55dk74hIFpzu9RlTWP0ZhRpVT3yTLI-su1ww,12830
|
|
24
24
|
maialib/maiapy/plots.pyi,sha256=nRNUQ9h9kjJHTdbQt4eXv933MOx7TIztIg-inThglB4,3620
|
|
25
25
|
maialib/maiapy/plots.py,sha256=laAt68-IiZ4vNLFPKcGCf4IcMDIIZ1uavJpROrS8tqs,23153
|
|
File without changes
|
|
File without changes
|
|
File without changes
|