Skip to content

About

MIDI MONITOR: one std1 mod for every Elektron device with a std1 core (elekloader)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIDI MONITOR: one std1 mod, many devices

A small utility mod for elekloader. It is written once against the standard events (std1) and builds, unchanged, for every Elektron box whose core maps them.

SETTINGS > MIDI MON opens a full-screen page. It lists the last MIDI messages the unit received, newest first:

  • notes on and off, with their names (C4 = 60);
  • CCs, with a bar for the value and the track the unit gave the CC to (T1);
  • program changes, pitch bend and aftertouch, each with a bar where it has a value;
  • SysEx, with its length and first three bytes;
  • START, STOP and CONTINUE, and song position and song select.

It also lists the unit's own changes, marked >: the playing pattern, recording and song modes, and mutes. The header counts the messages and shows CLK while MIDI clock comes in. A CC sweep updates its own line, so turning a knob does not fill the page.

The key that opened the page (YES, or the PITCH push on the Models) clears it. Any other key (NO, or BACK) closes it. While the page is open, every key goes to it.

Digitone mk1 1.44: the page after notes, a CC sweep, a program change, bend, SysEx and start/stop

Why it is portable

midimon.c includes only <std1.h>. It uses no key, LED or parameter number of any one device:

  • The clear key is learned at run time: it is the key that pressed the SETTINGS row.
  • The line pitch comes from the device's small font, measured on the first frame. It is 6 rows on the 4-pixel fonts and 10 on the Models' 6-pixel font.
  • The mode names (GRID REC, LIVE REC, STEP REC, SONG) use the numbers every core's ui.h shares.

It subscribes to 10 events, all among the 22 that every std1 core maps: ev_settings, ev_key, ev_tick, ev_draw, ev_midi_in, ev_sysex_in, ev_midi_cc, ev_pattern, ev_mode and ev_mute. It skips ev_enc, which the Analog Four MKII's core lacks, so the knobs still reach the view under the page.

It draws with core_fill and core_text and calls core_setting_add and core_redraw. With -Os it is about 4 KB of code and 158 bytes of RAM. The log is 16 records of 8 bytes.

Devices

mod.json names the Digitone mk1 1.44. Each other device's build is the same folder with device and os changed, which is what python -m elekloader.portable does.

Device OS std core (draft PR) links + lint emulator
Digitakt mk1 1.53, 1.54 core 5.1 (elekloader#439) ok, ok 1.54 in digiemu
Digitone mk1 / Keys 1.43, 1.44 core-dn1 5.6 (elekloader#440) ok, ok 1.44 in digiemu, also from the TELOS store
Model:Cycles 1.13 core-mc 0.5 (elekloader#443) ok digiemu
Model:Samples 1.13 core-ms 0.5 (elekloader#443) ok not run
Digitakt II 1.17 core-dt2 1.3 (elekloader#445) ok digi-emud
Digitone II 1.12 core-dn2 0.6 (elekloader#445) ok digi-emud
Analog Rytm MKII 1.74 core-ar2 0.22 (main) ok not run
Analog Four MKII 1.56 core-a4mk2 0.11 (main) ok not run

Every row was checked in an emulator only. None of these builds has run on a unit.

Building

You need elekloader with the std cores, m68k binutils and gcc, and the stock OS files. The std cores are on separate branches until they merge.

export ELEKLOADER_CROSS=m68k-linux-gnu-
python -m elekloader.sdk.build path/to/std-showcase --stock Digitone_and_Digitone_Keys_OS1.44.syx
python -m elekloader.lint path/to/std-showcase/out/midi-monitor-0.1.elemod \
    --stock Digitone_and_Digitone_Keys_OS1.44.syx --with core-5.6-os1.44.elemod
python -m elekloader.portable path/to/std-showcase --stock-dir path/to/stock --core core-5.6-os1.44.elemod ...

For another device, copy the folder and set device and os in mod.json. Then patch it in beside that device's std core, or send it to the TELOS store (below).

From the TELOS store (Digitone mk1)

The same .elemod loads from the TELOS store with no new firmware. The test build was core-dn1 5.6 and TELOS (elekloader/telos main), plus one local fix: the telos branch std-showcase-dn1.

The steps, in digiemu on 1.44:

  1. Send the file over DIN SysEx: python tools/telos.py unit add midimon.elemod.
  2. Cold-boot the emulator.
  3. unit list shows the file loaded.
  4. The MIDI MON row comes before MODS (TELOS), and its page works.

TELOS's page with MIDI MONITOR on The page of the store-loaded mod

Without that fix, TELOS main refuses the file with code 15 (ev_sysex_in). Its vendored linker predates std1, so it reads std1 event names as native table names.

Screens

The screens/ folder has 3x captures from the emulators, one set per device: the SETTINGS row, the page with MIDI, the page with the unit's own changes, and the page after clearing.

  • Digitakt mk1, Digitone mk1 and Model:Cycles (digiemu). The UI task stops after injected MIDI, stock firmware included. So each capture took two runs:
    1. Real MIDI went through the mod's handlers, and the log's records were read back.
    2. A fresh run wrote those records into the mod's log, made the unit's own changes on the panel, and opened the page.
  • Digitakt II and Digitone II (digi-emud). The MIDI went live into the open page.

Licence

GPL-2.0-or-later (LICENSE), like elekloader's examples.

About

MIDI MONITOR: one std1 mod for every Elektron device with a std1 core (elekloader)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages