Error when I loop over a new_part

curr_instrument = s.new_part(‘Synth Calliope’)
AttributeError: ‘int’ object has no attribute ‘new_part’

I’m stumped. It seems to work in other code.

somehow you’ve redefined s to be an integer. Would have to see the full code to know why!

sorry, you’re right. I had a for loop with “s” in it. : (

ahhh, that happens!