This script is based on Arthur Kerns’ excellent (and free!) midiFILTr-PG Probability Gate MIDI Effect. The only issue with Kerns’ midiFILTr-PG is that it is not AUv3, so you can only use one instance. But now with these Mozaic scripts you can have as many instances as you need.

Version 1.1 changes:
* Fixed State Saving
Version 1.2
* Added MIT Licensing information.
Version 1.3
* Added LED indicators under the faders to show which step is playing. A white LED indicates that the midi note has passed through the gate; a red LED means the note has been blocked. Also now the number of steps is indicated by LEDs and the faders.
* More efficient midi handling.