How to run from middle?

say it has 100 bars, can we play the music from the 80th bar for testing?

1 Like

It depends how the code was wrote. But, as I know, there isn’t a syntax for skip lines like ‘x’ in the csound’s score statement.

play 67
sleep 1
/
#try with the slash
play 72
sleep 1
/
play 60
sleep 1
1 Like

I do so (as an option).
Important: = comes from the beginning of the line, there are no spaces before it

play 67
sleep 1
=begin
#skip from = begin to = end
play 72
sleep 1
=end
play 60
sleep 1
1 Like

I had a look at this back in 2017. For monophoic pieces not too bad, but if you have multiple parts it becomes quite difficult. Here is an aritcle that I wrote then. Probably needs a bit of updating, as it was before OSC input to Sonic Pi was really developed. Thereis a series associated videos linked in the article at the end. The first one is

1 Like

There was some discussion of this a while back on github.

1 Like