I have an error which ruins my little project. I can run this code on Sonic Pi 3.2.2 on Mac OS Majove, no error, but on Raspberry Pi 3, Sonic Pi 3.2.2, it doesn’t work.
set :a, [3,5,6,7,8] a = get :a b = a[1..] puts b # [5,6,7,8] set :a, b puts get :a # [5,6,7,8]
I have syntax error unexcepted ‘]’ on line 3.
It’s annoying because I use to modify Time State var with OSC message like you can see here sonic-pi-music-step-sequencer/FXs.rb at master · coffeecore/sonic-pi-music-step-sequencer · GitHub
On Mac OS, I have Ruby 2.3 and on Rpi is 2.5, but I don’t see anymore diff.
Maybe I can do that by another way.