In most music editing software, the default portamento width is that of two positive-negative semitones, or 4 semitones. When you want a portamento to last for more than 4 semitones, you should change event 0 of RPN code (namely, the Bend pitch event) to adjust the wheel width. The portamento width is calculated in the following formula: Wheel pitch=2*(bend pitch/128)
Suppose you need 4 semitones’ width of portamento, you have 4=2*(bend pitch/128), so the Bend pitch is 256.
In AM4F2.0, a portamento can last for at most 4 semitones since Bend pitch is not supported, while in AM4F2.1 a portamento can last for the same width set in the music editing software (Bend pitch supported).
Create the portamento in the MIDI file. AM4F2.0 and AM4F2.1 support multi-channel portamento, that is, different portamentos can be played simultaneously in different channels.