Liking cljdoc? Tell your friends :D

edna.core


edna->aldaclj

(edna->alda content)

Converts from edna to alda format.

Converts from edna to alda format.
sourceraw docstring

edna->alda*cljmultimethod

The underlying multimethod for converting edna to alda. You probably don't need to use this.

The underlying multimethod for converting edna to alda. You probably don't need to use this.
sourceraw docstring

edna->data-uriclj

(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.

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.
sourceraw docstring

export!clj

(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.

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.
sourceraw docstring

play!clj

(play! content)

Takes edna content and plays it. Returns a score map, which can be used to stop it later.

Takes edna content and plays it. Returns a score map, which can be used to stop it later.
sourceraw docstring

stop!clj

(stop! score)

Stops the given score from playing. The score should be what was returned by play!.

Stops the given score from playing. The `score` should be what was returned by `play!`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close