bro
This commit is contained in:
1 parent
de41a02749
commit
9af09cebd3
764 files changed
+54218
-78859
No files matched your search
@@ -1,7 +1,6 @@
|
||||
from collections.abc import Iterable
|
||||
from typing import List, Sequence, Tuple, Union
|
||||
|
||||
from pygame.event import Event
|
||||
from pygame.typing import SequenceLike
|
||||
|
||||
MIDIIN: int
|
||||
MIDIOUT: int
|
||||
@@ -15,10 +14,10 @@ def get_init() -> bool: ...
|
||||
def get_count() -> int: ...
|
||||
def get_default_input_id() -> int: ...
|
||||
def get_default_output_id() -> int: ...
|
||||
def get_device_info(an_id: int) -> tuple[str, str, int, int, int]: ...
|
||||
def get_device_info(an_id: int) -> Tuple[bytes, bytes, int, int, int]: ...
|
||||
def midis2events(
|
||||
midis: Iterable[SequenceLike[SequenceLike[int] | int]], device_id: int
|
||||
) -> list[Event]: ...
|
||||
midis: Sequence[Sequence[Union[Sequence[int], int]]], device_id: int
|
||||
) -> List[Event]: ...
|
||||
def time() -> int: ...
|
||||
def frequency_to_midi(frequency: float) -> int: ...
|
||||
def midi_to_frequency(midi_note: int) -> float: ...
|
||||
@@ -29,7 +28,7 @@ class Input:
|
||||
def __init__(self, device_id: int, buffer_size: int = 4096) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def poll(self) -> bool: ...
|
||||
def read(self, num_events: int) -> list[list[list[int] | int]]: ...
|
||||
def read(self, num_events: int) -> List[List[Union[List[int], int]]]: ...
|
||||
|
||||
class Output:
|
||||
device_id: int
|
||||
@@ -45,27 +44,6 @@ class Output:
|
||||
def note_on(self, note: int, velocity: int, channel: int = 0) -> None: ...
|
||||
def set_instrument(self, instrument_id: int, channel: int = 0) -> None: ...
|
||||
def pitch_bend(self, value: int = 0, channel: int = 0) -> None: ...
|
||||
def write(self, data: Iterable[SequenceLike[SequenceLike[int] | int]]) -> None: ...
|
||||
def write(self, data: List[List[Union[List[int], int]]]) -> None: ...
|
||||
def write_short(self, status: int, data1: int = 0, data2: int = 0) -> None: ...
|
||||
def write_sys_ex(self, when: int, msg: list[int] | str) -> None: ...
|
||||
|
||||
# keep in sync with midi.py
|
||||
__all__ = [
|
||||
"Input",
|
||||
"MIDIIN",
|
||||
"MIDIOUT",
|
||||
"MidiException",
|
||||
"Output",
|
||||
"get_count",
|
||||
"get_default_input_id",
|
||||
"get_default_output_id",
|
||||
"get_device_info",
|
||||
"init",
|
||||
"midis2events",
|
||||
"quit",
|
||||
"get_init",
|
||||
"time",
|
||||
"frequency_to_midi",
|
||||
"midi_to_frequency",
|
||||
"midi_to_ansi_note",
|
||||
]
|
||||
def write_sys_ex(self, when: int, msg: Union[List[int], str]) -> None: ...
|
||||
Reference in new issue
Block a user