I’m having issues with indentation in the Sonic Pi editor. For some reason, after I complete the end on a function definition, the next function definition is indented instead of being at the same level as the previous define. Is there a way to turn this off in the editor? Thanks for your help.
define :ca do |*args|
output = Array.new(args.length())
for x in 0..args.length()-1 do output[x] = args[x] end return(output)
define :pm do |*args|
notes = args
for x in 0..(notes.length()-1)/2 do if (notes[2*x] != "r") then play notes[2*x] end sleep notes[2*x+1] end end