Closed nblumoe closed 5 years ago
Oh nevermind. It works once I include the instrument:
piano: c
I was following along the tutorial on https://blog.djy.io/alda-a-manifesto-and-gentle-introduction/ and didn't expect an exception on the very first example (which is running c d e f
on the REPL without an instrument).
Hi @nblumoe , thanks for reporting this! I think sometime after I wrote that tutorial, I changed the API to make it less forgiving of not declaring an instrument, and some edges became rougher in the process. Sorry about that :)
I think the error message could be a lot nicer than ERROR null
, so I'll re-open this issue with the goal of improving the error message to make it clear what's going on.
Fixed via https://github.com/alda-lang/alda-sound-engine-clj/commit/f15392f8f0d05b1557a2fc9ca3d30e39d21d56a7.
It turns out that the problem was slightly different than I predicted. If you evaluate c
(i.e. a score with no instruments) now, you should see the behavior described in the tutorial: silence and no error message.
After starting the server:
And a REPL:
I tried to play a note, but ended up with an Exception:
My expectation was to hear the note playing.
I'm on macOS 10.14.4, Java info:
I have multiple MIDI devices available on the machine.
Happy to provider more logs/info as needed!