alda-lang / alda

A music programming language for musicians. :notes:
https://alda.io
Eclipse Public License 2.0
5.6k stars 288 forks source link

Alda in not printing #294

Closed dgrmunch closed 7 years ago

dgrmunch commented 7 years ago

This is the Alda code of my file song1.alda:

 (println "Start")
 piano:
   (schedule #(println "playing c")) c8
   (schedule #(println "playing d")) d
   (schedule #(println "playing e")) e
   (schedule #(println "playing f")) f
   (schedule #(println "playing g")) g2

If I write in my terminal alda play -f song1.alda the notes are played but the output result in the terminal is:

[27713] Parsing/evaluating...
[27713] Playing...
elydpg commented 7 years ago

iirc printout was removed awhile back. Also don't forget to read #293 before submitting an issue :)

daveyarwood commented 7 years ago

I've captured this issue here: https://github.com/alda-lang/alda-server-clj/issues/1

There is a detailed explanation in that issue, but the tl;dr is that Alda used to run as a single process, so printing the output was as simple as, well, printing the output. But then, the setup changed so that there is a client that the user interacts with, as well as a server and worker processes running in the background. The worker processes are the ones that evaluate your score, and they're running in the background, so we'll have to jump through some hoops to get the worker to send their output to the client and have the client print it.