This module defines classes and functions for dealing with MIDI events in Python code, e.g. using Process() or Call().
The class used as the MIDI event data type inside the Process() and Call() units.
A MidiEvent object has the following attributes:
There are also aliases for these attributes, some of which are only valid for certain types of events:
Auxiliary functions to create new MidiEvent objects of a certain type.
This module contains functions to query or control the state of the mididings event processing engine from Python code.
Switches the current scene and/or subscene.
Returns the current scene or subscene number.
Returns a dictionary of all scenes. Keys are scene numbers, values are tuples containing the scene name and a (possibly empty) list of subscene names.
Sends a MIDI event directly to an output port, completely bypassing any other event processing.
Returns a list of the configured input/output port names.
Returns the time in seconds (floating point) since some unspecified starting point. Unlike Python's time.time(), this clock is guaranteed to be monotonic.
Returns True if the mididings engine is active (the run() function is running).
Restarts the mididings script by terminating the current process, and then running the same Python interpreter with the same arguments again. This will not work properly if run() is not the last call in your script, or if you're running mididings in an interactive Python interpreter.
Terminates mididings event processing (by making the run() function return).
This module contains various utility functions.
Converts a note name to a MIDI note number.
Converts a note range string to a tuple of MIDI note numbers.
Returns the note name for the given MIDI note number.
Returns the GM controller name for the given controller number.
Returns the port number corresponding to the given port name. If input and output ports exist with the same name but different index, the number of the input port is returned.