Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SP has a max file size defined my OSC #21

Open
josephwilk opened this issue Nov 17, 2017 · 0 comments
Open

SP has a max file size defined my OSC #21

josephwilk opened this issue Nov 17, 2017 · 0 comments
Assignees

Comments

@josephwilk
Copy link
Member

josephwilk commented Nov 17, 2017

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

@josephwilk josephwilk self-assigned this Nov 17, 2017
This was referenced Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant