Liking cljdoc? Tell your friends :D

score.beats

Functions for working with beat patterns and sets.

Functions for working with beat patterns and sets.
raw docstring

hex->patclj

(hex->pat hex-str)

Converts a hexadecimal string into a beat sequence of 1's and 0's. Each hex digit within the string generates 4 beats of values. 0 = 0000, 1 = 0001, 2 = 0010, ... f = 1111.

Converts a hexadecimal string into a beat sequence of 1's and 0's. Each hex digit within the string generates 4 beats of values.  0 = 0000, 1 = 0001, 2 = 0010, ... f = 1111.
sourceraw docstring

hex->setclj

(hex->set hex-str)

Converts a hexadecimal string into a beat set.

Converts a hexadecimal string into a beat set.
sourceraw docstring

hex->strclj

(hex->str hex-str)

Converts a hexadecimal string to binary string representation.

Converts a hexadecimal string to binary string representation.
sourceraw docstring

hexchar->strclj

(hexchar->str c)

Converts a hexadecimal char to 4-char binary string representation.

Converts a hexadecimal char to 4-char binary string representation.
sourceraw docstring

pat->setclj

(pat->set pat)

Converts a sequence of 1's and 0's into a beat set whose members includes the indices in the sequence where 1's are found. The set may then be used as a function to test whether a beat number should trigger an action or not.

Converts a sequence of 1's and 0's into a beat set whose
members includes the indices in the sequence where 1's are
found. The set may then be used as a function to test
whether a beat number should trigger an action or not.
sourceraw docstring

str->patclj

(str->pat beat-str)

Converts beat string of 1's and 0's to sequence of 1's and 0's.

Converts beat string of 1's and 0's to sequence of 1's and 0's.
sourceraw docstring

str->setclj

(str->set beat-str)

Converts beat string into beat set.

Converts beat string into beat set.
sourceraw docstring

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

× close