Summary: when sending midi out Sonic Pi gives the error:
" NoMethodError Thread death +--> :live_loop_md undefined method `send_ts'; for nil:NilClass Did you mean? send"
What is odd is that I have not had problems with Midi using the exact same code. This morning it was working fine. During a break I installed a Demo version of http://feelyoursound.com/sundog. I could not get Sundog to send midi to FL Studio and while trouble shooting I lost the ability to send Midi from Sonic Pi, instead getting the above error message.
I tried fixing the Sonic Pi install, reinstalling Sonic Pi, and uninstalling Sundog with no sucesss
Workaround - @JosephWilk to the rescue!!!
Searching on the internet I came across this post on the Sonic Pi repo: https://github.com/repl-electric/sonic-pi.el/issues/19. Following his suggestion I pasted the code into the buffer that I was evaluating and it worked!! (YMMV):
@osc_server ||= SonicPi::OSC::UDPServer.new(4559, use_decoder_cache: true) #__nosave__
- Would the software that I installed conflict with Sonic Pi somehow?
- I’d love to better understand what this fix is doing.
- Does this patch give any of the Sonic Pi ninjas a bead on what the larger issue might be?
- I am open to any suggestions on how I can help test/troubleshoot this
Hope this helps someone!!