How to change a ring to a list?


We can use list_name.ring to make the list a ring. How to do it the other way around? ( ring to list)


on the end (to array)

puts scale(:c4,:major) #a ring
puts scale(:c4,:major).to_a #a list


@zzm88 - note that .to_a comes directly from the Ruby language, which Sonic Pi is based on. If you’re wondering about similar sorts of functions which don’t seem to be available in Sonic Pi, there’s a chance it will be available in plain Ruby. (However, only Sonic Pi functions as seen in the help docs are officially supported, so anything else may or may not work. Basic Ruby maths operations are pretty safe for example).