Hi, everyone.
Currently, I have:
inst1 = s2.new_part("Slow Strings")
...
inst1.play_note(root_note, bass_vol, chord_len, blocking=False)
However, what I want to do is this:
inst = ["slow_strings", "french_horns", "strings", "warm_pad", "fantasia", "cello", "synthbass2"]
instruments = sample(inst, k=3)
inst1 = instruments[0]
inst2 = instruments[1]
inst3 = instruments[2]
then make the same call:
inst1.play_note(root_note, bass_vol, chord_len, blocking=False)
inst2.play_note(root_note, bass_vol, chord_len, blocking=False)
inst3.play_note(root_note, bass_vol, chord_len, blocking=False)
But attaching inst1 to .play_note(…) gives an error.
I read something about using setattr (???) but I have no idea.
Can someone please help? Thanks!
David Collett
Seattle