A web app for annotating instances of voice-leading schemata. You can try the app here. Note that you will need a GitHub access token so that the app can use the GitHub API.
The app is meant to be used together with a data repository that contains scores, a schema lexicon, and potentially existing annotations or precomputed suggestions. An example of such a repository is our dataset of Mozart Piano Sonatas.
Install the Clojure CLI Tools.
This project uses figwheel-main
and has a deps.edn
project file with aliases configured accordingly.
To start a figwheel REPL with hot reloading, run
$ clj -A:fig
To use figwheel in CIDER, allow emacs to load the variables in .dir-locals
,
open one of the source files (e.g. /src/schema_annotation/core.cljs
),
and run cider-jack-in-cljs (C-C M-J)
(note the capital J
!).
This uses the :cider
alias defined in deps.edn
.
For deployment, use the following steps:
- Create a production build using
clj -A:prod
. - Copy
target/public/js/main.js
toresources/public/js/main.js
- Deploy the
resources/public/
directory.
Note: If you do this in your development directory,
don't forget to remove resources/public/js/main.js
when switching back to development builds.
Figwheel saves its output to target/public/js/main.js
,
but index.html
can't distinguish between files in target/public
and resources/public
.