hi @dewildequinten,
ok may i have missed some part of code. so i create a new post concerning oscjs and sonic pi.
Hope it can help you in your project.