maialib 1.5.0__cp311-cp311-musllinux_1_2_x86_64.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.

@@ -0,0 +1,1396 @@
1
+ """
2
+ Key class binding
3
+ """
4
+ from __future__ import annotations
5
+ import typing
6
+ __all__ = ['Barline', 'C', 'Chord', 'Clef', 'ClefSign', 'Duration', 'F', 'G', 'HeapData', 'Helper', 'Interval', 'Key', 'Measure', 'Note', 'NoteData', 'NoteDataHeap', 'P', 'Part', 'Score', 'ScoreCollection']
7
+ class Barline:
8
+ def __hash__(self) -> int:
9
+ ...
10
+ def __init__(self) -> None:
11
+ ...
12
+ def __repr__(self) -> str:
13
+ ...
14
+ def clean(self) -> None:
15
+ ...
16
+ def getBarStyle(self) -> str:
17
+ ...
18
+ def getDirection(self) -> str:
19
+ ...
20
+ def getLocation(self) -> str:
21
+ ...
22
+ def setBarStyle(self, barStyle: str) -> None:
23
+ ...
24
+ def setDirection(self, direction: str) -> None:
25
+ ...
26
+ def setLocation(self, location: str) -> None:
27
+ ...
28
+ def setRepeatEnd(self) -> None:
29
+ ...
30
+ def setRepeatStart(self) -> None:
31
+ ...
32
+ def toXML(self, identSize: int = 2) -> str:
33
+ ...
34
+ class Chord:
35
+ def __add__(self, arg0: Chord) -> Chord:
36
+ ...
37
+ def __eq__(self, arg0: Chord) -> bool:
38
+ ...
39
+ def __getitem__(self, arg0: int) -> Note:
40
+ ...
41
+ def __hash__(self) -> int:
42
+ ...
43
+ @typing.overload
44
+ def __init__(self) -> None:
45
+ ...
46
+ @typing.overload
47
+ def __init__(self, notes: list[Note]) -> None:
48
+ ...
49
+ @typing.overload
50
+ def __init__(self, pitches: list[str]) -> None:
51
+ ...
52
+ def __ne__(self, arg0: Chord) -> bool:
53
+ ...
54
+ def __repr__(self) -> str:
55
+ ...
56
+ def __setitem__(self, arg0: int) -> Note:
57
+ ...
58
+ @typing.overload
59
+ def addNote(self, note: Note) -> None:
60
+ ...
61
+ @typing.overload
62
+ def addNote(self, pitch: str) -> None:
63
+ ...
64
+ def clear(self) -> None:
65
+ ...
66
+ def getBassNote(self) -> Note:
67
+ ...
68
+ def getCloseChord(self, enharmonyNotes: bool = False) -> Chord:
69
+ ...
70
+ def getCloseStackChord(self, enharmonyNotes: bool = False) -> Chord:
71
+ ...
72
+ def getCloseStackHarmonicComplexity(self, useEnharmony: bool = False) -> float:
73
+ ...
74
+ def getCloseStackIntervals(self, firstNoteAsReference: bool = False) -> list[Interval]:
75
+ ...
76
+ def getDegree(self, key: Key, enharmonyNotes: bool = False) -> int:
77
+ ...
78
+ def getDuration(self) -> str:
79
+ ...
80
+ def getDurationTicks(self) -> int:
81
+ ...
82
+ def getFrequencyStd(self) -> float:
83
+ ...
84
+ @typing.overload
85
+ def getHarmonicDensity(self, lowerBoundMIDI: int = -1, higherBoundMIDI: int = -1) -> float:
86
+ ...
87
+ @typing.overload
88
+ def getHarmonicDensity(self, lowerBoundPitch: str = '', higherBoundPitch: str = '') -> float:
89
+ ...
90
+ def getHarmonicSpectrum(self, numPartialsPerNote: int = 6, amplCallback: typing.Callable[[list[float]], list[float]] = None) -> tuple[list[float], list[float]]:
91
+ ...
92
+ def getIntervals(self, firstNoteAsReference: bool = False) -> list[Interval]:
93
+ ...
94
+ def getIntervalsFromOriginalSortedNotes(self) -> list[Interval]:
95
+ ...
96
+ def getMIDIIntervals(self, firstNoteAsReference: bool = False) -> list[int]:
97
+ ...
98
+ def getMeanFrequency(self) -> float:
99
+ ...
100
+ def getMeanMidiValue(self) -> int:
101
+ ...
102
+ def getMeanOfExtremesFrequency(self) -> float:
103
+ ...
104
+ def getMeanOfExtremesMidiValue(self) -> int:
105
+ ...
106
+ def getMeanOfExtremesPitch(self, accType: str = '') -> str:
107
+ ...
108
+ def getMeanPitch(self, accType: str = '') -> str:
109
+ ...
110
+ def getMidiValueStd(self) -> float:
111
+ ...
112
+ def getName(self) -> str:
113
+ ...
114
+ @typing.overload
115
+ def getNote(self, noteIndex: int) -> Note:
116
+ ...
117
+ @typing.overload
118
+ def getNote(self, noteIndex: int) -> Note:
119
+ ...
120
+ def getNotes(self) -> list[Note]:
121
+ ...
122
+ def getOpenStackChord(self, enharmonyNotes: bool = False) -> Chord:
123
+ ...
124
+ def getOpenStackIntervals(self, firstNoteAsReference: bool = False) -> list[Interval]:
125
+ ...
126
+ def getOpenStackNotes(self) -> list[Note]:
127
+ ...
128
+ def getQuality(self) -> str:
129
+ ...
130
+ def getQuarterDuration(self) -> float:
131
+ ...
132
+ def getRomanDegree(self, key: Key, enharmonyNotes: bool = False) -> str:
133
+ ...
134
+ def getRoot(self) -> Note:
135
+ ...
136
+ def getSetharesDissonance(self, numPartialsPerNote: int = 6, useMinModel: bool = True, amplCallback: typing.Callable[[list[float]], list[float]] = None, dissCallback: typing.Callable[[list[float]], float] = None) -> float:
137
+ ...
138
+ def getSetharesDyadsDataFrame(self, numPartialsPerNote: int = 6, useMinModel: bool = True, amplCallback: typing.Callable[[list[float]], list[float]] = None) -> typing.Any:
139
+ ...
140
+ def getStackDataFrame(self, enharmonyNotes: bool = False) -> typing.Any:
141
+ ...
142
+ def haveAnyOctaveAugmentedFifth(self, useEnharmony: bool = False) -> bool:
143
+ ...
144
+ def haveAnyOctaveAugmentedFourth(self, useEnharmony: bool = False) -> bool:
145
+ ...
146
+ def haveAnyOctaveAugmentedOctave(self, useEnharmony: bool = False) -> bool:
147
+ ...
148
+ def haveAnyOctaveDiminhavehedFifth(self, useEnharmony: bool = False) -> bool:
149
+ ...
150
+ def haveAnyOctaveDiminhavehedOctave(self, useEnharmony: bool = False) -> bool:
151
+ ...
152
+ def haveAnyOctaveDiminhavehedSeventh(self, useEnharmony: bool = False) -> bool:
153
+ ...
154
+ def haveAnyOctaveFifth(self) -> bool:
155
+ ...
156
+ def haveAnyOctaveFourth(self) -> bool:
157
+ ...
158
+ def haveAnyOctaveMajorSecond(self, useEnharmony: bool = False) -> bool:
159
+ ...
160
+ def haveAnyOctaveMajorSeventh(self, useEnharmony: bool = False) -> bool:
161
+ ...
162
+ def haveAnyOctaveMajorSixth(self, useEnharmony: bool = False) -> bool:
163
+ ...
164
+ def haveAnyOctaveMajorThird(self, useEnharmony: bool = False) -> bool:
165
+ ...
166
+ def haveAnyOctaveMinorSecond(self, useEnharmony: bool = False) -> bool:
167
+ ...
168
+ def haveAnyOctaveMinorSeventh(self, useEnharmony: bool = False) -> bool:
169
+ ...
170
+ def haveAnyOctaveMinorSixth(self, useEnharmony: bool = False) -> bool:
171
+ ...
172
+ def haveAnyOctaveMinorThird(self, useEnharmony: bool = False) -> bool:
173
+ ...
174
+ def haveAnyOctaveOctave(self) -> bool:
175
+ ...
176
+ def haveAnyOctavePerfectFifth(self, useEnharmony: bool = False) -> bool:
177
+ ...
178
+ def haveAnyOctavePerfectFourth(self, useEnharmony: bool = False) -> bool:
179
+ ...
180
+ def haveAnyOctavePerfectOctave(self, useEnharmony: bool = False) -> bool:
181
+ ...
182
+ def haveAnyOctaveSecond(self) -> bool:
183
+ ...
184
+ def haveAnyOctaveSeventh(self) -> bool:
185
+ ...
186
+ def haveAnyOctaveSixth(self) -> bool:
187
+ ...
188
+ def haveAnyOctaveThird(self) -> bool:
189
+ ...
190
+ def haveAugmentedFifth(self, useEnharmony: bool = False) -> bool:
191
+ ...
192
+ def haveAugmentedFourth(self, useEnharmony: bool = False) -> bool:
193
+ ...
194
+ def haveAugmentedInterval(self, useEnharmony: bool = False) -> bool:
195
+ ...
196
+ def haveAugmentedOctave(self, useEnharmony: bool = False) -> bool:
197
+ ...
198
+ def haveAugmentedUnisson(self, useEnharmony: bool = False) -> bool:
199
+ ...
200
+ def haveDiminishedFifth(self, useEnharmony: bool = False) -> bool:
201
+ ...
202
+ def haveDiminishedInterval(self, useEnharmony: bool = False) -> bool:
203
+ ...
204
+ def haveDiminishedOctave(self, useEnharmony: bool = False) -> bool:
205
+ ...
206
+ def haveDiminishedSeventh(self, useEnharmony: bool = False) -> bool:
207
+ ...
208
+ def haveDiminishedUnisson(self, useEnharmony: bool = False) -> bool:
209
+ ...
210
+ def haveEleventh(self, useEnharmony: bool = False) -> bool:
211
+ ...
212
+ def haveFifth(self, useEnharmony: bool = False) -> bool:
213
+ ...
214
+ def haveFourth(self, useEnharmony: bool = False) -> bool:
215
+ ...
216
+ def haveMajorInterval(self, useEnharmony: bool = False) -> bool:
217
+ ...
218
+ def haveMajorNinth(self, useEnharmony: bool = False) -> bool:
219
+ ...
220
+ def haveMajorSecond(self, useEnharmony: bool = False) -> bool:
221
+ ...
222
+ def haveMajorSeventh(self, useEnharmony: bool = False) -> bool:
223
+ ...
224
+ def haveMajorSixth(self, useEnharmony: bool = False) -> bool:
225
+ ...
226
+ def haveMajorThird(self, useEnharmony: bool = False) -> bool:
227
+ ...
228
+ def haveMajorThirdteenth(self, useEnharmony: bool = False) -> bool:
229
+ ...
230
+ def haveMinorInterval(self, useEnharmony: bool = False) -> bool:
231
+ ...
232
+ def haveMinorNinth(self, useEnharmony: bool = False) -> bool:
233
+ ...
234
+ def haveMinorSecond(self, useEnharmony: bool = False) -> bool:
235
+ ...
236
+ def haveMinorSeventh(self, useEnharmony: bool = False) -> bool:
237
+ ...
238
+ def haveMinorSixth(self, useEnharmony: bool = False) -> bool:
239
+ ...
240
+ def haveMinorThird(self, useEnharmony: bool = False) -> bool:
241
+ ...
242
+ def haveMinorThirdteenth(self, useEnharmony: bool = False) -> bool:
243
+ ...
244
+ def haveNinth(self, useEnharmony: bool = False) -> bool:
245
+ ...
246
+ def haveOctave(self, useEnharmony: bool = False) -> bool:
247
+ ...
248
+ def havePerfectEleventh(self, useEnharmony: bool = False) -> bool:
249
+ ...
250
+ def havePerfectFifth(self, useEnharmony: bool = False) -> bool:
251
+ ...
252
+ def havePerfectFourth(self, useEnharmony: bool = False) -> bool:
253
+ ...
254
+ def havePerfectInterval(self, useEnharmony: bool = False) -> bool:
255
+ ...
256
+ def havePerfectOctave(self, useEnharmony: bool = False) -> bool:
257
+ ...
258
+ def havePerfectUnisson(self, useEnharmony: bool = False) -> bool:
259
+ ...
260
+ def haveSecond(self, useEnharmony: bool = False) -> bool:
261
+ ...
262
+ def haveSeventh(self, useEnharmony: bool = False) -> bool:
263
+ ...
264
+ def haveSharpEleventh(self, useEnharmony: bool = False) -> bool:
265
+ ...
266
+ def haveSixth(self, useEnharmony: bool = False) -> bool:
267
+ ...
268
+ def haveThird(self, useEnharmony: bool = False) -> bool:
269
+ ...
270
+ def haveThirdteenth(self, useEnharmony: bool = False) -> bool:
271
+ ...
272
+ def info(self) -> None:
273
+ ...
274
+ def insertNote(self, insertNote: Note, positionNote: int = 0) -> None:
275
+ ...
276
+ def inversion(self, inversionNumber: int) -> None:
277
+ ...
278
+ def isAugmentedChord(self) -> bool:
279
+ ...
280
+ def isDiminishedChord(self) -> bool:
281
+ ...
282
+ def isDominantSeventhChord(self) -> bool:
283
+ ...
284
+ def isHalfDiminishedChord(self) -> bool:
285
+ ...
286
+ def isInRootPosition(self) -> bool:
287
+ ...
288
+ def isMajorChord(self) -> bool:
289
+ ...
290
+ def isMinorChord(self) -> bool:
291
+ ...
292
+ def isSorted(self) -> bool:
293
+ ...
294
+ def isTonal(self, model: typing.Callable[[Chord], bool] = None) -> bool:
295
+ ...
296
+ def print(self) -> None:
297
+ ...
298
+ def printStack(self) -> None:
299
+ ...
300
+ def removeDuplicateNotes(self) -> None:
301
+ ...
302
+ def removeNote(self, noteIndex: int) -> None:
303
+ ...
304
+ def removeTopNote(self) -> None:
305
+ ...
306
+ def setDurationTicks(self, durationTicks: int) -> None:
307
+ ...
308
+ def size(self) -> int:
309
+ ...
310
+ def sortNotes(self) -> None:
311
+ ...
312
+ def stackSize(self) -> int:
313
+ ...
314
+ def toCents(self) -> list[int]:
315
+ ...
316
+ def transpose(self, semiTonesNumber: int) -> None:
317
+ ...
318
+ def transposeStackOnly(self, semiTonesNumber: int) -> None:
319
+ ...
320
+ class Clef:
321
+ def __hash__(self) -> int:
322
+ ...
323
+ def __init__(self, sign: ClefSign = ..., line: int = -1) -> None:
324
+ ...
325
+ def __repr__(self) -> str:
326
+ ...
327
+ def getLine(self) -> int:
328
+ ...
329
+ def getSign(self) -> ClefSign:
330
+ ...
331
+ def setLine(self, line: int) -> None:
332
+ ...
333
+ def setSign(self, sign: ClefSign) -> None:
334
+ ...
335
+ def toXML(self, clefNumber: int = -1, identSize: int = 2) -> str:
336
+ ...
337
+ class ClefSign:
338
+ """
339
+ Members:
340
+
341
+ G
342
+
343
+ F
344
+
345
+ C
346
+
347
+ P
348
+ """
349
+ C: typing.ClassVar[ClefSign] # value = <ClefSign.C: 2>
350
+ F: typing.ClassVar[ClefSign] # value = <ClefSign.F: 1>
351
+ G: typing.ClassVar[ClefSign] # value = <ClefSign.G: 0>
352
+ P: typing.ClassVar[ClefSign] # value = <ClefSign.P: 3>
353
+ __members__: typing.ClassVar[dict[str, ClefSign]] # value = {'G': <ClefSign.G: 0>, 'F': <ClefSign.F: 1>, 'C': <ClefSign.C: 2>, 'P': <ClefSign.P: 3>}
354
+ def __eq__(self, other: typing.Any) -> bool:
355
+ ...
356
+ def __getstate__(self) -> int:
357
+ ...
358
+ def __hash__(self) -> int:
359
+ ...
360
+ def __index__(self) -> int:
361
+ ...
362
+ def __init__(self, value: int) -> None:
363
+ ...
364
+ def __int__(self) -> int:
365
+ ...
366
+ def __ne__(self, other: typing.Any) -> bool:
367
+ ...
368
+ def __repr__(self) -> str:
369
+ ...
370
+ def __setstate__(self, state: int) -> None:
371
+ ...
372
+ def __str__(self) -> str:
373
+ ...
374
+ @property
375
+ def name(self) -> str:
376
+ ...
377
+ @property
378
+ def value(self) -> int:
379
+ ...
380
+ class Duration:
381
+ """
382
+ Members:
383
+
384
+ MAXIMA_DOT_DOT
385
+
386
+ MAXIMA_DOT
387
+
388
+ MAXIMA
389
+
390
+ LONG_DOT_DOT
391
+
392
+ LONG_DOT
393
+
394
+ LONG
395
+
396
+ BREVE_DOT_DOT
397
+
398
+ BREVE_DOT
399
+
400
+ BREVE
401
+
402
+ WHOLE_DOT_DOT
403
+
404
+ WHOLE_DOT
405
+
406
+ WHOLE
407
+
408
+ HALF_DOT_DOT
409
+
410
+ HALF_DOT
411
+
412
+ HALF
413
+
414
+ QUARTER_DOT_DOT
415
+
416
+ QUARTER_DOT
417
+
418
+ QUARTER
419
+
420
+ EIGHTH_DOT_DOT
421
+
422
+ EIGHTH_DOT
423
+
424
+ EIGHTH
425
+
426
+ N16TH_DOT_DOT
427
+
428
+ N16TH_DOT
429
+
430
+ N16TH
431
+
432
+ N32ND_DOT_DOT
433
+
434
+ N32ND_DOT
435
+
436
+ N32ND
437
+
438
+ N64TH_DOT_DOT
439
+
440
+ N64TH_DOT
441
+
442
+ N64TH
443
+
444
+ N128TH_DOT_DOT
445
+
446
+ N128TH_DOT
447
+
448
+ N128TH
449
+
450
+ N256TH_DOT_DOT
451
+
452
+ N256TH_DOT
453
+
454
+ N256TH
455
+
456
+ N512TH_DOT_DOT
457
+
458
+ N512TH_DOT
459
+
460
+ N512TH
461
+
462
+ N1024TH_DOT_DOT
463
+
464
+ N1024TH_DOT
465
+
466
+ N1024TH
467
+ """
468
+ BREVE: typing.ClassVar[Duration] # value = <Duration.BREVE: 34>
469
+ BREVE_DOT: typing.ClassVar[Duration] # value = <Duration.BREVE_DOT: 35>
470
+ BREVE_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.BREVE_DOT_DOT: 36>
471
+ EIGHTH: typing.ClassVar[Duration] # value = <Duration.EIGHTH: 22>
472
+ EIGHTH_DOT: typing.ClassVar[Duration] # value = <Duration.EIGHTH_DOT: 23>
473
+ EIGHTH_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.EIGHTH_DOT_DOT: 24>
474
+ HALF: typing.ClassVar[Duration] # value = <Duration.HALF: 28>
475
+ HALF_DOT: typing.ClassVar[Duration] # value = <Duration.HALF_DOT: 29>
476
+ HALF_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.HALF_DOT_DOT: 30>
477
+ LONG: typing.ClassVar[Duration] # value = <Duration.LONG: 37>
478
+ LONG_DOT: typing.ClassVar[Duration] # value = <Duration.LONG_DOT: 38>
479
+ LONG_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.LONG_DOT_DOT: 39>
480
+ MAXIMA: typing.ClassVar[Duration] # value = <Duration.MAXIMA: 40>
481
+ MAXIMA_DOT: typing.ClassVar[Duration] # value = <Duration.MAXIMA_DOT: 41>
482
+ MAXIMA_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.MAXIMA_DOT_DOT: 42>
483
+ N1024TH: typing.ClassVar[Duration] # value = <Duration.N1024TH: 1>
484
+ N1024TH_DOT: typing.ClassVar[Duration] # value = <Duration.N1024TH_DOT: 2>
485
+ N1024TH_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.N1024TH_DOT_DOT: 3>
486
+ N128TH: typing.ClassVar[Duration] # value = <Duration.N128TH: 10>
487
+ N128TH_DOT: typing.ClassVar[Duration] # value = <Duration.N128TH_DOT: 11>
488
+ N128TH_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.N128TH_DOT_DOT: 12>
489
+ N16TH: typing.ClassVar[Duration] # value = <Duration.N16TH: 19>
490
+ N16TH_DOT: typing.ClassVar[Duration] # value = <Duration.N16TH_DOT: 20>
491
+ N16TH_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.N16TH_DOT_DOT: 21>
492
+ N256TH: typing.ClassVar[Duration] # value = <Duration.N256TH: 7>
493
+ N256TH_DOT: typing.ClassVar[Duration] # value = <Duration.N256TH_DOT: 8>
494
+ N256TH_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.N256TH_DOT_DOT: 9>
495
+ N32ND: typing.ClassVar[Duration] # value = <Duration.N32ND: 16>
496
+ N32ND_DOT: typing.ClassVar[Duration] # value = <Duration.N32ND_DOT: 17>
497
+ N32ND_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.N32ND_DOT_DOT: 18>
498
+ N512TH: typing.ClassVar[Duration] # value = <Duration.N512TH: 4>
499
+ N512TH_DOT: typing.ClassVar[Duration] # value = <Duration.N512TH_DOT: 5>
500
+ N512TH_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.N512TH_DOT_DOT: 6>
501
+ N64TH: typing.ClassVar[Duration] # value = <Duration.N64TH: 13>
502
+ N64TH_DOT: typing.ClassVar[Duration] # value = <Duration.N64TH_DOT: 14>
503
+ N64TH_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.N64TH_DOT_DOT: 15>
504
+ QUARTER: typing.ClassVar[Duration] # value = <Duration.QUARTER: 25>
505
+ QUARTER_DOT: typing.ClassVar[Duration] # value = <Duration.QUARTER_DOT: 26>
506
+ QUARTER_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.QUARTER_DOT_DOT: 27>
507
+ WHOLE: typing.ClassVar[Duration] # value = <Duration.WHOLE: 31>
508
+ WHOLE_DOT: typing.ClassVar[Duration] # value = <Duration.WHOLE_DOT: 32>
509
+ WHOLE_DOT_DOT: typing.ClassVar[Duration] # value = <Duration.WHOLE_DOT_DOT: 33>
510
+ __members__: typing.ClassVar[dict[str, Duration]] # value = {'MAXIMA_DOT_DOT': <Duration.MAXIMA_DOT_DOT: 42>, 'MAXIMA_DOT': <Duration.MAXIMA_DOT: 41>, 'MAXIMA': <Duration.MAXIMA: 40>, 'LONG_DOT_DOT': <Duration.LONG_DOT_DOT: 39>, 'LONG_DOT': <Duration.LONG_DOT: 38>, 'LONG': <Duration.LONG: 37>, 'BREVE_DOT_DOT': <Duration.BREVE_DOT_DOT: 36>, 'BREVE_DOT': <Duration.BREVE_DOT: 35>, 'BREVE': <Duration.BREVE: 34>, 'WHOLE_DOT_DOT': <Duration.WHOLE_DOT_DOT: 33>, 'WHOLE_DOT': <Duration.WHOLE_DOT: 32>, 'WHOLE': <Duration.WHOLE: 31>, 'HALF_DOT_DOT': <Duration.HALF_DOT_DOT: 30>, 'HALF_DOT': <Duration.HALF_DOT: 29>, 'HALF': <Duration.HALF: 28>, 'QUARTER_DOT_DOT': <Duration.QUARTER_DOT_DOT: 27>, 'QUARTER_DOT': <Duration.QUARTER_DOT: 26>, 'QUARTER': <Duration.QUARTER: 25>, 'EIGHTH_DOT_DOT': <Duration.EIGHTH_DOT_DOT: 24>, 'EIGHTH_DOT': <Duration.EIGHTH_DOT: 23>, 'EIGHTH': <Duration.EIGHTH: 22>, 'N16TH_DOT_DOT': <Duration.N16TH_DOT_DOT: 21>, 'N16TH_DOT': <Duration.N16TH_DOT: 20>, 'N16TH': <Duration.N16TH: 19>, 'N32ND_DOT_DOT': <Duration.N32ND_DOT_DOT: 18>, 'N32ND_DOT': <Duration.N32ND_DOT: 17>, 'N32ND': <Duration.N32ND: 16>, 'N64TH_DOT_DOT': <Duration.N64TH_DOT_DOT: 15>, 'N64TH_DOT': <Duration.N64TH_DOT: 14>, 'N64TH': <Duration.N64TH: 13>, 'N128TH_DOT_DOT': <Duration.N128TH_DOT_DOT: 12>, 'N128TH_DOT': <Duration.N128TH_DOT: 11>, 'N128TH': <Duration.N128TH: 10>, 'N256TH_DOT_DOT': <Duration.N256TH_DOT_DOT: 9>, 'N256TH_DOT': <Duration.N256TH_DOT: 8>, 'N256TH': <Duration.N256TH: 7>, 'N512TH_DOT_DOT': <Duration.N512TH_DOT_DOT: 6>, 'N512TH_DOT': <Duration.N512TH_DOT: 5>, 'N512TH': <Duration.N512TH: 4>, 'N1024TH_DOT_DOT': <Duration.N1024TH_DOT_DOT: 3>, 'N1024TH_DOT': <Duration.N1024TH_DOT: 2>, 'N1024TH': <Duration.N1024TH: 1>}
511
+ def __eq__(self, other: typing.Any) -> bool:
512
+ ...
513
+ def __getstate__(self) -> int:
514
+ ...
515
+ def __hash__(self) -> int:
516
+ ...
517
+ def __index__(self) -> int:
518
+ ...
519
+ def __init__(self, value: int) -> None:
520
+ ...
521
+ def __int__(self) -> int:
522
+ ...
523
+ def __ne__(self, other: typing.Any) -> bool:
524
+ ...
525
+ def __repr__(self) -> str:
526
+ ...
527
+ def __setstate__(self, state: int) -> None:
528
+ ...
529
+ def __str__(self) -> str:
530
+ ...
531
+ @property
532
+ def name(self) -> str:
533
+ ...
534
+ @property
535
+ def value(self) -> int:
536
+ ...
537
+ class HeapData:
538
+ pass
539
+ class Helper:
540
+ @staticmethod
541
+ def duration2Ticks(duration: Duration, divisionsPerQuarterNote: int = 265) -> int:
542
+ ...
543
+ @staticmethod
544
+ def duration2noteType(duration: Duration) -> str:
545
+ ...
546
+ @staticmethod
547
+ def durationRatio(duration_A: float, duration_B: float) -> float:
548
+ ...
549
+ @staticmethod
550
+ def freq2equalTemperament(freq: float, referenceFreq: float = 440.0) -> float:
551
+ ...
552
+ @staticmethod
553
+ def freq2midiNote(freq: float, modelo: typing.Callable[[float], int] = None) -> tuple[int, int]:
554
+ ...
555
+ @staticmethod
556
+ def freq2pitch(freq: float, accType: str = '#') -> tuple[str, int]:
557
+ ...
558
+ @staticmethod
559
+ def frequencies2cents(freq_A: float, freq_B: float) -> int:
560
+ ...
561
+ @staticmethod
562
+ def getPercentiles(arg0: typing.Any, arg1: list[float]) -> typing.Any:
563
+ ...
564
+ @staticmethod
565
+ def isEnharmonic(arg0: str, arg1: str) -> bool:
566
+ ...
567
+ @staticmethod
568
+ def midiNote2freq(midiNoteValue: int, freqA4: float = 440.0) -> float:
569
+ ...
570
+ @staticmethod
571
+ def midiNote2octave(midiNote: int) -> int:
572
+ ...
573
+ @staticmethod
574
+ def midiNote2pitch(midiNote: int, accType: str = '') -> str:
575
+ ...
576
+ @staticmethod
577
+ def midiNote2pitches(midiNote: int) -> list[str]:
578
+ ...
579
+ @staticmethod
580
+ def noteSimilarity(pitchClass_A: str, octave_A: int, duration_A: float, pitchClass_B: str, octave_B: int, duration_B: float, enableEnharmonic: bool = False) -> tuple[float, float, float]:
581
+ ...
582
+ @staticmethod
583
+ def noteType2duration(noteType: str) -> Duration:
584
+ ...
585
+ @staticmethod
586
+ def noteType2ticks(noteType: str, divisionsPerQuarterNote: int = 256) -> int:
587
+ ...
588
+ @staticmethod
589
+ def notes2Intervals(notes: list[Note], firstNoteAsReference: bool = False) -> list[Interval]:
590
+ ...
591
+ @staticmethod
592
+ def number2pitch(number: float, accType: str = '#') -> str:
593
+ ...
594
+ @staticmethod
595
+ def pitch2freq(pitch: str) -> float:
596
+ ...
597
+ @staticmethod
598
+ def pitch2midiNote(pitch: str) -> int:
599
+ ...
600
+ @staticmethod
601
+ @typing.overload
602
+ def pitch2number(pitch: str) -> float:
603
+ ...
604
+ @staticmethod
605
+ @typing.overload
606
+ def pitch2number(pitch: str) -> float:
607
+ ...
608
+ @staticmethod
609
+ def pitchRatio(pitch_A: str, pitch_B: str) -> float:
610
+ ...
611
+ @staticmethod
612
+ def ticks2noteType(ticks: int, divisionsPerQuarterNote: int = 256) -> tuple[str, int]:
613
+ ...
614
+ @staticmethod
615
+ def transposePitch(pitch: str, semitones: int, accType: str = '#') -> str:
616
+ ...
617
+ class Interval:
618
+ def __hash__(self) -> int:
619
+ ...
620
+ @typing.overload
621
+ def __init__(self, pitch_A: str = 'C4', pitch_B: str = 'C4') -> None:
622
+ ...
623
+ @typing.overload
624
+ def __init__(self, note_A: Note, note_B: Note) -> None:
625
+ ...
626
+ def __lt__(self, arg0: Interval) -> bool:
627
+ ...
628
+ def __repr__(self) -> str:
629
+ ...
630
+ def getDiatonicInterval(self, useSingleOctave: bool = True, absoluteValue: bool = False) -> int:
631
+ ...
632
+ def getDiatonicSteps(self, useSingleOctave: bool = True, absoluteValue: bool = False) -> int:
633
+ ...
634
+ def getName(self) -> str:
635
+ ...
636
+ def getNotes(self) -> list[Note]:
637
+ ...
638
+ def getNumOctaves(self, absoluteValue: bool = False) -> int:
639
+ ...
640
+ def getNumSemitones(self, absoluteValue: bool = False) -> int:
641
+ ...
642
+ def getPitchStepInterval(self) -> int:
643
+ ...
644
+ def isAnyOctaveAugmentedFifth(self, useEnharmony: bool = False) -> bool:
645
+ ...
646
+ def isAnyOctaveAugmentedFourth(self, useEnharmony: bool = False) -> bool:
647
+ ...
648
+ def isAnyOctaveAugmentedOctave(self, useEnharmony: bool = False) -> bool:
649
+ ...
650
+ def isAnyOctaveDiminishedFifth(self, useEnharmony: bool = False) -> bool:
651
+ ...
652
+ def isAnyOctaveDiminishedOctave(self, useEnharmony: bool = False) -> bool:
653
+ ...
654
+ def isAnyOctaveDiminishedSeventh(self, useEnharmony: bool = False) -> bool:
655
+ ...
656
+ def isAnyOctaveFifth(self) -> bool:
657
+ ...
658
+ def isAnyOctaveFourth(self) -> bool:
659
+ ...
660
+ def isAnyOctaveMajorSecond(self, useEnharmony: bool = False) -> bool:
661
+ ...
662
+ def isAnyOctaveMajorSeventh(self, useEnharmony: bool = False) -> bool:
663
+ ...
664
+ def isAnyOctaveMajorSixth(self, useEnharmony: bool = False) -> bool:
665
+ ...
666
+ def isAnyOctaveMajorThird(self, useEnharmony: bool = False) -> bool:
667
+ ...
668
+ def isAnyOctaveMinorSecond(self, useEnharmony: bool = False) -> bool:
669
+ ...
670
+ def isAnyOctaveMinorSeventh(self, useEnharmony: bool = False) -> bool:
671
+ ...
672
+ def isAnyOctaveMinorSixth(self, useEnharmony: bool = False) -> bool:
673
+ ...
674
+ def isAnyOctaveMinorThird(self, useEnharmony: bool = False) -> bool:
675
+ ...
676
+ def isAnyOctaveOctave(self) -> bool:
677
+ ...
678
+ def isAnyOctavePerfectFifth(self, useEnharmony: bool = False) -> bool:
679
+ ...
680
+ def isAnyOctavePerfectFourth(self, useEnharmony: bool = False) -> bool:
681
+ ...
682
+ def isAnyOctavePerfectOctave(self, useEnharmony: bool = False) -> bool:
683
+ ...
684
+ def isAnyOctaveSecond(self) -> bool:
685
+ ...
686
+ def isAnyOctaveSeventh(self) -> bool:
687
+ ...
688
+ def isAnyOctaveSixth(self) -> bool:
689
+ ...
690
+ def isAnyOctaveThird(self) -> bool:
691
+ ...
692
+ def isAscendant(self) -> bool:
693
+ ...
694
+ def isAugmented(self, useEnharmony: bool = False) -> bool:
695
+ ...
696
+ def isAugmentedFifth(self, useEnharmony: bool = False) -> bool:
697
+ ...
698
+ def isAugmentedFourth(self, useEnharmony: bool = False) -> bool:
699
+ ...
700
+ def isAugmentedOctave(self, useEnharmony: bool = False) -> bool:
701
+ ...
702
+ def isAugmentedUnisson(self, useEnharmony: bool = False) -> bool:
703
+ ...
704
+ def isCompound(self) -> bool:
705
+ ...
706
+ def isDescendant(self) -> bool:
707
+ ...
708
+ def isDiminished(self, useEnharmony: bool = False) -> bool:
709
+ ...
710
+ def isDiminishedFifth(self, useEnharmony: bool = False) -> bool:
711
+ ...
712
+ def isDiminishedOctave(self, useEnharmony: bool = False) -> bool:
713
+ ...
714
+ def isDiminishedSeventh(self, useEnharmony: bool = False) -> bool:
715
+ ...
716
+ def isDiminishedUnisson(self, useEnharmony: bool = False) -> bool:
717
+ ...
718
+ def isEleventh(self, useEnharmony: bool = False) -> bool:
719
+ ...
720
+ def isFifth(self, useEnharmony: bool = False) -> bool:
721
+ ...
722
+ def isFourth(self, useEnharmony: bool = False) -> bool:
723
+ ...
724
+ def isMajor(self, useEnharmony: bool = False) -> bool:
725
+ ...
726
+ def isMajorNinth(self, useEnharmony: bool = False) -> bool:
727
+ ...
728
+ def isMajorSecond(self, useEnharmony: bool = False) -> bool:
729
+ ...
730
+ def isMajorSeventh(self, useEnharmony: bool = False) -> bool:
731
+ ...
732
+ def isMajorSixth(self, useEnharmony: bool = False) -> bool:
733
+ ...
734
+ def isMajorThird(self, useEnharmony: bool = False) -> bool:
735
+ ...
736
+ def isMajorThirdteenth(self, useEnharmony: bool = False) -> bool:
737
+ ...
738
+ def isMinor(self, useEnharmony: bool = False) -> bool:
739
+ ...
740
+ def isMinorNinth(self, useEnharmony: bool = False) -> bool:
741
+ ...
742
+ def isMinorSecond(self, useEnharmony: bool = False) -> bool:
743
+ ...
744
+ def isMinorSeventh(self, useEnharmony: bool = False) -> bool:
745
+ ...
746
+ def isMinorSixth(self, useEnharmony: bool = False) -> bool:
747
+ ...
748
+ def isMinorThird(self, useEnharmony: bool = False) -> bool:
749
+ ...
750
+ def isMinorThirdteenth(self, useEnharmony: bool = False) -> bool:
751
+ ...
752
+ def isNinth(self, useEnharmony: bool = False) -> bool:
753
+ ...
754
+ def isOctave(self, useEnharmony: bool = False) -> bool:
755
+ ...
756
+ def isPerfect(self, useEnharmony: bool = False) -> bool:
757
+ ...
758
+ def isPerfectEleventh(self, useEnharmony: bool = False) -> bool:
759
+ ...
760
+ def isPerfectFifth(self, useEnharmony: bool = False) -> bool:
761
+ ...
762
+ def isPerfectFourth(self, useEnharmony: bool = False) -> bool:
763
+ ...
764
+ def isPerfectOctave(self, useEnharmony: bool = False) -> bool:
765
+ ...
766
+ def isPerfectUnisson(self, useEnharmony: bool = False) -> bool:
767
+ ...
768
+ def isSecond(self, useEnharmony: bool = False) -> bool:
769
+ ...
770
+ def isSeventh(self, useEnharmony: bool = False) -> bool:
771
+ ...
772
+ def isSharpEleventh(self, useEnharmony: bool = False) -> bool:
773
+ ...
774
+ def isSimple(self) -> bool:
775
+ ...
776
+ def isSixth(self, useEnharmony: bool = False) -> bool:
777
+ ...
778
+ def isThird(self, useEnharmony: bool = False) -> bool:
779
+ ...
780
+ def isThirdteenth(self, useEnharmony: bool = False) -> bool:
781
+ ...
782
+ def isTonal(self) -> bool:
783
+ ...
784
+ @typing.overload
785
+ def setNotes(self, pitch_A: str, pitch_B: str) -> None:
786
+ ...
787
+ @typing.overload
788
+ def setNotes(self, note_A: Note, note_B: Note) -> None:
789
+ ...
790
+ def toCents(self) -> int:
791
+ ...
792
+ class Key:
793
+ def __hash__(self) -> int:
794
+ ...
795
+ @typing.overload
796
+ def __init__(self, fifthCircle: int = 0, isMajorMode: bool = True) -> None:
797
+ ...
798
+ @typing.overload
799
+ def __init__(self, key: str) -> None:
800
+ ...
801
+ def __repr__(self) -> str:
802
+ ...
803
+ def getFifthCircle(self) -> int:
804
+ ...
805
+ def getName(self) -> str:
806
+ ...
807
+ def getRelativeKeyName(self) -> str:
808
+ ...
809
+ def isMajorMode(self) -> int:
810
+ ...
811
+ def setFifthCircle(self, fifthCircle: int) -> None:
812
+ ...
813
+ def setIsMajorMode(self, isMajorMode: bool) -> None:
814
+ ...
815
+ class Measure:
816
+ def __hash__(self) -> int:
817
+ ...
818
+ def __init__(self, numStaves: int = 1, divisionsPerQuarterNote: int = 256) -> None:
819
+ ...
820
+ def __repr__(self) -> str:
821
+ ...
822
+ @typing.overload
823
+ def addNote(self, note: Note, staveId: int = 0, position: int = -1) -> None:
824
+ """
825
+ Add a single Note object
826
+ """
827
+ @typing.overload
828
+ def addNote(self, noteVec: list[Note], staveId: int = 0, position: int = -1) -> None:
829
+ """
830
+ Add a Note object vector
831
+ """
832
+ @typing.overload
833
+ def addNote(self, pitchClass: str, staveId: int = 0, position: int = -1) -> None:
834
+ """
835
+ Create a new Note Obj and add it
836
+ """
837
+ @typing.overload
838
+ def addNote(self, pitchClassVec: list[str], staveId: int = 0, position: int = -1) -> None:
839
+ """
840
+ Create a new Note vector and add it
841
+ """
842
+ def clear(self) -> None:
843
+ ...
844
+ def divisionsPerQuarterNoteChanged(self) -> bool:
845
+ ...
846
+ @typing.overload
847
+ def getBarlineLeft(self) -> Barline:
848
+ ...
849
+ @typing.overload
850
+ def getBarlineLeft(self) -> Barline:
851
+ ...
852
+ @typing.overload
853
+ def getBarlineRight(self) -> Barline:
854
+ ...
855
+ @typing.overload
856
+ def getBarlineRight(self) -> Barline:
857
+ ...
858
+ @typing.overload
859
+ def getClef(self, clefId: int = 0) -> Clef:
860
+ ...
861
+ @typing.overload
862
+ def getClef(self, clefId: int = 0) -> Clef:
863
+ ...
864
+ def getDivisionsPerQuarterNote(self) -> int:
865
+ ...
866
+ def getDurationTicks(self) -> int:
867
+ ...
868
+ def getEmptyDurationTicks(self) -> int:
869
+ ...
870
+ def getFifthCircle(self) -> int:
871
+ ...
872
+ def getFilledDurationTicks(self, staveId: int = 0) -> int:
873
+ ...
874
+ def getFilledQuarterDuration(self, staveId: int = 0) -> float:
875
+ ...
876
+ def getFreeDurationTicks(self, staveId: int = 0) -> int:
877
+ ...
878
+ def getFreeQuarterDuration(self, staveId: int = 0) -> float:
879
+ ...
880
+ def getKey(self) -> Key:
881
+ ...
882
+ def getKeyName(self) -> str:
883
+ ...
884
+ def getKeySignature(self) -> str:
885
+ ...
886
+ @typing.overload
887
+ def getNote(self, noteId: int, staveId: int = 0) -> Note:
888
+ ...
889
+ @typing.overload
890
+ def getNote(self, noteId: int, staveId: int = 0) -> Note:
891
+ ...
892
+ @typing.overload
893
+ def getNoteOff(self, noteOffId: int, staveId: int = 0) -> Note:
894
+ ...
895
+ @typing.overload
896
+ def getNoteOff(self, noteOffId: int, staveId: int = 0) -> Note:
897
+ ...
898
+ @typing.overload
899
+ def getNoteOn(self, noteOnId: int, staveId: int = 0) -> Note:
900
+ ...
901
+ @typing.overload
902
+ def getNoteOn(self, noteOnId: int, staveId: int = 0) -> Note:
903
+ ...
904
+ @typing.overload
905
+ def getNumNotes(self) -> int:
906
+ ...
907
+ @typing.overload
908
+ def getNumNotes(self, staveId: int) -> int:
909
+ ...
910
+ @typing.overload
911
+ def getNumNotesOff(self) -> int:
912
+ ...
913
+ @typing.overload
914
+ def getNumNotesOff(self, staveId: int) -> int:
915
+ ...
916
+ @typing.overload
917
+ def getNumNotesOn(self) -> int:
918
+ ...
919
+ @typing.overload
920
+ def getNumNotesOn(self, staveId: int) -> int:
921
+ ...
922
+ def getNumStaves(self) -> int:
923
+ ...
924
+ def getNumber(self) -> int:
925
+ ...
926
+ def getQuarterDuration(self) -> float:
927
+ ...
928
+ def getTimeMetronome(self) -> tuple[str, int]:
929
+ ...
930
+ def getTimeSignature(self) -> tuple[int, int]:
931
+ ...
932
+ def info(self) -> None:
933
+ ...
934
+ def isClefChanged(self) -> bool:
935
+ ...
936
+ def isEmpty(self) -> bool:
937
+ ...
938
+ def isMajorKeyMode(self) -> bool:
939
+ ...
940
+ def keySignatureChanged(self) -> bool:
941
+ ...
942
+ def metronomeChanged(self) -> bool:
943
+ ...
944
+ def removeNote(self, noteId: int, staveId: int = 0) -> None:
945
+ ...
946
+ def removeRepeatEnd(self) -> None:
947
+ ...
948
+ def removeRepeatStart(self) -> None:
949
+ ...
950
+ def setDivisionsPerQuarterNote(self, arg0: int) -> None:
951
+ ...
952
+ def setIsDivisionsPerQuarterNoteChanged(self, isDivisionsPerQuarterNoteChanged: bool = False) -> None:
953
+ ...
954
+ def setIsKeySignatureChanged(self, isKeySignatureChanged: bool = False) -> None:
955
+ ...
956
+ def setIsMetronomeChanged(self, isMetronomeChanged: bool = False) -> None:
957
+ ...
958
+ def setIsTimeSignatureChanged(self, isTimeSignatureChanged: bool = False) -> None:
959
+ ...
960
+ def setKey(self, fifthCircle: int, isMajorMode: bool = True) -> None:
961
+ ...
962
+ def setKeyMode(self, isMajorMode: bool) -> None:
963
+ ...
964
+ def setKeySignature(self, fifthCircle: int, isMajorMode: bool = True) -> None:
965
+ ...
966
+ def setMetronome(self, bpm: int, duration: Duration = ...) -> None:
967
+ ...
968
+ def setNumStaves(self, numStaves: int) -> None:
969
+ ...
970
+ def setNumber(self, measureNumber: int) -> None:
971
+ ...
972
+ def setRepeatEnd(self) -> None:
973
+ ...
974
+ def setRepeatStart(self) -> None:
975
+ ...
976
+ def setTimeSignature(self, upper: int, lower: int) -> None:
977
+ ...
978
+ def timeSignatureChanged(self) -> bool:
979
+ ...
980
+ def toJSON(self) -> str:
981
+ ...
982
+ def toXML(self, instrumentId: int = 1, identSize: int = 2) -> str:
983
+ ...
984
+ class Note:
985
+ def __eq__(self, arg0: Note) -> bool:
986
+ ...
987
+ def __ge__(self, arg0: Note) -> bool:
988
+ ...
989
+ def __gt__(self, arg0: Note) -> bool:
990
+ ...
991
+ def __hash__(self) -> int:
992
+ ...
993
+ @typing.overload
994
+ def __init__(self, pitch: str, duration: Duration = ..., isNoteOn: bool = True, inChord: bool = False, transposeDiatonic: int = 0, transposeChromatic: int = 0, divisionsPerQuarterNote: int = 256) -> None:
995
+ ...
996
+ @typing.overload
997
+ def __init__(self, midiNumber: int, accType: str = '', duration: Duration = ..., isNoteOn: bool = True, inChord: bool = False, transposeDiatonic: int = 0, transposeChromatic: int = 0, divisionsPerQuarterNote: int = 256) -> None:
998
+ ...
999
+ def __le__(self, arg0: Note) -> bool:
1000
+ ...
1001
+ def __lt__(self, arg0: Note) -> bool:
1002
+ ...
1003
+ def __ne__(self, arg0: Note) -> bool:
1004
+ ...
1005
+ def __repr__(self) -> str:
1006
+ ...
1007
+ def addArticulation(self, articulation: str) -> None:
1008
+ ...
1009
+ def addBeam(self, beam: str) -> None:
1010
+ ...
1011
+ def addSlur(self, slurType: str, slurOrientation: str) -> None:
1012
+ ...
1013
+ def addTie(self, tieType: str) -> None:
1014
+ ...
1015
+ def getAlterSymbol(self) -> str:
1016
+ ...
1017
+ def getArticulation(self) -> list[str]:
1018
+ ...
1019
+ def getBeam(self) -> list[str]:
1020
+ ...
1021
+ def getDiatonicSoundingPitchClass(self) -> str:
1022
+ ...
1023
+ def getDiatonicWrittenPitchClass(self) -> str:
1024
+ ...
1025
+ def getDivisionsPerQuarterNote(self) -> int:
1026
+ ...
1027
+ def getDuration(self) -> float:
1028
+ ...
1029
+ def getDurationTicks(self) -> int:
1030
+ ...
1031
+ def getEnharmonicNote(self, alternativeEnhamonicPitch: bool = False) -> Note:
1032
+ ...
1033
+ def getEnharmonicNotes(self, includeCurrentPitch: bool = False) -> list[Note]:
1034
+ ...
1035
+ def getEnharmonicPitch(self, alternativeEnhamonicPitch: bool = False) -> str:
1036
+ ...
1037
+ def getEnharmonicPitches(self, includeCurrentPitch: bool = False) -> list[str]:
1038
+ ...
1039
+ def getFrequency(self, equalTemperament: bool = True, freqA4: float = 440.0) -> float:
1040
+ ...
1041
+ def getHarmonicSpectrum(self, numPartials: int = 6, amplCallback: typing.Callable[[list[float]], list[float]] = None) -> tuple[list[float], list[float]]:
1042
+ ...
1043
+ def getLongType(self) -> str:
1044
+ ...
1045
+ def getMIDINumber(self) -> int:
1046
+ ...
1047
+ @typing.overload
1048
+ def getNumDots(self) -> int:
1049
+ ...
1050
+ @typing.overload
1051
+ def getNumDots(self) -> int:
1052
+ ...
1053
+ def getOctave(self) -> int:
1054
+ ...
1055
+ def getPitch(self) -> str:
1056
+ ...
1057
+ def getPitchClass(self) -> str:
1058
+ ...
1059
+ def getPitchStep(self) -> str:
1060
+ ...
1061
+ def getQuarterDuration(self) -> float:
1062
+ ...
1063
+ def getScaleDegree(self, key: Key) -> int:
1064
+ ...
1065
+ def getShortType(self) -> str:
1066
+ ...
1067
+ def getSlur(self) -> tuple[str, str]:
1068
+ ...
1069
+ def getSoundingOctave(self) -> int:
1070
+ ...
1071
+ def getSoundingPitch(self) -> str:
1072
+ ...
1073
+ def getSoundingPitchClass(self) -> str:
1074
+ ...
1075
+ def getSoundingPitchStep(self) -> str:
1076
+ ...
1077
+ def getStaff(self) -> int:
1078
+ ...
1079
+ def getStem(self) -> str:
1080
+ ...
1081
+ def getTie(self) -> list[str]:
1082
+ ...
1083
+ def getTransposeChromatic(self) -> int:
1084
+ ...
1085
+ def getTransposeDiatonic(self) -> int:
1086
+ ...
1087
+ @typing.overload
1088
+ def getType(self) -> str:
1089
+ ...
1090
+ @typing.overload
1091
+ def getType(self) -> str:
1092
+ ...
1093
+ def getUnpitchedIndex(self) -> int:
1094
+ ...
1095
+ def getVoice(self) -> int:
1096
+ ...
1097
+ def getWrittenOctave(self) -> int:
1098
+ ...
1099
+ def getWrittenPitch(self) -> str:
1100
+ ...
1101
+ def getWrittenPitchClass(self) -> str:
1102
+ ...
1103
+ def getWrittenPitchStep(self) -> str:
1104
+ ...
1105
+ def inChord(self) -> bool:
1106
+ ...
1107
+ def info(self) -> None:
1108
+ ...
1109
+ def isDotted(self) -> bool:
1110
+ ...
1111
+ def isDoubleDotted(self) -> bool:
1112
+ ...
1113
+ def isGraceNote(self) -> bool:
1114
+ ...
1115
+ def isNoteOff(self) -> bool:
1116
+ ...
1117
+ def isNoteOn(self) -> bool:
1118
+ ...
1119
+ def isPitched(self) -> bool:
1120
+ ...
1121
+ def isTransposed(self) -> bool:
1122
+ ...
1123
+ def removeDots(self) -> None:
1124
+ ...
1125
+ def removeTies(self) -> None:
1126
+ ...
1127
+ def setDoubleDot(self) -> None:
1128
+ ...
1129
+ @typing.overload
1130
+ def setDuration(self, duration: Duration, divisionsPerQuarterNote: int = 256) -> None:
1131
+ ...
1132
+ @typing.overload
1133
+ def setDuration(self, durationValue: float, lowerTimeSignatureValue: int = 4, divisionsPerQuarterNote: int = 256) -> None:
1134
+ ...
1135
+ def setDurationTicks(self, durationTicks: int) -> None:
1136
+ ...
1137
+ def setIsGraceNote(self, isGraceNote: bool = False) -> None:
1138
+ ...
1139
+ def setIsInChord(self, inChord: bool) -> None:
1140
+ ...
1141
+ def setIsNoteOn(self, isNoteOn: bool) -> None:
1142
+ ...
1143
+ def setIsPitched(self, isPitched: bool = True) -> None:
1144
+ ...
1145
+ def setIsTuplet(self, isTuplet: bool = False) -> None:
1146
+ ...
1147
+ def setOctave(self, octave: int) -> None:
1148
+ ...
1149
+ def setPitch(self, pitch: str) -> None:
1150
+ ...
1151
+ def setPitchClass(self, pitchClass: str) -> None:
1152
+ """
1153
+ Set the note pitch class
1154
+ """
1155
+ def setSingleDot(self) -> None:
1156
+ ...
1157
+ def setStaff(self, staff: int) -> None:
1158
+ ...
1159
+ def setStem(self, stem: str) -> None:
1160
+ ...
1161
+ def setTieStart(self) -> None:
1162
+ ...
1163
+ def setTieStop(self) -> None:
1164
+ ...
1165
+ def setTieStopStart(self) -> None:
1166
+ ...
1167
+ def setTransposingInterval(self, diatonicInterval: int, chromaticInterval: int) -> None:
1168
+ ...
1169
+ def setTupleValues(self, actualNotes: int, normalNotes: int, normalType: str = 'eighth') -> None:
1170
+ ...
1171
+ def setUnpitchedIndex(self, arg0: int) -> None:
1172
+ ...
1173
+ def setVoice(self, voice: int) -> None:
1174
+ ...
1175
+ def toEnharmonicPitch(self, alternativeEnhamonicPitch: bool = False) -> None:
1176
+ ...
1177
+ def toXML(self, instrumentId: int = 1, identSize: int = 2) -> str:
1178
+ ...
1179
+ def transpose(self, semitones: int, accType: str = '') -> None:
1180
+ ...
1181
+ class NoteData:
1182
+ @typing.overload
1183
+ def __init__(self) -> None:
1184
+ ...
1185
+ @typing.overload
1186
+ def __init__(self, note: Note, wasEnharmonized: bool, enharmonicDiatonicDistance: int) -> None:
1187
+ ...
1188
+ class NoteDataHeap:
1189
+ pass
1190
+ class Part:
1191
+ def __hash__(self) -> int:
1192
+ ...
1193
+ def __init__(self, partName: str, numStaves: int = 1, isPitched: bool = True, divisionsPerQuarterNote: int = 256) -> None:
1194
+ ...
1195
+ def __repr__(self) -> str:
1196
+ ...
1197
+ def addMeasure(self, numMeasures: int) -> None:
1198
+ ...
1199
+ def addMidiUnpitched(self, midiUnpitched: int) -> None:
1200
+ ...
1201
+ def addStaves(self, numStaves: int = 1) -> None:
1202
+ ...
1203
+ @typing.overload
1204
+ def append(self, obj: Note | Chord, position: int = -1, staveId: int = 0) -> None:
1205
+ ...
1206
+ @typing.overload
1207
+ def append(self, objs: list[Note | Chord], position: int = -1, staveId: int = 0) -> None:
1208
+ ...
1209
+ def clear(self) -> None:
1210
+ ...
1211
+ @typing.overload
1212
+ def getMeasure(self, measureId: int) -> Measure:
1213
+ ...
1214
+ @typing.overload
1215
+ def getMeasure(self, measureId: int) -> Measure:
1216
+ ...
1217
+ def getMidiUnpitched(self) -> list[int]:
1218
+ ...
1219
+ def getName(self) -> str:
1220
+ ...
1221
+ def getNumMeasures(self) -> int:
1222
+ ...
1223
+ def getNumNotes(self, staveId: int = -1) -> int:
1224
+ ...
1225
+ def getNumNotesOff(self, staveId: int = -1) -> int:
1226
+ ...
1227
+ def getNumNotesOn(self, staveId: int = -1) -> int:
1228
+ ...
1229
+ def getNumStaves(self) -> int:
1230
+ ...
1231
+ def getPartIndex(self) -> int:
1232
+ ...
1233
+ def getShortName(self) -> str:
1234
+ ...
1235
+ def getStaffLines(self) -> int:
1236
+ ...
1237
+ def info(self) -> None:
1238
+ ...
1239
+ def isPitched(self) -> bool:
1240
+ ...
1241
+ def removeMeasure(self, measureStart: int, measureEnd: int) -> None:
1242
+ ...
1243
+ def removeStave(self, staveId: int) -> None:
1244
+ ...
1245
+ def setIsPitched(self, isPitched: bool = True) -> None:
1246
+ ...
1247
+ def setNumStaves(self, numStaves: int) -> None:
1248
+ ...
1249
+ def setPartIndex(self, partIdx: int) -> None:
1250
+ ...
1251
+ def setShortName(self, shortName: str) -> None:
1252
+ ...
1253
+ def setStaffLines(self, staffLines: int = 5) -> None:
1254
+ ...
1255
+ def toJSON(self) -> str:
1256
+ ...
1257
+ def toXML(self, instrumentId: int = 1, identSize: int = 2) -> str:
1258
+ ...
1259
+ class Score:
1260
+ def __hash__(self) -> int:
1261
+ ...
1262
+ @typing.overload
1263
+ def __init__(self, partsName: list[str], numMeasures: int = 20) -> None:
1264
+ ...
1265
+ @typing.overload
1266
+ def __init__(self, filePath: str) -> None:
1267
+ ...
1268
+ def __repr__(self) -> str:
1269
+ ...
1270
+ def addMeasure(self, numMeasures: int) -> None:
1271
+ ...
1272
+ def addPart(self, partName: str, numStaves: int = 1) -> None:
1273
+ ...
1274
+ def clear(self) -> None:
1275
+ ...
1276
+ def forEachNote(self, callback: typing.Callable[[Part, Measure, int, Note], None], measureStart: int = 0, measureEnd: int = -1, partNames: list[str] = []) -> None:
1277
+ ...
1278
+ def getChords(self, config: json = None) -> list[tuple[int, float, Key, Chord, bool]]:
1279
+ ...
1280
+ def getChordsDataFrame(self, config: json = None) -> typing.Any:
1281
+ ...
1282
+ def getComposerName(self) -> str:
1283
+ ...
1284
+ def getFileName(self) -> str:
1285
+ ...
1286
+ def getFilePath(self) -> str:
1287
+ ...
1288
+ def getNumMeasures(self) -> int:
1289
+ ...
1290
+ def getNumNotes(self) -> int:
1291
+ ...
1292
+ def getNumParts(self) -> int:
1293
+ ...
1294
+ @typing.overload
1295
+ def getPart(self, partId: int) -> Part:
1296
+ ...
1297
+ @typing.overload
1298
+ def getPart(self, partName: str) -> Part:
1299
+ ...
1300
+ def getPartIndex(self, partName: str, index: int) -> bool:
1301
+ ...
1302
+ def getPartName(self, partId: int) -> str:
1303
+ ...
1304
+ def getPartsNames(self) -> list[str]:
1305
+ ...
1306
+ def getTitle(self) -> str:
1307
+ ...
1308
+ def haveAnacrusisMeasure(self) -> bool:
1309
+ ...
1310
+ def info(self) -> None:
1311
+ ...
1312
+ def instrumentFragmentation(self, config: json = None) -> json:
1313
+ ...
1314
+ def isValid(self) -> bool:
1315
+ ...
1316
+ def removeMeasure(self, measureStart: int, measureEnd: int) -> None:
1317
+ ...
1318
+ def removePart(self, partId: int) -> None:
1319
+ ...
1320
+ def setComposerName(self, composerName: str) -> None:
1321
+ ...
1322
+ @typing.overload
1323
+ def setKeySignature(self, fifthCicle: int, isMajorMode: bool = True, measureId: int = 0) -> None:
1324
+ ...
1325
+ @typing.overload
1326
+ def setKeySignature(self, key: str, measureId: int = 0) -> None:
1327
+ ...
1328
+ def setMetronomeMark(self, bpm: int, duration: Duration = ..., measureStart: int = 0) -> None:
1329
+ ...
1330
+ def setRepeat(self, measureStart: int, measureEnd: int = -1) -> None:
1331
+ ...
1332
+ def setTimeSignature(self, timeUpper: int, timeLower: int, measureId: int = -1) -> None:
1333
+ ...
1334
+ def setTitle(self, scoreTitle: str) -> None:
1335
+ ...
1336
+ def toDataFrame(self) -> typing.Any:
1337
+ ...
1338
+ def toFile(self, fileName: str, compressedXML: bool = False, identSize: int = 2) -> None:
1339
+ ...
1340
+ def toJSON(self) -> str:
1341
+ ...
1342
+ def toXML(self, identSize: int = 2) -> str:
1343
+ ...
1344
+ def xPathCountNodes(self, xPath: str) -> int:
1345
+ ...
1346
+ class ScoreCollection:
1347
+ def __add__(self, arg0: ScoreCollection) -> ScoreCollection:
1348
+ ...
1349
+ def __hash__(self) -> int:
1350
+ ...
1351
+ @typing.overload
1352
+ def __init__(self, directoryPath: str = '') -> None:
1353
+ ...
1354
+ @typing.overload
1355
+ def __init__(self, directoriesPaths: list[str] = []) -> None:
1356
+ ...
1357
+ def __repr__(self) -> str:
1358
+ ...
1359
+ def addDirectory(self, directoryPath: str) -> None:
1360
+ ...
1361
+ @typing.overload
1362
+ def addScore(self, score: Score) -> None:
1363
+ ...
1364
+ @typing.overload
1365
+ def addScore(self, filePath: str) -> None:
1366
+ ...
1367
+ @typing.overload
1368
+ def addScore(self, filePaths: list[str]) -> None:
1369
+ ...
1370
+ def clear(self) -> None:
1371
+ ...
1372
+ def getDirectoriesPaths(self) -> list[str]:
1373
+ ...
1374
+ def getNumDirectories(self) -> int:
1375
+ ...
1376
+ def getNumScores(self) -> int:
1377
+ ...
1378
+ @typing.overload
1379
+ def getScores(self) -> list[Score]:
1380
+ ...
1381
+ @typing.overload
1382
+ def getScores(self) -> list[Score]:
1383
+ ...
1384
+ def isEmpty(self) -> bool:
1385
+ ...
1386
+ def merge(self, other: ScoreCollection) -> None:
1387
+ ...
1388
+ def removeScore(self, scoreIdx: int) -> None:
1389
+ ...
1390
+ def setDirectoriesPaths(self, directoriesPaths: list[str]) -> None:
1391
+ ...
1392
+ C: ClefSign # value = <ClefSign.C: 2>
1393
+ F: ClefSign # value = <ClefSign.F: 1>
1394
+ G: ClefSign # value = <ClefSign.G: 0>
1395
+ P: ClefSign # value = <ClefSign.P: 3>
1396
+ __version__: str = '1.5.0'