(=% & xs)
Returns true if all arguments are within 0.01 of each other.
Returns true if all arguments are within 0.01 of each other.
(alda-home-path & segments)
Returns the path to a folder/file inside the Alda home directory, or the directory itself if no arguments are provided.
e.g. on a Unix system: (alda-home-path) => ~/.alda (alda-home-path "logs" "error.log") => ~/.alda/logs/error.log
e.g. on a Windows system:
(alda-home-path) => C:\dave.alda (alda-home-path "logs" "error.log") => C:\dave.alda\logs\error.log
Returns the path to a folder/file inside the Alda home directory, or the directory itself if no arguments are provided. e.g. on a Unix system: (alda-home-path) => ~/.alda (alda-home-path "logs" "error.log") => ~/.alda/logs/error.log e.g. on a Windows system: (alda-home-path) => C:\dave\.alda (alda-home-path "logs" "error.log") => C:\dave\.alda\logs\error.log
(parse-position position-str)
Convert a string denoting a position in a song into the appropriate type. For explicit timepoints this is a double denoting milliseconds, and for markers this is a keyword.
Convert a string denoting a position in a song into the appropriate type. For explicit timepoints this is a double denoting milliseconds, and for markers this is a keyword.
(parse-str-opts opts-str)
Transform string based keyword arguments into a regular map, eg. IN: "from 0:20 to :third-movement some-junk-at-end" OUT: {:from "0:20" :to ":third-movement"}
Transform string based keyword arguments into a regular map, eg. IN: "from 0:20 to :third-movement some-junk-at-end" OUT: {:from "0:20" :to ":third-movement"}
(parse-time time-str)
Convert a human readable duration into milliseconds, eg. "02:31" => 151 000
Convert a human readable duration into milliseconds, eg. "02:31" => 151 000
(pdoseq binding & body)
A fairly efficient hybrid of doseq
and pmap
A fairly efficient hybrid of `doseq` and `pmap`
(pdoseq-block binding & body)
A fairly efficient hybrid of doseq
and pmap
, that blocks.
If an error occurs on an async thread, it is rethrown on the main thread.
A fairly efficient hybrid of `doseq` and `pmap`, that blocks. If an error occurs on an async thread, it is rethrown on the main thread.
(program-path & [ns])
utility function to get the filename of jar in which this function is invoked (source: http://stackoverflow.com/a/13276993/2338327)
utility function to get the filename of jar in which this function is invoked (source: http://stackoverflow.com/a/13276993/2338327)
(strip-nil-values hsh)
Strip nil
values from a map.
Strip `nil` values from a map.
(while-let [binding test] & body)
Repeatedly executes body while test expression is true. Test expression is bound to binding.
(copied from boot.util)
Repeatedly executes body while test expression is true. Test expression is bound to binding. (copied from boot.util)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close