To have a quite large working window without having to create a big sized array, we store the data in a ``circular buffer'': When the fixed-size buffer is full, we continue to full it from the beginning.
Stored data are played pitch, played velocity, played time.