It's like this (each line is a block)
ask:Note length
save answer to note1 length
ask:Note sound
save answer to note1 sound
ask:Do you want more notes?
if answer=y
ask:Note length
save answer to note2 length
ask:Note sound
save answer to note2 sound
(and so on and so on)
if not then
if note1 sound =mi
then
if note1 length=10
start sound mi
wait 10 seconds
stop all sounds
if not
if note1 length=9
start sound mi
wait 9 seconds
and so on and so on
if
if note1 sound =la
then
if note1 length=10
start sound la
wait 10 seconds
stop all sounds
if not
if note1 length=9
start sound la
wait 9 seconds
and so on and soone with all the sounds, then note2, note3