edna.core
edna->alda*
The underlying multimethod for converting edna to alda. You probably don't need to use this.
(edna->data-uri content)
(edna->data-uri content opts)
Turns the edna content into a data URI for use in browsers. The opts map can contain:
:soundbank - A javax.sound.midi.Soundbank object, or nil to use the JVM's built-in one
(optional, defaults to a soundbank included in this library)
:format - A javax.sound.sampled.AudioFormat object
(optional, defaults to one with 44100 Hz)
Note: If you want to use the sound font installed on your system, rather than the one
built into edna, include `:soundbank nil` in your opts map.
(export! content opts)
Takes edna content and exports it, returning the value of :out. The opts map can contain:
:type - :midi, :wav, or :mp3 (required)
:out - A java.io.OutputStream or java.io.File object
(optional, defaults to a ByteArrayOutputStream)
:soundbank - A javax.sound.midi.Soundbank object, or nil to use the JVM's built-in one
(optional, defaults to a soundbank included in this library)
:format - A javax.sound.sampled.AudioFormat object
(optional, defaults to one with 44100 Hz)
Note: If you want to use the sound font installed on your system, rather than the one
built into edna, include `:soundbank nil` in your opts map.
(play! content)
Takes edna content and plays it. Returns a score map, which can be used to stop it later.
(stop! score)
Stops the given score from playing. The `score` should be what was returned by `play!`.