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