Are you looking for an elegant solution to pipe output from your Ruby code to Sonic Pi? This isn’t it. But it does work.