Commit Graph

512 Commits

Author SHA1 Message Date
Dave Yarwood
6fdfe8fa6c Attempt at adding alda-code function to alda-lisp 2021-08-03 23:24:23 -04:00
Dave Yarwood
58029681f0 Gracefully handle the directory to be cleaned up not existing yet 2021-08-01 17:38:20 -04:00
Dave Yarwood
ad365a59ec Rename system/player_management.go => system/process_management.go 2021-08-01 17:28:28 -04:00
Dave Yarwood
e32e6dc85e 2.0.3: Include REPL servers in alda ps output 2021-08-01 17:25:36 -04:00
Dave Yarwood
840cf554eb Bugfix: don't attempt to write file if the directory doesn't exist yet 2021-08-01 17:21:07 -04:00
Dave Yarwood
1befa5f0b9 Clean up stale REPL server state files, too 2021-08-01 17:20:45 -04:00
Dave Yarwood
0cbd70334c alda doctor: test for the presence/absence of REPL server state file 2021-08-01 17:08:42 -04:00
Dave Yarwood
e67adb84c9 Alda REPL servers write state files 2021-08-01 17:05:46 -04:00
Dave Yarwood
6989003547 alda doctor: verify that players clean up their state files when they exit 2021-08-01 16:10:07 -04:00
Dave Yarwood
d766a75b5c Fix a bug where a duration in seconds at the end of an event sequence was causing a parse error 2021-07-31 23:29:58 -04:00
Dave Yarwood
5928f826b0 Update references to Go version 2021-07-31 17:58:12 -04:00
Dave Yarwood
823b711522 2.0.2: Fix "stale state" bug where Alda would occasionally attempt to use old player processes that are no longer running 2021-07-31 17:52:57 -04:00
David Lu
b8de9f9337 Reformat MusicXML importer test cases 2021-07-14 18:34:55 -04:00
David Lu
490107ab4c Reorganize MusicXML importer 2021-07-12 01:12:14 -04:00
Dave Yarwood
8b05f60a35 Merge branch 'ansi-escape-codes' 2021-07-05 12:20:51 -04:00
David Lu
968bce60b1 MusicXML Importer - Unpitched Percussion (#363) and Optimization (#364)
Add support for unpitched percussion instruments in MusicXML import and an optimization layer to generate more idiomatic Alda
2021-06-30 22:41:16 -04:00
Dave Yarwood
46f8775bee Merge branch 'master' into ansi-escape-codes 2021-06-30 21:12:03 -04:00
Dave Yarwood
c023e838ad Show an error message if you forget the -f in alda play -f some-file.alda 2021-06-30 21:09:05 -04:00
Dave Yarwood
4a07353cdf Only enable colors if the terminal is a TTY 2021-06-30 14:16:12 -04:00
Dave Yarwood
f97f205907 Make Alda REPL Server API part of the user-facing docs 2021-06-28 23:02:00 -04:00
Dave Yarwood
021af383c8 Hack to work around zerolog not supporting NO_COLOR 2021-06-28 11:05:06 -04:00
Dave Yarwood
ecb5aae370 Hack to work around aurora not supporting NO_COLOR 2021-06-28 11:04:48 -04:00
Dave Yarwood
c6f8949571 alda stop prints "Stopping playback." for visible feedback 2021-06-27 22:29:18 -04:00
David Lu
074a0b00f2 Added support for dynamic markings in MusicXML importer 2021-06-15 22:35:57 -04:00
David Lu
f78f9055ab Fixed tests 2021-06-06 21:09:55 -04:00
David Lu
c8afe42062 Added tests 2021-06-06 21:03:48 -04:00
David Lu
fc83d51db2 Fixed lisp early return with no arguments bug 2021-06-06 21:03:48 -04:00
David Lu
c7ec39fa06 Set Alda dynamic marking volumes 2021-06-06 21:03:48 -04:00
David Lu
320095a649 Added support for dynamic markings 2021-06-06 21:03:48 -04:00
Dave Yarwood
6bd3c3c0fb Gracefully handle "file not found" error when playing a score file 2021-06-06 20:41:10 -04:00
Dave Yarwood
506682a399 Don't apply global attribute changes immediately to the current parts
They will be applied right before those parts play their next
notes/rests/chords or right before they jump to a marker.
2021-06-06 20:30:45 -04:00
Dave Yarwood
4960e1b699 Add list function to alda-lisp 2021-06-06 20:24:38 -04:00
Dave Yarwood
4323b6c55d Improve/fix tests of global attribute changes being applied 2021-06-06 20:24:23 -04:00
Dave Yarwood
632be89a6c Bugfix: adjust when we do and don't apply global attributes
This improves things a bit with respect to global attributes being applied too
often. Usually you don't notice because we're just applying the same attribute
values multiple times, but it's particularly noticeable with things like
(octave! 'up).

I haven't quite 100% fixed the (octave! 'up) case yet. I think I also need to
make it so that global attribute changes don't immediately apply the attribute
change, because then it'll just get applied again right before the next
note/rest.
2021-06-06 20:23:50 -04:00
Dave Yarwood
93670d5bba Add quote special form 2021-06-06 16:49:31 -04:00
Dave Yarwood
12620f3996 Fix missing import (for side effects) of alda.io/client/testing 2021-06-06 16:12:53 -04:00
Dave Yarwood
95b5994c35 Extend the grace period for the player to complete one-off playback before being shut down 2021-06-05 15:00:56 -04:00
David Lu
a9eea8c1d6 MusicXML Importer - Refactor and Handling of Repeats (#356)
Refactored importer to encapsulate []model.ScoreUpdate modification and provide a standard interface for handlers to use. Added handling of repeats.
2021-06-01 12:41:13 -04:00
David Lu
9f550c6641 Merge pull request #355 from alda-lang/interop/musicxml-2
Refactored importer and added handling for various tags
2021-05-15 23:16:42 -04:00
David Lu
7fcd5047c1 Refactored MusicXML importer and added support for importing barlines, chords, ties, voices, slurs, dotted notes, and parts 2021-05-15 23:14:42 -04:00
Dave Yarwood
6b77a5affc Add -m, --message flag to alda repl to enable sending arbitrary messages to the server 2021-05-15 16:02:59 -04:00
Dave Yarwood
57bff9f0fb Extract a function that returns errors in server response; print to stderr 2021-05-15 16:01:52 -04:00
Dave Yarwood
4741999712 Add an option to disable automatic printing of errors in server responses 2021-05-15 16:00:44 -04:00
Dave Yarwood
06db5c2693 Revert "Expose public client.EvalAndPlay function"
This reverts commit ff5eeea646.
2021-05-15 09:49:56 -04:00
Dave Yarwood
ff5eeea646 Expose public client.EvalAndPlay function 2021-05-15 09:20:04 -04:00
Dave Yarwood
49a275e2fb Better user-facing error message when the REPL client fails to connect 2021-05-15 09:19:09 -04:00
Dave Yarwood
8af12432dd Automatically print errors in REPL server responses 2021-05-15 00:38:33 -04:00
Dave Yarwood
a991a27e82 Write .alda-nrepl-port file instead of .nrepl-port file
So as not to conflict with a Clojure nREPL server that might be running in the
same directory, e.g. when using alda-clj.
2021-05-14 23:31:23 -04:00
David Lu
c4e66518f9 Merge pull request #353 from alda-lang/interoperability/musicxml
Set up infrastructure for MusicXML importer and handling of basic tags
2021-05-01 20:06:18 -04:00
David Lu
6795bc6bf0 Set up preliminary musicxml importer 2021-05-01 20:01:46 -04:00