Adapt to drive LEDs

I’m working on a large LED project, and I would absolutely love to do Sonic Pi-style live code performances. I have some ideas, and I’m open to more. What I’m mostly looking to do is duplicate the live editor part of Sonic Pi. This might look like a fork, or it might just look like taking inspiration and guidance from core systems

Current setup:

  1. Ruby code renders a frame
  2. Ruby code sends frame to arduinos over USB
  3. Arduinos push the frame to the LEDs

I’d like to be able to do #1 using a Sonic-Pi style live editor, but I have no idea how the editor works under the hood.

So,
Suggestions?
Thoughts?
Explanations as to the how the Live Editor does its magic? (Including “look here in the code base”)

Thanks!