Liking cljdoc? Tell your friends :D

score.freq


analyze-intervalsclj

(analyze-intervals chord)

Creates an interval list from a pch chord

Creates an interval list from a pch chord
sourceraw docstring

cents->scalerclj

(cents->scaler cents)

Converts the cents into a scaler value 2^(cents/1200).

Translated from Common Music.

Converts the cents into a scaler value 2^(cents/1200). 

Translated from Common Music.
sourceraw docstring

hertzclj

(hertz a)

General function for converting value a to frequency. It will convert keywords, MIDI note numbers, PCH, strings, and symbols.

General function for converting value a to frequency.  It will convert
keywords, MIDI note numbers, PCH, strings, and symbols.
sourceraw docstring

invertclj

(invert [base-pch & more :as pchs] inversion)

Inverts a list of pchs given the version number

Inverts a list of pchs given the version number
sourceraw docstring

keynumclj

(keynum a)

General function for converting value a to MIDI notenumber. It will convert keywords, PCH, strings, and symbols, and return any other value. Assumes PCH is 12 TET with [8 0] as Middle-C (MIDI Note 60).

General function for converting value a to MIDI notenumber.  It will convert
keywords, PCH, strings, and symbols, and return any other value. Assumes PCH 
is 12 TET with [8 0] as Middle-C (MIDI Note 60).
sourceraw docstring

keyword->freqclj

(keyword->freq sym)

Convert keyword or symbol to frequency (i.e. :A4 is 440.0)

Convert keyword or symbol to frequency (i.e. :A4 is 440.0)
sourceraw docstring

keyword->notenumclj

(keyword->notenum sym)

Converts keyword or symbol to MIDI notenum (i.e. :C4 is 60, :Cs4 is 61)

Converts keyword or symbol to MIDI notenum (i.e. :C4 is 60, :Cs4 is 61)
sourceraw docstring

midi->freqclj

(midi->freq notenum)

Convert MIDI Note number to frequency in hertz

Convert MIDI Note number to frequency in hertz
sourceraw docstring

pch->freqclj

(pch->freq pch)

Converts PCH to frequency. [8 0] is equivalent to Middle-C (MIDI Note 60), which is equivalent to :C4. Assumes 12 scale degrees per octave (12 TET).

Converts PCH to frequency. [8 0] is equivalent to Middle-C (MIDI Note 60),
which is equivalent to :C4.  Assumes 12 scale degrees per octave (12 TET).
sourceraw docstring

pch->notenumclj

(pch->notenum pch)
(pch->notenum [oct scale-degree] scale-degrees)

Converts PCH notation to note number. Optional number of scale degrees per octave, defaults to 12.

Converts PCH notation to note number. Optional number of
scale degrees per octave, defaults to 12.
sourceraw docstring

pch->scoclj

(pch->sco [a b])

Converts PCH notation to Csound-style pch string.

Converts PCH notation to Csound-style pch string.
sourceraw docstring

pch-addclj

(pch-add pch interval)
(pch-add pch interval scale-degrees)

Add interval to pch (i.e. [8 0] 11 => [8 11]). Defaults to 12-tone octave.

Add interval to pch (i.e. [8 0] 11 => [8 11]). Defaults to 12-tone octave.
sourceraw docstring

pch-diffclj

(pch-diff pch1 pch2)
(pch-diff pch1 pch2 scale-degrees)

Return the interval between two pitches (i.e. [8 0] [9 1] => 13). Defaults to 12-tone octave.

Return the interval between two pitches (i.e. [8 0] [9 1] => 13). Defaults
to 12-tone octave.
sourceraw docstring

pch-interval-scoclj

(pch-interval-sco pch intervals)
(pch-interval-sco pch intervals scale-degrees)

Given a base PCH pch and sequence of intervals x, generates a sequence of Csound pch strings. For example, (pch-interval-seq [8 0] [1 -2]) will yield ("8.0" "8.01" "7.11").

Given a base PCH pch and sequence of intervals x, generates a sequence of Csound pch strings.  For
example, (pch-interval-seq [8 0] [1 -2]) will yield ("8.0" "8.01" "7.11").
sourceraw docstring

pch-interval-seqclj

(pch-interval-seq pch x)
(pch-interval-seq pch x scale-degrees)

Given a base PCH pch and sequence of intervals x, generates a sequence of PCH's. For example, (pch-interval-seq [8 0] [1 -2]) will yield ([8 0] [8 1] [7 11]).

Given a base PCH pch and sequence of intervals x, generates a sequence of PCH's.  For
example, (pch-interval-seq [8 0] [1 -2]) will yield ([8 0] [8 1] [7 11]).
sourceraw docstring

scaler->centsclj

(scaler->cents scalar)

Converts a scaler into a cents value 1200*log2(ratio).

Translated from Common Music.

Converts a scaler into a cents value 1200*log2(ratio). 

Translated from Common Music.
sourceraw docstring

str->freqclj

(str->freq sym)

Convert string to frequency (i.e. "A4" is 440.0)

Convert string to frequency (i.e. "A4" is 440.0)
sourceraw docstring

str->notenumclj

(str->notenum sym)

Converts string to MIDI notenum (i.e. "C4" is 60, "Cs4" is 61)

Converts string to MIDI notenum (i.e. "C4" is 60, "Cs4" is 61)
sourceraw docstring

sym->freqclj

(sym->freq sym)

Convert keyword or symbol to frequency (i.e. :A4 is 440.0)

Convert keyword or symbol to frequency (i.e. :A4 is 440.0)
sourceraw docstring

sym->notenumclj

(sym->notenum sym)

Converts keyword or symbol to MIDI notenum (i.e. :C4 is 60, :C#4 is 61).

Converts keyword or symbol to MIDI notenum (i.e. :C4 is 60, :C#4 is 61).
sourceraw docstring

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

× close