protocol0


Nameprotocol0 JSON
Version 1.0.15 PyPI version JSON
download
home_pagehttps://github.com/lebrunthibault/protocol0
SummaryProtocol0 ableton remote script
upload_time2023-06-08 14:36:18
maintainer
docs_urlNone
authorThibault Lebrun
requires_python>=3.7.3
licenseMIT
keywords remote script ableton
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Protocol0 Control Surface Script for Ableton

Protocol0 is a control surface script for Ableton Live 11

It is a "selected track control" like
script focused on working in session view. 

I've been specifically working on making the session recording more powerful and more adapted to my workflow.
It has a focus on :
- Recording external synths (both midi and audio) in a smart way
- Being able to export / import sub tracks so as to always work on flattened audio track with the possibility to recall the base (midi track) at a button push.

The scripts react to a set of midi note and cc messages. I'm currently triggering those using a Faderfox EC4.
> This script is definitely a "working on my machine" script and is not generic to any layout / usage.
> It should be interesting for a remote script dev though.

## Features

I started writing the script specifically because I thought recording my Prophet Rev2 was tedious. 
Later on I realized I would probably produce better if I was working more in session view and experiment longer instead of rushing to
arrangement. So now it is more of a session view tool. 
Regarding recording my goal was to achieve a satisfactory recording experience with hardware synths,
as well as being able to use heavy vsts that I could easily bounce to audio and recall.

One of my main goals was to achieve a workflow where I had close to zero heavy vsts at any time, and a sleek set.

Specifically the script aims to achieve :

- A better workflow in session view
- A better workflow when using external synthesizers
- An automated way to bounce big vsts tracks to audio and recall them easily
- An integration with my generic FaderFox EC4 midi controller (could be used by any midi configurable controllers).
    - Use presses / long presses (both note messages) / button scrolls (cc messages) to trigger actions.
    - NB : a number of actions are relative to the selected track, and the script sees certain types of group track as
      one composite track (see External Synths).
    - Other actions can be relative to the selected scene, clip, or to the song.
- A lot of little improvements in the session view including:

> - Fixed length recording
> - Re recording audio from midi at a button's push
> - Handling of audio clip tails (recording and playing) to have perfect loops when recording hardware
> - A way to "scroll" (and inside scenes) and launch scenes with keyboard shortcuts
> - A tool to bounce session to arrangement
> - Tools to split and crop scenes
> - Validator code that can detect different kind of set configuration "errors" (routings, volumes, unused devices etc.)
> - Some code to synchronize my push2 to the script (specifically the session component)
> - A few other tools that can be found in the action_groups folder

<br><br>
The bigger part of the script is dedicated to handling external synths.

### External Synths

- The script is able to record both midi, audio and automation at the same time doing unlimited or fixed length
  recordings.
- It activates only on a group track that has the following layout (in this order, any other layout will not be
  detected) :
    - a midi track (records midi)
    - an audio track (records audio)
- the record button has 2 main modes :
    - midi recording : will record midi and audio on the next scene available
    - audio recording : will record audio from midi on this scene

## The backend

This script executes in the context of ableton's bundled python interpreter, like any script. Some things are not
possible in this environment like spawning processes or accessing win32apis (keyboard, mouse ..)
A simple example : clicking on a device show button is not possible from a "normal" script. To make this kind of thing
possible I've created a backend that you can find in [this repo](https://github.com/lebrunthibault/Protocol0-Backend).

NB : quite some features are not implemented in the API (freezing, flattening, cropping .. but also dragging in or out tracks etc ..).
All of this is implemented using the backend mostly leveraging wild mouse clicks.

The backend is exposing its api over midi, and I'm using loopMidi virtual ports to communicate with it.

> Without setting up the backend (might not be straightforward) the script will only partially work.

> As it's not possible to listen to multiple midi ports from a surface script I'm using a "proxy" surface script that forwards messages
> from my backend on its port to the main script. See [this repo](https://github.com/lebrunthibault/Protocol0-Midi-Surface-Script)
> The same purpose would be achievable my external midi routing using e.g. midi ox. I like this dependency better.

## Installation

`make bootstrap`

### Install the script in your remote scripts folder (for Live 11)

- `make install_script_p0`
- `make install_script_p0_midi` to add a midi port proxy



### Install the backend

- clone and follow the README install section of the [backend](https://github.com/lebrunthibault/protocol0/tree/main/p0_backend).
- You should also 


## Development

I've written a technical doc that details important parts of the script object model and techniques. Also, a few remote
scripts concepts are
explained. [see this article](https://lebrunthibault.github.io/post/music/protocol0/p0-technical-overview/) (might be a bit
outdated)

I'm working on dev and releasing working versions to master

I've been using DDD concepts to structure the script with a single central domain folder

### Tools

- `make test` runs the test suite (pytest).
- `make check` runs the linting tools and tests on the whole project. I'm using flake8, vulture and mypy.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lebrunthibault/protocol0",
    "name": "protocol0",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7.3",
    "maintainer_email": "",
    "keywords": "remote script,ableton",
    "author": "Thibault Lebrun",
    "author_email": "thibaultlebrun@live.fr",
    "download_url": "https://files.pythonhosted.org/packages/bd/c1/8584a7164b6e6b3c846d011dd4788d2a10274a770b9108eae840b3852e70/protocol0-1.0.15.tar.gz",
    "platform": null,
    "description": "# Protocol0 Control Surface Script for Ableton\n\nProtocol0 is a control surface script for Ableton Live 11\n\nIt is a \"selected track control\" like\nscript focused on working in session view. \n\nI've been specifically working on making the session recording more powerful and more adapted to my workflow.\nIt has a focus on :\n- Recording external synths (both midi and audio) in a smart way\n- Being able to export / import sub tracks so as to always work on flattened audio track with the possibility to recall the base (midi track) at a button push.\n\nThe scripts react to a set of midi note and cc messages. I'm currently triggering those using a Faderfox EC4.\n> This script is definitely a \"working on my machine\" script and is not generic to any layout / usage.\n> It should be interesting for a remote script dev though.\n\n## Features\n\nI started writing the script specifically because I thought recording my Prophet Rev2 was tedious. \nLater on I realized I would probably produce better if I was working more in session view and experiment longer instead of rushing to\narrangement. So now it is more of a session view tool. \nRegarding recording my goal was to achieve a satisfactory recording experience with hardware synths,\nas well as being able to use heavy vsts that I could easily bounce to audio and recall.\n\nOne of my main goals was to achieve a workflow where I had close to zero heavy vsts at any time, and a sleek set.\n\nSpecifically the script aims to achieve :\n\n- A better workflow in session view\n- A better workflow when using external synthesizers\n- An automated way to bounce big vsts tracks to audio and recall them easily\n- An integration with my generic FaderFox EC4 midi controller (could be used by any midi configurable controllers).\n    - Use presses / long presses (both note messages) / button scrolls (cc messages) to trigger actions.\n    - NB : a number of actions are relative to the selected track, and the script sees certain types of group track as\n      one composite track (see External Synths).\n    - Other actions can be relative to the selected scene, clip, or to the song.\n- A lot of little improvements in the session view including:\n\n> - Fixed length recording\n> - Re recording audio from midi at a button's push\n> - Handling of audio clip tails (recording and playing) to have perfect loops when recording hardware\n> - A way to \"scroll\" (and inside scenes) and launch scenes with keyboard shortcuts\n> - A tool to bounce session to arrangement\n> - Tools to split and crop scenes\n> - Validator code that can detect different kind of set configuration \"errors\" (routings, volumes, unused devices etc.)\n> - Some code to synchronize my push2 to the script (specifically the session component)\n> - A few other tools that can be found in the action_groups folder\n\n<br><br>\nThe bigger part of the script is dedicated to handling external synths.\n\n### External Synths\n\n- The script is able to record both midi, audio and automation at the same time doing unlimited or fixed length\n  recordings.\n- It activates only on a group track that has the following layout (in this order, any other layout will not be\n  detected) :\n    - a midi track (records midi)\n    - an audio track (records audio)\n- the record button has 2 main modes :\n    - midi recording : will record midi and audio on the next scene available\n    - audio recording : will record audio from midi on this scene\n\n## The backend\n\nThis script executes in the context of ableton's bundled python interpreter, like any script. Some things are not\npossible in this environment like spawning processes or accessing win32apis (keyboard, mouse ..)\nA simple example : clicking on a device show button is not possible from a \"normal\" script. To make this kind of thing\npossible I've created a backend that you can find in [this repo](https://github.com/lebrunthibault/Protocol0-Backend).\n\nNB : quite some features are not implemented in the API (freezing, flattening, cropping .. but also dragging in or out tracks etc ..).\nAll of this is implemented using the backend mostly leveraging wild mouse clicks.\n\nThe backend is exposing its api over midi, and I'm using loopMidi virtual ports to communicate with it.\n\n> Without setting up the backend (might not be straightforward) the script will only partially work.\n\n> As it's not possible to listen to multiple midi ports from a surface script I'm using a \"proxy\" surface script that forwards messages\n> from my backend on its port to the main script. See [this repo](https://github.com/lebrunthibault/Protocol0-Midi-Surface-Script)\n> The same purpose would be achievable my external midi routing using e.g. midi ox. I like this dependency better.\n\n## Installation\n\n`make bootstrap`\n\n### Install the script in your remote scripts folder (for Live 11)\n\n- `make install_script_p0`\n- `make install_script_p0_midi` to add a midi port proxy\n\n\n\n### Install the backend\n\n- clone and follow the README install section of the [backend](https://github.com/lebrunthibault/protocol0/tree/main/p0_backend).\n- You should also \n\n\n## Development\n\nI've written a technical doc that details important parts of the script object model and techniques. Also, a few remote\nscripts concepts are\nexplained. [see this article](https://lebrunthibault.github.io/post/music/protocol0/p0-technical-overview/) (might be a bit\noutdated)\n\nI'm working on dev and releasing working versions to master\n\nI've been using DDD concepts to structure the script with a single central domain folder\n\n### Tools\n\n- `make test` runs the test suite (pytest).\n- `make check` runs the linting tools and tests on the whole project. I'm using flake8, vulture and mypy.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Protocol0 ableton remote script",
    "version": "1.0.15",
    "project_urls": {
        "Homepage": "https://github.com/lebrunthibault/protocol0",
        "Repository": "https://github.com/lebrunthibault/protocol0"
    },
    "split_keywords": [
        "remote script",
        "ableton"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4443051421c4e2b798002d6f6b03711994085b94f95298e54cfa73071d4eff93",
                "md5": "b9706b49787be00daf396c95e17fadd4",
                "sha256": "59a371278475309fc4749c778e7234582725feaf4685ca18bf5746765991fdc7"
            },
            "downloads": -1,
            "filename": "protocol0-1.0.15-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b9706b49787be00daf396c95e17fadd4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7.3",
            "size": 356447,
            "upload_time": "2023-06-08T14:36:16",
            "upload_time_iso_8601": "2023-06-08T14:36:16.627959Z",
            "url": "https://files.pythonhosted.org/packages/44/43/051421c4e2b798002d6f6b03711994085b94f95298e54cfa73071d4eff93/protocol0-1.0.15-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bdc18584a7164b6e6b3c846d011dd4788d2a10274a770b9108eae840b3852e70",
                "md5": "7c79ef984013cffc1910842bf71560e4",
                "sha256": "f6741a9874217e73a781de2f9b21e6b66a38bab04877a1581dbd95957f331eef"
            },
            "downloads": -1,
            "filename": "protocol0-1.0.15.tar.gz",
            "has_sig": false,
            "md5_digest": "7c79ef984013cffc1910842bf71560e4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.3",
            "size": 170863,
            "upload_time": "2023-06-08T14:36:18",
            "upload_time_iso_8601": "2023-06-08T14:36:18.827059Z",
            "url": "https://files.pythonhosted.org/packages/bd/c1/8584a7164b6e6b3c846d011dd4788d2a10274a770b9108eae840b3852e70/protocol0-1.0.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-08 14:36:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lebrunthibault",
    "github_project": "protocol0",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "protocol0"
}
        
Elapsed time: 0.07518s