News for hackers. Stuff that matters.
Re:Show HN: Handel – A procedural programming language for w... by ddj231 on Tuesday January 05, 2021 @12:06PM (#25647676)
On a basic level the program below would accomplish that (can't promise this sounds pleasing to the ear ;) -

start

chunk lefthand

play C3, Eb3, G3 for 2b

rest for 2b

endchunk

chunk righthand

play C3 for 1b

play Gb3 for 1b

play Eb3 for 1b

play Db3 for 1b

endchunk

run lefthand with loop for 100

run righthand with loop for 100

finish

Re:Show HN: Handel – A procedural programming language for w... by mcphage on Tuesday January 05, 2021 @12:44PM (#25648344)
Which part of "run lefthand with loop for 100" makes it non-blocking? It it "run" instead of "play"?
Re:Show HN: Handel – A procedural programming language for w... by ddj231 on Tuesday January 05, 2021 @01:28PM (#25648988)
Currently all run chunks play at the same time. So 'run somechunk' will create a run of a chunk that begins at the same time as all other run chunks.

Your question does bring up an interesting idea, which would be to have a 'play somechunk' command that is blocking. But that does not exist at the moment