Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Compile Options

Andrew Mee edited this page Nov 23, 2021 · 4 revisions

Compile Options

When running on low end embedded hardware it is often useful to remove code that is not going to be used.

Add these compiler flags to reduce the compile and memory size. In Arduino this will need to be done using the compiler.cpp.extra_flags property.

MIDI1BYTESTREAMONLY

Setting this will disable Protocol Negotiations (M2_DISABLE_PROTOCOL = 1) and reduce the memory needed for managing 16 Groups.

M2_DISABLE_PE

Disable all Property Exchange functionality - also reduces the memory footprint. Property Exchange is one of the heavier (and one of the most powerful) parts of MIDI-CI and should be disabled if your MIDI 2.0 Device does not intended to use this feature.

M2_DISABLE_PROTOCOL

Disable all Protocol Negotiation functionality.

M2_DISABLE_PROFILE

Disable all Profile Configuration functionality.

M2_DISABLE_JR

Disable all Jitter Reduction functionality.

M2_DISABLE_PROTOCOL

Disable Protocol Negotiation. Note you this should be enabled if Jitter Reduction is enabled.

M2_DISABLE_IDREQ

Disable the Universal SysEx Device ID functionality.

Clone this wiki locally