torstenanders Posted January 5, 2019 Share Posted January 5, 2019 Opusmodus 1.2 can be used from within the Emacs editor as well (see the post at the link below for details). For me as a programmer having additionally access to the Emacs Lisp IDE SLIME is greatly preferable due to various advanced features provided by Slime when compared with the more easy-to-use native IDE of Opusmodus. For more information on SLIME see its website: https://common-lisp.net/project/slime Unfortunately, the SLIME link is seemingly broken in Opusmodus 1.3, which I just started for the first time. For those who have no SLIME installed (but have Quicklisp set up), SLIME can be installed with the following command. (ql:quickload "quicklisp-slime-helper") Unfortunately, this results now in an error. To load "quicklisp-slime-helper": Load 1 ASDF system: quicklisp-slime-helper ; Loading "quicklisp-slime-helper" .. > Error: Undefined function asdf/interface::operation-forced called with arguments (#<load-op>) . > While executing: #<standard-method asdf/action:perform (asdf/lisp-action:load-op swank-loader::swank-loader-file)>, in process Listener-2(9). > Type cmd-/ to continue, cmd-. to abort, cmd-\ for a list of available restarts. > If continued: Retry applying asdf/interface::operation-forced to (#<load-op>). > Type :? for other options. I already had SLIME installed, but simply running it does not work either and results in the same error. (cl-user::start-swank) ? To load "swank": Load 1 ASDF system: swank ; Loading "swank" . > Error: Undefined function asdf/interface::operation-forced called with arguments (#<load-op>) . > While executing: #<standard-method asdf/action:perform (asdf/lisp-action:load-op swank-loader::swank-loader-file)>, in process Listener-2(9). > Type cmd-/ to continue, cmd-. to abort, cmd-\ for a list of available restarts. > If continued: Retry applying asdf/interface::operation-forced to (#<load-op>). > Type :? for other options. Any help? Thanks a lot! Best, Torsten Quote Link to comment Share on other sites More sharing options...
torstenanders Posted January 5, 2019 Author Share Posted January 5, 2019 EDIT: I fixed the problem by updating the Lisp side of SLIME manually, as the SLIME version in Quicklisp is quite old (20150709). Best, Torsten Quote Link to comment Share on other sites More sharing options...
Avner Dorman Posted June 23, 2020 Share Posted June 23, 2020 Following up on this - is there a way to have Opusmodus work within a Jupyter notebook? I think it would be very useful in educational settings. I know there are lisp implementations that work in Jupyter: fredokun/cl-jupyter GITHUB.COM An enhanced interactive Shell for Common Lisp (based on the Jupyter protocol) - fredokun/cl-jupyter - but is there a way to include Opusmodus as well? At least the functions and notation? Quote Link to comment Share on other sites More sharing options...
opmo Posted June 24, 2020 Share Posted June 24, 2020 Quote Link to comment Share on other sites More sharing options...
torstenanders Posted June 27, 2020 Author Share Posted June 27, 2020 On 6/23/2020 at 3:10 PM, Avner Dorman said: Following up on this - is there a way to have Opusmodus work within a Jupyter notebook? I think it would be very useful in educational settings. I know there are lisp implementations that work in Jupyter: fredokun/cl-jupyter GITHUB.COM An enhanced interactive Shell for Common Lisp (based on the Jupyter protocol) - fredokun/cl-jupyter - but is there a way to include Opusmodus as well? At least the functions and notation? If your goal is for you as a teacher to create documents for your students to read containing Common Lisp and Opusmodus code, and where you want to evaluate the code directly from within that document, then Org mode with embedded Common Lisp + Slime is your friend. This is a very powerful combination, that can automatically create nice slides (with the LaTeX beamer interface), embed music notation (Lilypond) etc. I used this combination for years for teaching, had then all sessions of a course in a single document for easily moving content around etc. Nevertheless, you likely do not want to introduce your students to use Org mode... For that, Jupyter notebooks (or plain Opusmodus) will be more easy for the students. Org mode for Emacs – Your Life in Plain Text ORGMODE.ORG Org: an Emacs Mode for Notes, Planning, and Authoring Babel: active code in Org-mode ORGMODE.ORG However, I don't know of a way to automatically embed music notation output of Opusmodus in Emacs Org mode. What is missing for that, AFAIK, is some Opusmodus function that automatically creates a graphic file for a given snippet or score. If that would be there, that feature shouldn't be too hard to add (other Org mode babel programming language interfaces do already similar things, e.g., Lilypond, and the code for that is freely available). Avner Dorman and Stephane Boussuge 2 Quote Link to comment Share on other sites More sharing options...
Avner Dorman Posted June 28, 2020 Share Posted June 28, 2020 Thank you so much Torsten, I will definitely look at orgmode! All the best, Avner Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.