josephburnett / hive-jam

A loop-oriented, multi-player framework for making music with Sonic Pi.
MIT License
7 stars 0 forks source link

/sonic-pi files uploaded with race condition #32

Closed josephburnett closed 8 years ago

josephburnett commented 8 years ago

When the OSC server bootstraps the /sonic-pi Ruby files into Sonic Pi, it uploads each of them in a separate OSC message, as fast as it can. This causes causes a race condition in which some dependencies are not yet available. One solution would be to wait about 100ms between file uploads to let Ruby interpret each file before the next.

Example error:

Runtime Error: [eval, line 61]
  uninitialized constant SonicPi::RuntimeMethods::SonicJam::State
josephburnett commented 8 years ago

@49f4d65867a43c22c5bf0a53a5ca4a62a9d2953c -- Wait 100ms between bootstrapping file. Timeout after 1000 ms.