You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a universal problem or one that only affects Windows cmd and powershell. It seems that alda processes are not independent of the shell anymore, since if alda is doing something such as play a score from a file or open a REPL and I try and close the shell, it doesn't seem to let me right away.
I think the problem is best illustrated in the below recordings:
2021-10-22.00-27-37.mp4
(PowerShell)
2021-10-22.00-31-26.mp4
(Cmd)
Checking the task manager reveals that when I, say, play a score, the player processes are children of the shell:
The text was updated successfully, but these errors were encountered:
I think this is Windows-specific. I noticed something kind of similar when I was setting up the CI build for Windows, in that I had to disable the automatic spawning of player processes in order to get the build not to hang. My hunch is that the alda-player processes were being created as child processes of the terminal process, and the terminal process wasn't exiting because the player processes were still running.
Ideally, the player processes should be independent of the shell. On my Linux machine, I can run alda play -f /path/to/some-long-score.alda, and exit the terminal process, and I can still hear my score playing in the background. I can open a new terminal process and run alda stop to stop the playback.
My knowledge of Windows is lacking, so I would really appreciate any pointers about how to make the experience better here for Windows users!
I'm not sure if this is a universal problem or one that only affects Windows cmd and powershell. It seems that alda processes are not independent of the shell anymore, since if alda is doing something such as play a score from a file or open a REPL and I try and close the shell, it doesn't seem to let me right away.
I think the problem is best illustrated in the below recordings:
2021-10-22.00-27-37.mp4
(PowerShell)
2021-10-22.00-31-26.mp4
(Cmd)
Checking the task manager reveals that when I, say, play a score, the player processes are children of the shell:
The text was updated successfully, but these errors were encountered: