2018-10-13 00:45:42 +00:00
|
|
|
#+TITLE: Alda Layer
|
|
|
|
|
2020-04-18 19:28:14 +00:00
|
|
|
#+TAGS: layer|music|programming
|
2019-05-12 07:27:10 +00:00
|
|
|
|
2019-05-12 15:29:15 +00:00
|
|
|
[[file:img/alda.png]]
|
|
|
|
|
2019-05-15 18:10:07 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2019-05-12 07:27:10 +00:00
|
|
|
- [[#description][Description]]
|
|
|
|
- [[#features][Features:]]
|
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#key-bindings][Key bindings]]
|
|
|
|
|
2018-10-13 00:45:42 +00:00
|
|
|
* Description
|
|
|
|
Alda is a music composition language allowing music to easily be written and
|
|
|
|
edited in a text file.
|
|
|
|
|
2019-05-26 20:58:52 +00:00
|
|
|
This layer adds key bindings for =alda-mode='s functions, which allow Alda code
|
2018-10-13 00:45:42 +00:00
|
|
|
to be interpreted and played by the running Alda server. It will also start the
|
|
|
|
Alda server if it is not running.
|
|
|
|
|
|
|
|
** Features:
|
|
|
|
- Syntax highlighting for Alda files.
|
|
|
|
- Play portions of a buffer, or the entire buffer,
|
|
|
|
through a running Alda server.
|
|
|
|
|
|
|
|
* Install
|
|
|
|
Add =alda= to the =dotspacemacs-configuration-layers= list in =~/.spacemacs=.
|
|
|
|
You will also want to ensure that you have installed [[https://github.com/alda-lang/alda/releases][Alda]] so that =alda-mode=
|
|
|
|
can play your code.
|
|
|
|
|
|
|
|
* Key bindings
|
2019-05-12 07:27:10 +00:00
|
|
|
When alda-mode is active in an Alda file, you can use these key bindings:
|
2018-10-13 00:45:42 +00:00
|
|
|
|
2019-05-12 07:27:10 +00:00
|
|
|
| Key binding | Description |
|
2018-10-13 00:45:42 +00:00
|
|
|
|-------------+---------------------------------|
|
2019-05-12 15:31:01 +00:00
|
|
|
| ~SPC m b~ | Play the entire buffer |
|
2018-10-13 00:45:42 +00:00
|
|
|
| ~SPC m c~ | Play block (paragraph on point) |
|
2019-05-12 15:31:01 +00:00
|
|
|
| ~SPC m r~ | Play region (selected text) |
|
2018-10-13 00:45:42 +00:00
|
|
|
| ~SPC m n~ | Plays the current line |
|
|
|
|
|
|
|
|
Note that if the Alda server is not running, =alda-mode= will start the server,
|
|
|
|
and you will have to run the command again.
|