maialib 1.7.0__cp38-cp38-win_amd64.whl → 1.7.2__cp38-cp38-win_amd64.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/Release/maiacore.cp38-win_amd64.pyd +0 -0
- maialib/maiacore/Release/maiacore.pyi +58 -3
- maialib/maiapy/other.py +10 -1
- {maialib-1.7.0.dist-info → maialib-1.7.2.dist-info}/METADATA +1 -1
- {maialib-1.7.0.dist-info → maialib-1.7.2.dist-info}/RECORD +8 -8
- {maialib-1.7.0.dist-info → maialib-1.7.2.dist-info}/LICENSE.txt +0 -0
- {maialib-1.7.0.dist-info → maialib-1.7.2.dist-info}/WHEEL +0 -0
- {maialib-1.7.0.dist-info → maialib-1.7.2.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
@@ -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,14 @@ class Score:
|
|
|
1210
1253
|
...
|
|
1211
1254
|
def clear(self) -> None:
|
|
1212
1255
|
...
|
|
1256
|
+
def findAnyMelodyPatternDataFrame(self, patternNumNotes: int = 5, intervalSimilarityThreshold: float = 1.0, rhythmSimilarityThreshold: float = 1.0, 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:
|
|
1257
|
+
...
|
|
1258
|
+
@typing.overload
|
|
1213
1259
|
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
1260
|
...
|
|
1261
|
+
@typing.overload
|
|
1262
|
+
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:
|
|
1263
|
+
...
|
|
1215
1264
|
def forEachNote(self, callback: typing.Callable[[Part, Measure, int, Note], None], measureStart: int = 0, measureEnd: int = -1, partNames: list[str] = []) -> None:
|
|
1216
1265
|
...
|
|
1217
1266
|
def getChords(self, config: json = None) -> list[tuple[int, float, Key, Chord, bool]]:
|
|
@@ -1283,6 +1332,9 @@ class Score:
|
|
|
1283
1332
|
def xPathCountNodes(self, xPath: str) -> int:
|
|
1284
1333
|
...
|
|
1285
1334
|
class ScoreCollection:
|
|
1335
|
+
@staticmethod
|
|
1336
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1337
|
+
...
|
|
1286
1338
|
def __add__(self, arg0: ScoreCollection) -> ScoreCollection:
|
|
1287
1339
|
...
|
|
1288
1340
|
def __hash__(self) -> int:
|
|
@@ -1329,6 +1381,9 @@ class ScoreCollection:
|
|
|
1329
1381
|
def setDirectoriesPaths(self, directoriesPaths: list[str]) -> None:
|
|
1330
1382
|
...
|
|
1331
1383
|
class TimeSignature:
|
|
1384
|
+
@staticmethod
|
|
1385
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1386
|
+
...
|
|
1332
1387
|
def __init__(self, timeUpper: int = 4, timeLower: int = 4) -> None:
|
|
1333
1388
|
...
|
|
1334
1389
|
def getLowerValue(self) -> int:
|
|
@@ -1345,4 +1400,4 @@ C: ClefSign # value = <ClefSign.C: 2>
|
|
|
1345
1400
|
F: ClefSign # value = <ClefSign.F: 1>
|
|
1346
1401
|
G: ClefSign # value = <ClefSign.G: 0>
|
|
1347
1402
|
P: ClefSign # value = <ClefSign.P: 3>
|
|
1348
|
-
__version__: str = '"1.7.
|
|
1403
|
+
__version__: str = '"1.7.2"'
|
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
|
|
|
@@ -3,11 +3,11 @@ maialib/setup.py,sha256=SRFKCV1MVKftVrdnbrjQkL-ee4nR6pzlaURgwSJgqXU,2221
|
|
|
3
3
|
maialib/maiacore/__init__.py,sha256=0sK4fUTlwdUaieWSoGvL11TBkw6BebR2cd-MpYpJn1o,81
|
|
4
4
|
maialib/maiacore/__init__.pyi,sha256=68w5bv3qhq6lEK0JNHSWER9zuyQN8mxJV-y3JayNxNA,1472
|
|
5
5
|
maialib/maiacore/Release/__init__.pyi,sha256=ncPiCbsaSZXZUykVnOw-yqVPbE-I285Kj5moTnKTNCU,84
|
|
6
|
-
maialib/maiacore/Release/maiacore.cp38-win_amd64.pyd,sha256=
|
|
7
|
-
maialib/maiacore/Release/maiacore.pyi,sha256=
|
|
6
|
+
maialib/maiacore/Release/maiacore.cp38-win_amd64.pyd,sha256=eMT6tHCuTUkxNPEg2WwvRR7XJnpiYi8qoIRM3HJvtMo,4533248
|
|
7
|
+
maialib/maiacore/Release/maiacore.pyi,sha256=ly8NgV77vkWY7stAXiJv9HydFIjHXAxgBZCyGnnIqFg,48911
|
|
8
8
|
maialib/maiapy/__init__.py,sha256=Kd9D0GBofeJYa6ampk8C47otrr20uwoTYlJlPyMu6fU,80
|
|
9
9
|
maialib/maiapy/__init__.pyi,sha256=Kd9D0GBofeJYa6ampk8C47otrr20uwoTYlJlPyMu6fU,80
|
|
10
|
-
maialib/maiapy/other.py,sha256=
|
|
10
|
+
maialib/maiapy/other.py,sha256=Gcxbxp5zWsbYWi8Zd9ikBJPDOAVqm53tj5_KdzAURh4,4484
|
|
11
11
|
maialib/maiapy/other.pyi,sha256=kjn7QULRPrLmGCwj0SJzcuJ544Yo4vpduumq3v9CUzg,2242
|
|
12
12
|
maialib/maiapy/plots.py,sha256=_RYvckdfalkbXf-SlozSELWVB1ATyTCGIKBuVs1DrC4,23809
|
|
13
13
|
maialib/maiapy/plots.pyi,sha256=FCiM2grDLYPqFkyHPG3x0-Y1NbD8L6UfAMWXFMLv5K0,3723
|
|
@@ -20,8 +20,8 @@ maialib/xml-scores-examples/Dvorak_Symphony_9_mov_4.mxl,sha256=s7FGUEmFmgcIdmkZ-
|
|
|
20
20
|
maialib/xml-scores-examples/Mahler_Symphony_8_Finale.mxl,sha256=F2-QBKNYjBv_sWT-z4LWi1rX84-P3msxtl-g6joA2FQ,229034
|
|
21
21
|
maialib/xml-scores-examples/Mozart_Requiem_Introitus.mxl,sha256=_wc4hMaPhtgocUoL94uVzfVN3TGb08z8Xa2BL4SHfgA,91112
|
|
22
22
|
maialib/xml-scores-examples/Strauss_Also_Sprach_Zarathustra.mxl,sha256=nOQra05RHHDe_dXFs5WBJG2l9R1KQk64urV7lWYC2vw,18863
|
|
23
|
-
maialib-1.7.
|
|
24
|
-
maialib-1.7.
|
|
25
|
-
maialib-1.7.
|
|
26
|
-
maialib-1.7.
|
|
27
|
-
maialib-1.7.
|
|
23
|
+
maialib-1.7.2.dist-info/LICENSE.txt,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
|
|
24
|
+
maialib-1.7.2.dist-info/METADATA,sha256=hNTH5IAR6-qtqmrYSdF_M4rJHJqJAZ8DcBEcvHQvf_g,7115
|
|
25
|
+
maialib-1.7.2.dist-info/WHEEL,sha256=rTcqimtzpX3smAWAhGmiRSWAxTY4PqYPNE-p4kscHDQ,99
|
|
26
|
+
maialib-1.7.2.dist-info/top_level.txt,sha256=sZWQaa-Up2ba00WpAxBhOLKM6qQYTpUKJMXgSE0Nc48,17
|
|
27
|
+
maialib-1.7.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|