Skip to content

Why alda-player has an expiry ? And Why Shutdown alda-player when finish play a *.alda file ? #497

Answered by daveyarwood
yueyoum asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 18 replies

Comment options

You must be logged in to vote
18 replies
@yueyoum
Comment options

@daveyarwood
Comment options

Answer selected by yueyoum
@daveyarwood
Comment options

@yueyoum
Comment options

@daveyarwood
Comment options

@yueyoum
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants