Skip to content
RobCranfillPublic

About

Version two - again!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MIDIbit

MIDI Practice Monitor

©2026 Rob Cranfill

Purpose

Elevator Pitch: Like a Fitbit for MIDI keyboards. Tells you how much you have practiced via various metrics.

Design Goals

Something that plugs into the USB port of a MIDI keyboard, with auto start/stop, so you can forget about it.

Minimum Viable Product: Accumulate total practice time until reset. Version 2: Accumulate two metrics: practice time and "play" time. Stretch goals (which will probably never happen): Internet connectivity, with an app to slice and dice the data all pretty-like. I doubt I'll ever do this.

Operation

  • Plug it in to MIDI & USB power.

  • Play the keyboard and watch your time accumulate!

  • Keyboard control sequences

    • In order to send commands to the unit from the MIDI keyboard, instead of using MIDI CC or PC commands, which some keyboards may not accomodate, you can play the first eight notes of Beethoven's 5th, starting on G above middle C, to get the unit's attentions.
      • That's G G G Eb F F F D; the tempo doesn't matter.
      • After the attention sequence,
        • Middle C: Zero out session data, both onscreen and written to storage.
        • D above middle C: Increment screen brightness; rolls thru a few useful values.
        • E above middle C: Toggle practice/play time.
      • Any other key after the attention sequence is ignored and normal operation resumes.
  • If no MIDI events are detected in the timeout period (60 seconds in RUN mode, 10 seconds in DEV mode (see below)) the screen will be blanked and the red LED will blink once per second (3 blinks per second if no MIDI, just for now).

  • The screen will not be blanked if no MIDI is detected.

Hardware Requirements for this project

  • Adafruit "RP2040 with USB A Host" (Adafruit produt ID 5723)
  • Adafruit 1.44" 128x128 TFT (product ID 2088)
  • (optional) Adafruit EYESPI connector and cable (or you can hardwire the display if you want)
  • I2C EEPROM of at least 8 bytes, for persisting data. I used a 4KB module.
  • Power supply
    • Needs to be plugged in, either to wall or USB power from keyboard.
    • TODO: Power from Roland USB A port seems problematic. Why?

Software Requirements

  • CircuitPython
    • 11.0.x beta used currently.
  • Adafruit support libraries
    • See requirements.txt for complete list and latest versions used.
  • Font: 22-point bitmap. of FreeType-CMU Typewriter Text-Bold-R-Normal, rendered from OpenType font "cmuntb.ttf", converted by Andrey V. Panov from TeX fonts. (Included)

Open Issues (also see GitHub)

  • V2:"Practice" .vs. "play" time - two values accumulated and stored.

Testing

  • It would be nice to be able to test things without an actual MIDI keyboard attached. How?

About

Version two - again!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages