Dynamically Creating Notes with Precise MIDI Velocity Value Control

This is an example how to control MIDI output with precise velocity control. The visible output is wild and has nothing to see; but the MIDI output is usable.