The four pucks play in order, the distance from the center determines the length of the note.

Source code available, based on Ken's Piano.