I can’t get this to work:
def basson01a():
basson_pitch_01a = [48, 43, 46, 48, 50, 51, 50, 48, 43]
basson_durs_01a = [1, .5, .5, 1, 1, 1.5, .5, 1, 1]
basson_vol_01a = [.8, .6, .75, .9, .6, .8, .7, .7, .9]
basson_length_01a = [.5, .5, .5, .5, .9, .9, .2, .2, 1]
for pitch, volume, duration, length in zip(basson_pitch_01a, basson_vol_01a, basson_durs_01a, basson_length_01a):
basson.play_note(pitch, volume, duration, length)
Everything works, except the note property “length”, which gives me this error:
ValueError: 0.5 not interpretable as NoteProperties.
Probably a misunderstanding on my part, but I’ve been looking for hours and I can’t find it.
A little help would be appreciated