repl-electric/sonic-pi.el

SP has a max file size defined my OSC

josephwilk opened this issue · 0 comments

SP will silently fail if you file is too big. Due to the limit of UDP packet sizes. This is core to SP's server and use of UDP and osc.

This sucks 😢 and has been an outstanding problem in SP for ages. TCP mode was a fix, but it never really made it in as a mainstream option

I've fixed this by sending the file name rather than the code to SP. The server opens and runs the file. This means files can be any size. Unfortunately this requires you to mod SonicPi.

I've done the work and this does work, but you might need to have a go yourself to make progress.

The run-code fn I use and you will need something pretty similar:
https://github.com/josephwilk/sonic-pi/blob/corrupted/app/server/bin/sonic-pi-server.rb#L220-L228