{"id":34085591,"url":"https://github.com/maboroshy/midi-scripter","last_synced_at":"2026-04-09T13:02:19.808Z","repository":{"id":237220039,"uuid":"794054888","full_name":"Maboroshy/midi-scripter","owner":"Maboroshy","description":"Python framework for scripting MIDI, Open Sound Control, keyboard and mouse input and output","archived":false,"fork":false,"pushed_at":"2025-09-19T15:53:06.000Z","size":2030,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T17:48:00.433Z","etag":null,"topics":["ableton","automation","daw","input","macros","midi","midi-controller","music","osc","python","script"],"latest_commit_sha":null,"homepage":"https://maboroshy.github.io/midi-scripter/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Maboroshy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-30T11:20:10.000Z","updated_at":"2025-09-19T15:50:08.000Z","dependencies_parsed_at":"2024-11-02T20:20:54.771Z","dependency_job_id":"cb59a565-c0af-4deb-b1f2-847bf22ad4f1","html_url":"https://github.com/Maboroshy/midi-scripter","commit_stats":null,"previous_names":["maboroshy/midi-scripter"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/Maboroshy/midi-scripter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maboroshy%2Fmidi-scripter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maboroshy%2Fmidi-scripter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maboroshy%2Fmidi-scripter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maboroshy%2Fmidi-scripter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maboroshy","download_url":"https://codeload.github.com/Maboroshy/midi-scripter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maboroshy%2Fmidi-scripter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27728832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ableton","automation","daw","input","macros","midi","midi-controller","music","osc","python","script"],"created_at":"2025-12-14T13:06:57.550Z","updated_at":"2025-12-14T13:06:59.381Z","avatar_url":"https://github.com/Maboroshy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# \u003cimg src=\"https://raw.githubusercontent.com/Maboroshy/midi-scripter/master/docs/icon.svg\" width=\"23\"/\u003e MIDI Scripter\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/midiscripter?style=flat-square\u0026logo=python\u0026logoColor=yellow)](https://pypi.org/project/midiscripter/) ![GitHub License](https://img.shields.io/github/license/maboroshy/midi-scripter?style=flat-square\u0026color=darkgreen) ![For](https://img.shields.io/badge/for-Windows%20|%20macOS%20|%20Linux-darkmagenta?style=flat-square)\n\nMIDI Scripter is a Python framework for filtering, modifying, routing and any other\nhandling of MIDI, Open Sound Control (OSC), keyboard and mouse input and output.\n\nMIDI Scripter listens to input ports and sends incoming messages to subscribed callables such as functions or methods. \nThese callables, along with other Python code, can send modified or new messages through output ports. \nMIDI Scripter can serve as a proxy that filters, transforms and converts incoming messages.\n\nIn addition, MIDI Scripter features a customizable graphical user interface (GUI) \nthat provides logging, coding assistance, various controls and indicators to use in the script.\n\nAll that with no boilerplate and only a few lines of code.\n\nAn octave transposer with GUI controls in 10 lines of code:\n\n``` python\nfrom midiscripter import *\n\nmidi_keyboard = MidiIn('MIDI Keyboard')  # GUI will provide you the port names\nproxy_output = MidiOut('To DAW', virtual=True)  # virtual proxy port for output\n\n# GUI widget in a single line\noctave_selector = GuiButtonSelectorH(('-2', '-1', '0', '+1', '+2'), select='0')\n\n@midi_keyboard.subscribe  # decorated function will receive port's messages\ndef transpose(msg: MidiMsg) -\u003e None:\n\tif msg.type == MidiType.NOTE_ON or msg.type == MidiType.NOTE_OFF:  # filter\n\t\tmsg.data1 += 12 * int(octave_selector.selected_item_text)  # modify\n\tproxy_output.send(msg)  # route\n\nif __name__ == '__main__':\n\tstart_gui()  # opens helpful customizable GUI\n```\n\nScreenshot with only `octave_selector` widget enabled:\n\n![Screenshot with only octave_selector widget enabled](\nhttps://github.com/Maboroshy/midi-scripter/blob/master/examples/octave_transposer/screenshot_widget.png?raw=true)\n\nScreenshot with service Ports and Log and Message Sender widgets:\n\n![Screenshot with all the widgets visible](\nhttps://github.com/Maboroshy/midi-scripter/blob/master/examples/octave_transposer/screenshot_full.png?raw=true)\n\nThe average latency for the script above is less than 0.25 milliseconds.\n\nCurrently, MIDI Scripter is at \"beta\" development stage. \nIt is fully functional but needs more user feedback. \n\n## Use cases\n\n- Programming MIDI input/output handling scripts \n  that may also use OSC, keyboard and mouse input/output.\n- Mapping your MIDI controller in your own custom way, \n  from simple MIDI message filtering or conversion to mostly anything you can imagine.\n- Controlling Ableton Live with Python, without diving into \n  it's complex MIDI remote scripting or Max for Live.\n\n## Examples \n- [Launch an app or run any Python code with a MIDI message.](https://github.com/Maboroshy/midi-scripter/tree/master/examples/start_daw_by_midi)\n- [Show pressed chord description.](https://github.com/Maboroshy/midi-scripter/tree/master/examples/chord_info)\n- Control Ableton Live with [remote script](https://github.com/Maboroshy/midi-scripter/tree/master/examples/ableton_select_armed_track_with_remote_script) or [AbletonOSC.](https://github.com/Maboroshy/midi-scripter/tree/master/examples/ableton_select_armed_track_with_osc)\n- [Make custom mapping overlay on top of Ableton Live built-in MIDI controller integration.](https://github.com/Maboroshy/midi-scripter/tree/master/examples/launchpad_overlay)\n- [Run Python code with Ableton Live clips.](https://github.com/Maboroshy/midi-scripter/tree/master/examples/ableton_clips_launch_code)\n- [Save and load global presets for Ableton Live devices.](https://github.com/Maboroshy/midi-scripter/tree/master/examples/ableton_global_preset)\n- [Add extra banks to MIDI controller.](https://github.com/Maboroshy/midi-scripter/tree/master/examples/controls_banks)\n\n## Documentation\n\nMIDI Scripter has fully documented and type hinted API.  \n[Overview and API documentation is available here.](https://maboroshy.github.io/midi-scripter)\n\n## Installation\n\n1. Install [Python 3.11+](https://www.python.org/downloads/) including pip.\n2. Run `pip install midiscripter`.\n\nExtra steps for Windows:\n\n1. Enable `Add python .exe to PATH` option in Python installer.\n2. Install [loopMIDI](https://www.tobias-erichsen.de/software/loopmidi.html) for virtual MIDI port support.\n\n## Quick Start Guide\n\n1. Paste the [script template](examples/script_template.py) into your Python IDE or a plain text editor. Using IDE is recommended.\n2. Run the template script directly from the IDE or by `python your_script.py`. \n   This will open the GUI, providing information about available ports and incoming input.\n3. Ensure that the “Show Unused Ports” button located under the port list is activated. \n   Enable the checkboxes for any available ports to open them. Monitor the log for incoming messages.\n4. Click on the port names and messages in the log or port list to copy their declarations to the clipboard. \n   You can paste the declarations into your script.\n5. Rewrite the template function to achieve desired functionality. Use `log('messages')` for debugging purposes.\n6. Restart the script from the GUI to see how it performs.\n7. Develop more complex scripts by utilizing additional inputs, outputs and functions (callables). \n   Subscribe new callables to input messages using the `@input_port.subscribe` decorator.\n\n## License \nMIDI Scripter assets and code is under LGPL 3.0 license.  \nThe code that use it can have any license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaboroshy%2Fmidi-scripter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaboroshy%2Fmidi-scripter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaboroshy%2Fmidi-scripter/lists"}