Midi.begin in C

Hi, I am trying to simplify a code so that I can analyse exactly what is happening. What is the code equivalent of Midi.begin in the library Midi.h?

It’s right in the source files:
https://github.com/FortySevenEffects/arduino_midi_library/blob/master/src/MIDI.hpp#L90

You might be interested in this Arduino MIDI article. It explains the basics needed to send MIDI using an Arduino, without using any third-party libraries, so you get a good understanding of what’s going on under the hood of the MIDI library, for example.
https://tttapa.github.io/Arduino/MIDI/Chap00-Arduino-MIDI.html

Note: Midi.begin is not C, it’s object oriented programming, so it has to be C++.

Pieter