Add type stubs for mido MIDI library
- Created type stubs for various modules in the mido library including messages, midifiles, parser, ports, sockets, syx, tokenizer, and version. - Implemented type hints for functions and classes to improve type checking and code clarity. - Added support for MIDI over TCP/IP in sockets module. - Included methods for reading and writing SYX files in syx module. - Enhanced the parser functionality with a dedicated Parser class for MIDI byte streams. - Established a structure for MIDI file handling with MidiFile and MidiTrack classes.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from .checks import check_time
|
||||
from .messages import BaseMessage, Message, format_as_string, parse_string, parse_string_stream
|
||||
from .specs import MAX_PITCHWHEEL, MAX_SONGPOS, MIN_PITCHWHEEL, MIN_SONGPOS, SPEC_BY_STATUS, SPEC_BY_TYPE, SPEC_LOOKUP
|
||||
|
||||
__all__ = [
|
||||
"MAX_PITCHWHEEL",
|
||||
"MAX_SONGPOS",
|
||||
"MIN_PITCHWHEEL",
|
||||
"MIN_SONGPOS",
|
||||
"SPEC_BY_STATUS",
|
||||
"SPEC_BY_TYPE",
|
||||
"SPEC_LOOKUP",
|
||||
"BaseMessage",
|
||||
"Message",
|
||||
"check_time",
|
||||
"format_as_string",
|
||||
"parse_string",
|
||||
"parse_string_stream",
|
||||
]
|
||||
Reference in New Issue
Block a user