Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
monitor.hpp File Reference

MIDI event monitor — tagged output formatter. More...

Go to the source code of this file.

Detailed Description

MIDI event monitor — tagged output formatter.

Formats MidiEvent structs as tagged output lines per the SBL tagged output convention (#TAG key=value). Gated behind SBL_MIDI_MONITOR.

Output examples: #MIDI ch=1 type=note_on num=60 vel=100 #MIDI ch=1 type=cc num=74 val=127 #MIDI ch=1 type=pb val=8192 #MIDI type=clock

Usage: void midi_callback(const sbl::midi::MidiEvent& event) { #ifdef SBL_MIDI_MONITOR char buf[64]; sbl::midi::format_event(buf, sizeof(buf), event); log_write(buf); #endif // ... application handling ... }

Definition in file monitor.hpp.