It’s a lot cheaper to set up something like this in a virtual space - it also takes up a lot less space.
VCV Rack 2 is a free way to very closely replicate the experience of building eurorack module synthesizers - without the cost of buying all the rack gear, and without needing to devote space IRL to assembling and organizing all the parts.
I could imagine a similar approach for designing and operating musical marble machines like this (in fact I’d almost be surprised if something doesn’t already exist, akin to roller coaster tycoon’s coaster design tools!)
Unfortunately, this only works unless you have a textfield focused or something similar that "consumes" your keyboard input. At least in my experience, it's quite unreliable.