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
Right now, alda repl just uses Java-Clojure interop to run (alda.repl/start-repl!) which means you have to wait for the Clojure runtime to load, the MIDI system to initialize, and a new Alda score to be initialized.
The REPL is really just an interactive version of the Alda client, so now that we have a client, I think we should re-implement the Alda REPL in terms of the client. This would carry two major benefits:
Immediate start-up, no waiting for the Clojure runtime.
You would be interactively editing Alda scores running on existing servers. This would give you the flexibility to go back and forth between editing scores on the command-line (in your editor, etc.) and hopping into the Alda REPL to edit the same score.
Hopefully this won't be too difficult. The Alda client already does most of the things we need the REPL to do, and most of them are functions in the AldaServer class. Basically we'll just be translating the JLine interface into Java and have it call functions in the AldaServer class.
The text was updated successfully, but these errors were encountered:
Right now,
alda repl
just uses Java-Clojure interop to run(alda.repl/start-repl!)
which means you have to wait for the Clojure runtime to load, the MIDI system to initialize, and a new Alda score to be initialized.The REPL is really just an interactive version of the Alda client, so now that we have a client, I think we should re-implement the Alda REPL in terms of the client. This would carry two major benefits:
Hopefully this won't be too difficult. The Alda client already does most of the things we need the REPL to do, and most of them are functions in the AldaServer class. Basically we'll just be translating the JLine interface into Java and have it call functions in the AldaServer class.
The text was updated successfully, but these errors were encountered: