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
Copy file name to clipboardexpand all lines: README.md
+20-6
Original file line number
Diff line number
Diff line change
@@ -65,23 +65,37 @@ Assuming you have [Boot](http://www.boot-clj.com) installed, try this on for siz
65
65
66
66
git clone git@github.com:alda-lang/alda.git
67
67
cd alda
68
-
boot play --file test/examples/awobmolg.alda
68
+
bin/alda play --file test/examples/awobmolg.alda
69
69
70
-
> NOTE: The first time you run the `boot play` task, you may need to wait a minute for the FluidR3 MIDI soundfont dependency (~141 MB) to download. Alda uses this soundfont in order to make your JVM's MIDI instruments sound a lot nicer. If you'd prefer to skip this step and use your JVM's default soundfont instead, include the `--stock` flag (i.e. `boot play --stock --file ...`).
70
+
> NOTE: The first time you run the `play` task, you may need to wait a minute for the FluidR3 MIDI soundfont dependency (~141 MB) to download. Alda uses this soundfont in order to make your JVM's MIDI instruments sound a lot nicer. If you'd prefer to skip this step and use your JVM's default soundfont instead, include the `--stock` flag (i.e. `play --stock --file ...`).
71
71
72
72
You can also execute arbitrary Alda code, like this:
73
73
74
-
boot play --code "piano: c6 d12 e6 g12~4"
74
+
bin/alda play --code "piano: c6 d12 e6 g12~4"
75
+
76
+
## Installation
77
+
78
+
The executable file `alda` in the `bin` directory of this repository is a standalone executable script that can be run from anywhere. It will retrieve the latest release version of Alda and run it, passing along any command-line arguments you give it.
79
+
80
+
This script requires the Clojure build tool [Boot](http://www.boot-clj.com), so you will need to have that installed first. Mac OS X users with [Homebrew](https://github.com/homebrew/homebrew) can run `brew install boot-clj` to install Boot.
81
+
82
+
To install Alda, simply copy the `alda` script into any directory in your `$PATH`, e.g. `/bin` or `/usr/local/bin`:
83
+
84
+
git clone git@github.com:alda-lang/alda.git
85
+
cd alda
86
+
cp bin/alda /usr/local/bin
87
+
88
+
You can now run `alda` from any working directory.
75
89
76
90
## alda.lisp
77
91
78
92
Under the hood, Alda transforms input (i.e. Alda code) into Clojure code which, when evaluated, produces a map of score information, which the audio component of Alda can then use to make sound. This Clojure code is written in a DSL called **alda.lisp**. See below for an example of alda.lisp code and the result of evaluating it.
79
93
80
94
### Parsing demo
81
95
82
-
You can use the `parse`Boot task to parse Alda code into alda.lisp (`-l`/`--lisp`) and/or evaluate it to produce a map (`-m`/`--map`) of score information.
96
+
You can use the `parse` task to parse Alda code into alda.lisp (`-l`/`--lisp`) and/or evaluate it to produce a map (`-m`/`--map`) of score information.
0 commit comments