alda

WE'VE MOVED! Join us at: http://slack.alda.io
dave 2015-12-30T16:37:28.000036Z

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

dave 2015-12-30T16:37:55.000037Z

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

dave 2015-12-30T16:38:05.000038Z

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

dave 2015-12-30T16:38:52.000039Z

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

dave 2015-12-30T16:39:03.000040Z

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

dave 2015-12-30T16:55:59.000041Z

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

dave 2015-12-30T16:56:15.000042Z

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

aengelberg 2015-12-30T18:09:43.000043Z

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