Why alda-player has an expiry ? And Why Shutdown alda-player when finish play a *.alda file ? #497
-
Q1: Why alda-player has an expiry and will stop its self ?I run a player process by
Then alda ps show the player processes:
I noticed there has a expiry columu 5 minutes later the alda player process will exit its self
Q2: Why shutdown alda-player when finish play a *.alda file ?
the alda-player process show this log and exit its self
Why this? I wanna a long life time running alda-player process, like a background service I can run many times of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 18 replies
-
The In normal use of Alda, you should never need to start a player process yourself via |
Beta Was this translation helpful? Give feedback.
Player processes are not intended to be long-lived, and you'll run into trouble if you try to use the same player process to play multiple scores. Once a player has played a score, it has that MIDI sequence "loaded" into its internal sequencer, and you could think of it as being in a "dirty" state.
What you're describing is a little involved, but it's actually already possible without needing to make any changes to Alda. Alda's REPL has a client/server architecture, which allows you to run a server on one machine, and send over the code you want to play from another machine.
Ordinarily, when you run
alda repl
, it starts a REPL server in the background, and it presents you with a REPL clie…