Screen
By Sam Banks. In all three remixes.
The unit answers Elektron's screenshot SysEx request with the 128 × 64 screen, so
elektron-screen-tool (screendump) can show it on a
computer, for example as an OBS source.
Show the screen on a computer
What is needed:
- An image with the SCREEN module and, for USB, the USB module.
- A USB cable (or DIN MIDI).
- A computer with git and either uv or Python 3.10 or newer with tkinter.
- OBS Studio, optional.
Automated
From the octabam checkout:
python3 tools/hw/screen_stream.py
On the first run it clones elektron-screen-tool at a pinned commit into ~/.cache/octabam/elektron-screen-tool
(OCTABAM_SCREEN_DIR changes the place), creates a Python environment there and installs python-rtmidi. With uv installed (brew install uv) the environment uses a Python 3.13 that uv downloads (--python-preference only-managed; uv would otherwise take a matching Homebrew Python, which can be the Intel one), which includes tkinter and is built for the machine's architecture; without uv it uses the python3 that runs the script. It then
finds the Octatrack's MIDI input and output and opens the window. Later runs go straight to the window.
| Option | Does |
|---|---|
--list |
Prints the MIDI ports the tool sees. |
--port NAME |
Part of the MIDI port name, for both directions. Default Octatrack. |
--no-gui |
Draws in the terminal. |
--update |
Checks out the pinned commit again (--ref takes another). |
-- ARGS |
Passes the rest to screendump, for example -- --framerate 10 --save-video out.mp4. |
Without uv the window needs tkinter in that python3. On macOS: brew install python-tk.
On an Apple Silicon Mac the script stops if the environment's Python is x86_64 (running under Rosetta) and says what to delete. uname -m in the terminal should print arm64.
By hand
The steps are from a guide by Tapepusher, who first ran the screen capture on a real Octatrack MKII.
With uv (brew install uv), whose Python includes tkinter:
git clone https://github.com/Fadedlimes/elektron-screen-tool.git ~/Downloads/elektron-screen-tool
cd ~/Downloads/elektron-screen-tool
uv venv --python-preference only-managed --python 3.13 .venv
uv pip install --python .venv/bin/python python-rtmidi
.venv/bin/python ./screendump --list-midi
Without uv, using Homebrew's Python:
brew install python python-tk
git clone https://github.com/Fadedlimes/elektron-screen-tool.git ~/Downloads/elektron-screen-tool
cd ~/Downloads/elektron-screen-tool
python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip python-rtmidi
.venv/bin/python ./screendump --list-midi
On an Apple Silicon Mac, .venv/bin/python -c "import platform; print(platform.machine())" should print arm64. x86_64 means
the environment is running under Rosetta: delete .venv and recreate it from a terminal where uname -m prints arm64.
--list-midi shows the Octatrack as an input and an output (macOS: Elektron Octatrack DPS-1). Then:
.venv/bin/python ./screendump --external --gui --instrument OT \
--midi-in "Elektron Octatrack DPS-1" --midi-out "Elektron Octatrack DPS-1"
A window opens with the Octatrack's display. Close the window or press Ctrl+C in the terminal to stop.
In OBS
- Under Sources, click + and choose macOS Screen Capture.
- Choose Create New, then OK.
- Set Capture Type to Window and select the window titled
[Python] screendump - Octatrack. - Click OK. Resize and position it in the scene; hold Option while dragging an edge to crop the window's UI off.
If no ports are listed
- USB: PROJ > BRAIN > SETTINGS > USB > MIDI is ON (MIDI OFF leaves the computer storage and audio only).
- The flashed image contains the SCREEN module, and the USB module for the USB cable.
- DIN: a MIDI interface connects the Octatrack's MIDI OUT and IN to the computer.
Operation
screendump is pointed at the Octatrack's ports with the instrument id 10 00 (--probe-id 10 00; 05 00 is
answered too). The reply goes back on the transport the request came on.
Wire format
| Request | F0 00 20 3C 10 00 00 00 01 00 00 04 F7 (13 bytes) |
| Reply | 1,194 bytes: F0 00 20 3C 10 00, 7-bit-encoded body, F7 |
| Body | msgId, replyTo, cmd 84, version 1, width 128, height 64, length 1024, 1,024 pixel bytes |
The picture is the frame the panel was last sent, so MIXER, the PROJECT menu, SETUP windows and popups are in it, not only the page underneath.
On USB the reply is one 1,592-byte EP2 IN transfer. On DIN it takes 0.38 s at 31,250 baud, so about 2.6 screens per second; USB has no such limit.