Re:Show HN: Handel – A procedural programming language for w...
by ddj231 on Tuesday January 05, 2021 @11:11PM
(#25654591)
I added the loop customization to play commands in Handel v0.1.12.
So for repeating commands you can use this syntax:
play somenotelist for 1b loop for 5
Here is your code using the new feature: https://pastebin.com/bNwUHNaM
To make this more robust, I'll be looking to add looping constructs to allow more customized looping in the future.
Re:Show HN: Handel – A procedural programming language for w...
by ddj231 on Tuesday January 05, 2021 @01:37PM
(#25649110)
Nice one!
I agree, it is still in its early stages.
Looking at your code it seems it would be useful to have a way to repeat a play command without a chunk.
I think something like: " play E4 for 1b rep 5 "
As a way to repeat something 5 times for example (and reduce duplicates) could be a future solution.
[0]: https://pastebin.com/9ziV0HRe
[1]: https://www.youtube.com/watch?v=3t9iLEkTeAk