Skip to main content

General Guidelines

The Smart Multibox uses Micropython as its scripting language. General information can be found on the Micropython website. Most reference materials that cover Python 3 will also apply.

The Micropython build is fairly minimal, most optional features have not been included, for example, floating point math. In addition to the minimal Micropython configuration, these features have been included:

  • bytearrays
  • The random module

This section will explain the extensions that have been added to Micropython for the sending, receiving and manipulation of MIDI messages.

Callback Driven Operation

The Smart Multibox is designed to primarily use callback functions. User code should not implement loops that run for a long time or infinitely. Doing so will prevent the Smart Multibox from operating properly. Callbacks are available for a number of events, including incoming MIDI messages, button presses and timer ticks. See the Callbacks section for more details.