Fork me on GitHub
#alda
<
2015-12-30
>
dave16:12:28

hey @aengelberg ! yeah, my goal is for the alda CLI experience to be more like the REPL experience, while still having support for doing one-off, non-REPL-y things like playing files

dave16:12:55

there is a -r/--replace option for playing files/code without adding to the score in memory

dave16:12:05

e.g. alda play -r -f /tmp/score.alda

dave16:12:52

i'm actually pondering making -r the default, and instead having an option to append to the current score

dave16:12:03

i'm not sure which way would be more useful at this point

dave16:12:59

right now, alda is somewhat naïvely designed in that it relies on getting/setting top-level vars, which means it can only handle one "score" at a time. i'm planning on changing that soon and making it so that scores are self-contained. then maybe we could make it so the default behavior of alda play is to play the score without affecting the score in memory

dave16:12:15

perhaps there wouldn't even be a score in memory, unless you explicitly initialize one

aengelberg18:12:43

Thanks for the response @dave. I would argue that having alda play not affect the score in memory by default would be the better choice. Especially because the word "play" doesn't really imply any functionality other than playing a file. Maybe you could add a new command alda load / open / paste