Liking cljdoc? Tell your friends :D
Clojure only.

noon.harmony


->hc-updateclj

(->hc-update x)

Turn x into an harmonic context update x can be either:

  • nil which represent the identity update.
  • a function from context to context.
  • another context that will replace the received one preserving its current pitch.
  • a vector is interpreted as a sequence of successive updates.
Turn `x` into an harmonic context update
`x` can be either:
 - nil which represent the identity update.
 - a function from context to context.
 - another context that will replace the received one preserving its current pitch.
 - a vector is interpreted as a sequence of successive updates.
raw docstring

-def-wrappedcljmacro

(-def-wrapped wrapper m)

A#-1clj

Change the :origin of received context to A#-1.

Change the :origin of received context to A#-1.
raw docstring

A#-2clj

Change the :origin of received context to A#-2.

Change the :origin of received context to A#-2.
raw docstring

A#-3clj

Change the :origin of received context to A#-3.

Change the :origin of received context to A#-3.
raw docstring

A#-4clj

Change the :origin of received context to A#-4.

Change the :origin of received context to A#-4.
raw docstring

A#-5clj

Change the :origin of received context to A#-5.

Change the :origin of received context to A#-5.
raw docstring

A#0clj

Change the :origin of received context to A#0.

Change the :origin of received context to A#0.
raw docstring

A#1clj

Change the :origin of received context to A#1.

Change the :origin of received context to A#1.
raw docstring

A#2clj

Change the :origin of received context to A#2.

Change the :origin of received context to A#2.
raw docstring

A#3clj

Change the :origin of received context to A#3.

Change the :origin of received context to A#3.
raw docstring

A#4clj

Change the :origin of received context to A#4.

Change the :origin of received context to A#4.
raw docstring

A-1clj

Change the :origin of received context to A-1.

Change the :origin of received context to A-1.
raw docstring

A-2clj

Change the :origin of received context to A-2.

Change the :origin of received context to A-2.
raw docstring

A-3clj

Change the :origin of received context to A-3.

Change the :origin of received context to A-3.
raw docstring

A-4clj

Change the :origin of received context to A-4.

Change the :origin of received context to A-4.
raw docstring

A-5clj

Change the :origin of received context to A-5.

Change the :origin of received context to A-5.
raw docstring

A0clj

Change the :origin of received context to A0.

Change the :origin of received context to A0.
raw docstring

A1clj

Change the :origin of received context to A1.

Change the :origin of received context to A1.
raw docstring

A2clj

Change the :origin of received context to A2.

Change the :origin of received context to A2.
raw docstring

A3clj

Change the :origin of received context to A3.

Change the :origin of received context to A3.
raw docstring

A4clj

Change the :origin of received context to A4.

Change the :origin of received context to A4.
raw docstring

Ab-1clj

Change the :origin of received context to Ab-1.

Change the :origin of received context to Ab-1.
raw docstring

Ab-2clj

Change the :origin of received context to Ab-2.

Change the :origin of received context to Ab-2.
raw docstring

Ab-3clj

Change the :origin of received context to Ab-3.

Change the :origin of received context to Ab-3.
raw docstring

Ab-4clj

Change the :origin of received context to Ab-4.

Change the :origin of received context to Ab-4.
raw docstring

Ab-5clj

Change the :origin of received context to Ab-5.

Change the :origin of received context to Ab-5.
raw docstring

Ab0clj

Change the :origin of received context to Ab0.

Change the :origin of received context to Ab0.
raw docstring

Ab1clj

Change the :origin of received context to Ab1.

Change the :origin of received context to Ab1.
raw docstring

Ab2clj

Change the :origin of received context to Ab2.

Change the :origin of received context to Ab2.
raw docstring

Ab3clj

Change the :origin of received context to Ab3.

Change the :origin of received context to Ab3.
raw docstring

Ab4clj

Change the :origin of received context to Ab4.

Change the :origin of received context to Ab4.
raw docstring

Abb-1clj

Change the :origin of received context to Abb-1.

Change the :origin of received context to Abb-1.
raw docstring

Abb-2clj

Change the :origin of received context to Abb-2.

Change the :origin of received context to Abb-2.
raw docstring

Abb-3clj

Change the :origin of received context to Abb-3.

Change the :origin of received context to Abb-3.
raw docstring

Abb-4clj

Change the :origin of received context to Abb-4.

Change the :origin of received context to Abb-4.
raw docstring

Abb-5clj

Change the :origin of received context to Abb-5.

Change the :origin of received context to Abb-5.
raw docstring

Abb0clj

Change the :origin of received context to Abb0.

Change the :origin of received context to Abb0.
raw docstring

Abb1clj

Change the :origin of received context to Abb1.

Change the :origin of received context to Abb1.
raw docstring

Abb2clj

Change the :origin of received context to Abb2.

Change the :origin of received context to Abb2.
raw docstring

Abb3clj

Change the :origin of received context to Abb3.

Change the :origin of received context to Abb3.
raw docstring

Abb4clj

Change the :origin of received context to Abb4.

Change the :origin of received context to Abb4.
raw docstring

Abb5clj

Change the :origin of received context to Abb5.

Change the :origin of received context to Abb5.
raw docstring

add2clj

Change the :structure of received context to :add2.

Change the :structure of received context to :add2.
raw docstring

add4clj

Change the :structure of received context to :add4.

Change the :structure of received context to :add4.
raw docstring

additive-mergeclj


aeolianclj

Change the :scale of received context to :aeolian.

Change the :scale of received context to :aeolian.
raw docstring

alignclj

(align layer a b)

Align position of context b on context a's position, rounding on the given layer. Useful when writing harmonic or melodic sequences that traverse several contexts.

Align position of context `b` on context `a`'s position, rounding on the given `layer`.
Useful when writing harmonic or melodic sequences that traverse several contexts.
raw docstring

all-passingsclj


Ax-1clj

Change the :origin of received context to Ax-1.

Change the :origin of received context to Ax-1.
raw docstring

Ax-2clj

Change the :origin of received context to Ax-2.

Change the :origin of received context to Ax-2.
raw docstring

Ax-3clj

Change the :origin of received context to Ax-3.

Change the :origin of received context to Ax-3.
raw docstring

Ax-4clj

Change the :origin of received context to Ax-4.

Change the :origin of received context to Ax-4.
raw docstring

Ax-5clj

Change the :origin of received context to Ax-5.

Change the :origin of received context to Ax-5.
raw docstring

Ax0clj

Change the :origin of received context to Ax0.

Change the :origin of received context to Ax0.
raw docstring

Ax1clj

Change the :origin of received context to Ax1.

Change the :origin of received context to Ax1.
raw docstring

Ax2clj

Change the :origin of received context to Ax2.

Change the :origin of received context to Ax2.
raw docstring

Ax3clj

Change the :origin of received context to Ax3.

Change the :origin of received context to Ax3.
raw docstring

Ax4clj

Change the :origin of received context to Ax4.

Change the :origin of received context to Ax4.
raw docstring

B#-1clj

Change the :origin of received context to B#-1.

Change the :origin of received context to B#-1.
raw docstring

B#-2clj

Change the :origin of received context to B#-2.

Change the :origin of received context to B#-2.
raw docstring

B#-3clj

Change the :origin of received context to B#-3.

Change the :origin of received context to B#-3.
raw docstring

B#-4clj

Change the :origin of received context to B#-4.

Change the :origin of received context to B#-4.
raw docstring

B#-5clj

Change the :origin of received context to B#-5.

Change the :origin of received context to B#-5.
raw docstring

B#0clj

Change the :origin of received context to B#0.

Change the :origin of received context to B#0.
raw docstring

B#1clj

Change the :origin of received context to B#1.

Change the :origin of received context to B#1.
raw docstring

B#2clj

Change the :origin of received context to B#2.

Change the :origin of received context to B#2.
raw docstring

B#3clj

Change the :origin of received context to B#3.

Change the :origin of received context to B#3.
raw docstring

B#4clj

Change the :origin of received context to B#4.

Change the :origin of received context to B#4.
raw docstring

B-1clj

Change the :origin of received context to B-1.

Change the :origin of received context to B-1.
raw docstring

B-2clj

Change the :origin of received context to B-2.

Change the :origin of received context to B-2.
raw docstring

B-3clj

Change the :origin of received context to B-3.

Change the :origin of received context to B-3.
raw docstring

B-4clj

Change the :origin of received context to B-4.

Change the :origin of received context to B-4.
raw docstring

B-5clj

Change the :origin of received context to B-5.

Change the :origin of received context to B-5.
raw docstring

B0clj

Change the :origin of received context to B0.

Change the :origin of received context to B0.
raw docstring

B1clj

Change the :origin of received context to B1.

Change the :origin of received context to B1.
raw docstring

B2clj

Change the :origin of received context to B2.

Change the :origin of received context to B2.
raw docstring

B3clj

Change the :origin of received context to B3.

Change the :origin of received context to B3.
raw docstring

B4clj

Change the :origin of received context to B4.

Change the :origin of received context to B4.
raw docstring

Bb-1clj

Change the :origin of received context to Bb-1.

Change the :origin of received context to Bb-1.
raw docstring

Bb-2clj

Change the :origin of received context to Bb-2.

Change the :origin of received context to Bb-2.
raw docstring

Bb-3clj

Change the :origin of received context to Bb-3.

Change the :origin of received context to Bb-3.
raw docstring

Bb-4clj

Change the :origin of received context to Bb-4.

Change the :origin of received context to Bb-4.
raw docstring

Bb-5clj

Change the :origin of received context to Bb-5.

Change the :origin of received context to Bb-5.
raw docstring

Bb0clj

Change the :origin of received context to Bb0.

Change the :origin of received context to Bb0.
raw docstring

Bb1clj

Change the :origin of received context to Bb1.

Change the :origin of received context to Bb1.
raw docstring

Bb2clj

Change the :origin of received context to Bb2.

Change the :origin of received context to Bb2.
raw docstring

Bb3clj

Change the :origin of received context to Bb3.

Change the :origin of received context to Bb3.
raw docstring

Bb4clj

Change the :origin of received context to Bb4.

Change the :origin of received context to Bb4.
raw docstring

Bbb-1clj

Change the :origin of received context to Bbb-1.

Change the :origin of received context to Bbb-1.
raw docstring

Bbb-2clj

Change the :origin of received context to Bbb-2.

Change the :origin of received context to Bbb-2.
raw docstring

Bbb-3clj

Change the :origin of received context to Bbb-3.

Change the :origin of received context to Bbb-3.
raw docstring

Bbb-4clj

Change the :origin of received context to Bbb-4.

Change the :origin of received context to Bbb-4.
raw docstring

Bbb-5clj

Change the :origin of received context to Bbb-5.

Change the :origin of received context to Bbb-5.
raw docstring

Bbb0clj

Change the :origin of received context to Bbb0.

Change the :origin of received context to Bbb0.
raw docstring

Bbb1clj

Change the :origin of received context to Bbb1.

Change the :origin of received context to Bbb1.
raw docstring

Bbb2clj

Change the :origin of received context to Bbb2.

Change the :origin of received context to Bbb2.
raw docstring

Bbb3clj

Change the :origin of received context to Bbb3.

Change the :origin of received context to Bbb3.
raw docstring

Bbb4clj

Change the :origin of received context to Bbb4.

Change the :origin of received context to Bbb4.
raw docstring

bdsclj

(bds seq mod)

Bidirectional lazy sequence. seq is the base starting forward sequence. mod is the interval of repetition of seq. example: (bds [0 2 4] 5) {:fw (0 2 4 5 7 9 10 12 14 15 ...), :bw (0 -1 -3 -5 -6 -8 -10 -11 -13 -15...)}

Bidirectional lazy sequence.
`seq` is the base starting forward sequence.
`mod` is the interval of repetition of `seq`.
example:
(bds [0 2 4] 5)
{:fw (0 2 4 5 7 9 10 12 14 15 ...),
 :bw (0 -1 -3 -5 -6 -8 -10 -11 -13 -15...)}
raw docstring

bds-getclj

(bds-get bds idx)

Access bds value at index idx, neg idxs go backward.

Access `bds` value at index `idx`, neg idxs go backward.
raw docstring

bds-goclj

(bds-go bds val)

Shift the bds to the given val, ignoring reminder.

Shift the `bds` to the given `val`, ignoring reminder.
raw docstring

bds-idxclj

(bds-idx {:keys [fw bw] :as _bds} v)

Return the index of the given value v and the reminder in a vector: [idx rem]

Return the index of the given value `v` and the reminder in a vector: `[idx rem]`
raw docstring

bds-shiftclj

(bds-shift bds idx)

Shift a bidirectional seq bds by the given idx.

Shift a bidirectional seq `bds` by the given `idx`.
raw docstring

Bx-1clj

Change the :origin of received context to Bx-1.

Change the :origin of received context to Bx-1.
raw docstring

Bx-2clj

Change the :origin of received context to Bx-2.

Change the :origin of received context to Bx-2.
raw docstring

Bx-3clj

Change the :origin of received context to Bx-3.

Change the :origin of received context to Bx-3.
raw docstring

Bx-4clj

Change the :origin of received context to Bx-4.

Change the :origin of received context to Bx-4.
raw docstring

Bx-5clj

Change the :origin of received context to Bx-5.

Change the :origin of received context to Bx-5.
raw docstring

Bx0clj

Change the :origin of received context to Bx0.

Change the :origin of received context to Bx0.
raw docstring

Bx1clj

Change the :origin of received context to Bx1.

Change the :origin of received context to Bx1.
raw docstring

Bx2clj

Change the :origin of received context to Bx2.

Change the :origin of received context to Bx2.
raw docstring

Bx3clj

Change the :origin of received context to Bx3.

Change the :origin of received context to Bx3.
raw docstring

Bx4clj

Change the :origin of received context to Bx4.

Change the :origin of received context to Bx4.
raw docstring

C#-1clj

Change the :origin of received context to C#-1.

Change the :origin of received context to C#-1.
raw docstring

C#-2clj

Change the :origin of received context to C#-2.

Change the :origin of received context to C#-2.
raw docstring

C#-3clj

Change the :origin of received context to C#-3.

Change the :origin of received context to C#-3.
raw docstring

C#-4clj

Change the :origin of received context to C#-4.

Change the :origin of received context to C#-4.
raw docstring

C#-5clj

Change the :origin of received context to C#-5.

Change the :origin of received context to C#-5.
raw docstring

C#0clj

Change the :origin of received context to C#0.

Change the :origin of received context to C#0.
raw docstring

C#1clj

Change the :origin of received context to C#1.

Change the :origin of received context to C#1.
raw docstring

C#2clj

Change the :origin of received context to C#2.

Change the :origin of received context to C#2.
raw docstring

C#3clj

Change the :origin of received context to C#3.

Change the :origin of received context to C#3.
raw docstring

C#4clj

Change the :origin of received context to C#4.

Change the :origin of received context to C#4.
raw docstring

C#5clj

Change the :origin of received context to C#5.

Change the :origin of received context to C#5.
raw docstring

C-1clj

Change the :origin of received context to C-1.

Change the :origin of received context to C-1.
raw docstring

C-2clj

Change the :origin of received context to C-2.

Change the :origin of received context to C-2.
raw docstring

C-3clj

Change the :origin of received context to C-3.

Change the :origin of received context to C-3.
raw docstring

C-4clj

Change the :origin of received context to C-4.

Change the :origin of received context to C-4.
raw docstring

C-5clj

Change the :origin of received context to C-5.

Change the :origin of received context to C-5.
raw docstring

c->dclj

(c->d {{:keys [s d c]} :position :as ctx})

Feed as much as possible of the c value into the d value.

Feed as much as possible of the c value into the d value.
raw docstring

c->sclj

(c->s ctx)

Feed as much as possible of the c value into the d value and s value.

Feed as much as possible of the c value into the d value and s value.
raw docstring

c->tclj

(c->t ctx)

Feed as much as possible of the c value to the upward layers.

Feed as much as possible of the c value to the upward layers.
raw docstring

c-positionclj

Build a chromatic position update. takes 0 or 1 arguments: c: chromatic layer offset.

Build a chromatic position update.
takes 0 or 1 arguments:
c: chromatic layer offset.
raw docstring

c-shiftclj

Builds a chromatic shift update. see noon.harmony/layer-shift documentation.

Builds a chromatic shift update. see `noon.harmony/layer-shift` documentation.
raw docstring

c-stepclj

(c-step n)

Build a chromatic step update, which adds n to the given context's position's chromatic layer offset.

Build a chromatic step update, which adds `n` to the given context's position's chromatic layer offset.
raw docstring

C0clj

Change the :origin of received context to C0.

Change the :origin of received context to C0.
raw docstring

c0clj


C1clj

Change the :origin of received context to C1.

Change the :origin of received context to C1.
raw docstring

c1clj


c1-clj


c10clj


c10-clj


c11clj


c11-clj


c12clj


c12-clj


c13clj


c13-clj


c14clj


c14-clj


c15clj


c15-clj


c16clj


c16-clj


c17clj


c17-clj


c18clj


c18-clj


c19clj


c19-clj


C2clj

Change the :origin of received context to C2.

Change the :origin of received context to C2.
raw docstring

c2clj


c2-clj


c20clj


c20-clj


c21clj


c21-clj


c22clj


c22-clj


c23clj


c23-clj


c24clj


c24-clj


c25clj


c25-clj


c26clj


c26-clj


c27clj


c27-clj


c28clj


c28-clj


c29clj


c29-clj


C3clj

Change the :origin of received context to C3.

Change the :origin of received context to C3.
raw docstring

c3clj


c3-clj


c30clj


c30-clj


c31clj


c31-clj


c32clj


c32-clj


c33clj


c33-clj


c34clj


c34-clj


c35clj


c35-clj


c36clj


c36-clj


c4clj


C4clj

Change the :origin of received context to C4.

Change the :origin of received context to C4.
raw docstring

c4-clj


C5clj

Change the :origin of received context to C5.

Change the :origin of received context to C5.
raw docstring

c5clj


c5-clj


c6clj


c6-clj


c7clj


c7-clj


c8clj


c8-clj


c9clj


c9-clj


Cb-1clj

Change the :origin of received context to Cb-1.

Change the :origin of received context to Cb-1.
raw docstring

Cb-2clj

Change the :origin of received context to Cb-2.

Change the :origin of received context to Cb-2.
raw docstring

Cb-3clj

Change the :origin of received context to Cb-3.

Change the :origin of received context to Cb-3.
raw docstring

Cb-4clj

Change the :origin of received context to Cb-4.

Change the :origin of received context to Cb-4.
raw docstring

Cb0clj

Change the :origin of received context to Cb0.

Change the :origin of received context to Cb0.
raw docstring

Cb1clj

Change the :origin of received context to Cb1.

Change the :origin of received context to Cb1.
raw docstring

Cb2clj

Change the :origin of received context to Cb2.

Change the :origin of received context to Cb2.
raw docstring

Cb3clj

Change the :origin of received context to Cb3.

Change the :origin of received context to Cb3.
raw docstring

Cb4clj

Change the :origin of received context to Cb4.

Change the :origin of received context to Cb4.
raw docstring

Cb5clj

Change the :origin of received context to Cb5.

Change the :origin of received context to Cb5.
raw docstring

Cbb-1clj

Change the :origin of received context to Cbb-1.

Change the :origin of received context to Cbb-1.
raw docstring

Cbb-2clj

Change the :origin of received context to Cbb-2.

Change the :origin of received context to Cbb-2.
raw docstring

Cbb-3clj

Change the :origin of received context to Cbb-3.

Change the :origin of received context to Cbb-3.
raw docstring

Cbb-4clj

Change the :origin of received context to Cbb-4.

Change the :origin of received context to Cbb-4.
raw docstring

Cbb0clj

Change the :origin of received context to Cbb0.

Change the :origin of received context to Cbb0.
raw docstring

Cbb1clj

Change the :origin of received context to Cbb1.

Change the :origin of received context to Cbb1.
raw docstring

Cbb2clj

Change the :origin of received context to Cbb2.

Change the :origin of received context to Cbb2.
raw docstring

Cbb3clj

Change the :origin of received context to Cbb3.

Change the :origin of received context to Cbb3.
raw docstring

Cbb4clj

Change the :origin of received context to Cbb4.

Change the :origin of received context to Cbb4.
raw docstring

Cbb5clj

Change the :origin of received context to Cbb5.

Change the :origin of received context to Cbb5.
raw docstring

chain-updateclj

(chain-update xs)

chromatic-connectionclj

(chromatic-connection hc1 hc2)

chromatic-distanceclj

(chromatic-distance ctx1 ctx2)

Return the chromatic distance between two contexts.

Return the chromatic distance between two contexts.
raw docstring

connectionsclj

(connections hc1 hc2)

For each layer, computes the ctxs between hc1 and hc2 returns a map of kind {layer intermediate-ctxs} layer: :t | :s | :d | :c intermediate-ctxs: sorted ctxs that are between hc1 and hc2 on the corresponding layer.

For each layer, computes the ctxs between hc1 and hc2
returns a map of kind {layer intermediate-ctxs}
layer: :t | :s | :d | :c
intermediate-ctxs: sorted ctxs that are between hc1 and hc2 on the corresponding layer.
raw docstring

Cx-1clj

Change the :origin of received context to Cx-1.

Change the :origin of received context to Cx-1.
raw docstring

Cx-2clj

Change the :origin of received context to Cx-2.

Change the :origin of received context to Cx-2.
raw docstring

Cx-3clj

Change the :origin of received context to Cx-3.

Change the :origin of received context to Cx-3.
raw docstring

Cx-4clj

Change the :origin of received context to Cx-4.

Change the :origin of received context to Cx-4.
raw docstring

Cx-5clj

Change the :origin of received context to Cx-5.

Change the :origin of received context to Cx-5.
raw docstring

Cx0clj

Change the :origin of received context to Cx0.

Change the :origin of received context to Cx0.
raw docstring

Cx1clj

Change the :origin of received context to Cx1.

Change the :origin of received context to Cx1.
raw docstring

Cx2clj

Change the :origin of received context to Cx2.

Change the :origin of received context to Cx2.
raw docstring

Cx3clj

Change the :origin of received context to Cx3.

Change the :origin of received context to Cx3.
raw docstring

Cx4clj

Change the :origin of received context to Cx4.

Change the :origin of received context to Cx4.
raw docstring

Cx5clj

Change the :origin of received context to Cx5.

Change the :origin of received context to Cx5.
raw docstring

D#-1clj

Change the :origin of received context to D#-1.

Change the :origin of received context to D#-1.
raw docstring

D#-2clj

Change the :origin of received context to D#-2.

Change the :origin of received context to D#-2.
raw docstring

D#-3clj

Change the :origin of received context to D#-3.

Change the :origin of received context to D#-3.
raw docstring

D#-4clj

Change the :origin of received context to D#-4.

Change the :origin of received context to D#-4.
raw docstring

D#-5clj

Change the :origin of received context to D#-5.

Change the :origin of received context to D#-5.
raw docstring

D#0clj

Change the :origin of received context to D#0.

Change the :origin of received context to D#0.
raw docstring

D#1clj

Change the :origin of received context to D#1.

Change the :origin of received context to D#1.
raw docstring

D#2clj

Change the :origin of received context to D#2.

Change the :origin of received context to D#2.
raw docstring

D#3clj

Change the :origin of received context to D#3.

Change the :origin of received context to D#3.
raw docstring

D#4clj

Change the :origin of received context to D#4.

Change the :origin of received context to D#4.
raw docstring

D#5clj

Change the :origin of received context to D#5.

Change the :origin of received context to D#5.
raw docstring

D-1clj

Change the :origin of received context to D-1.

Change the :origin of received context to D-1.
raw docstring

D-2clj

Change the :origin of received context to D-2.

Change the :origin of received context to D-2.
raw docstring

D-3clj

Change the :origin of received context to D-3.

Change the :origin of received context to D-3.
raw docstring

D-4clj

Change the :origin of received context to D-4.

Change the :origin of received context to D-4.
raw docstring

D-5clj

Change the :origin of received context to D-5.

Change the :origin of received context to D-5.
raw docstring

d->cclj

(d->c {:as ctx {:keys [d]} :position})

Push diatonic offset into chromatic layer.

Push diatonic offset into chromatic layer.
raw docstring

d->sclj

(d->s {{:keys [s d]} :position :as ctx})

Feed as much as possible of the d value into the s value.

Feed as much as possible of the d value into the s value.
raw docstring

d->tclj

(d->t ctx)

Feed as much as possible of the d value into the upward layers.

Feed as much as possible of the d value into the upward layers.
raw docstring

d-ceilclj

Build an update that bring received context to the closest diatonic position above.

Build an update that bring received context to the closest diatonic position above.
raw docstring

d-floorclj

Build an update that bring received context to the closest diatonic position below.

Build an update that bring received context to the closest diatonic position below.
raw docstring

d-positionclj

Build a diatonic position update. takes 0 to 2 arguments: d: diatonic layer offset. c: chromatic layer offset.

Build a diatonic position update.
takes 0 to 2 arguments:
d: diatonic layer offset.
c: chromatic layer offset.
raw docstring

d-roundclj

Build an update that bring received context to the closest diatonic position.

Build an update that bring received context to the closest diatonic position.
raw docstring

d-shiftclj

Builds a diatonic shift update. see noon.harmony/layer-shift documentation.

Builds a diatonic shift update. see `noon.harmony/layer-shift` documentation.
raw docstring

d-stepclj

(d-step n)

Build a diatonic step update which operates as follow:

  • Trim chromatic layer offset after feeding as much as possible to the diatonic layer offset
  • Adds n to diatonic offset.
Build a diatonic step update which operates as follow:
- Trim chromatic layer offset after feeding
  as much as possible to the diatonic layer offset
- Adds `n` to diatonic offset.
raw docstring

d-trimclj

(d-trim {:as ctx})

Push as much chromatic offset into the diatonic offset, Remove the remainder from the chromatic layer, Return a context with a position containing only tonic, structural and diatonic offsets.

Push as much chromatic offset into the diatonic offset,
Remove the remainder from the chromatic layer,
Return a context with a position containing only tonic, structural and diatonic offsets.
raw docstring

d0clj


D0clj

Change the :origin of received context to D0.

Change the :origin of received context to D0.
raw docstring

d1clj


D1clj

Change the :origin of received context to D1.

Change the :origin of received context to D1.
raw docstring

d1-clj


d10clj


d10-clj


d11clj


d11-clj


d12clj


d12-clj


d13clj


d13-clj


d14clj


d14-clj


d15clj


d15-clj


d16clj


d16-clj


d17clj


d17-clj


d18clj


d18-clj


d19clj


d19-clj


d2clj


D2clj

Change the :origin of received context to D2.

Change the :origin of received context to D2.
raw docstring

d2-clj


d20clj


d20-clj


d21clj


d21-clj


D3clj

Change the :origin of received context to D3.

Change the :origin of received context to D3.
raw docstring

d3clj


d3-clj


d4clj


D4clj

Change the :origin of received context to D4.

Change the :origin of received context to D4.
raw docstring

d4-clj


d5clj


D5clj

Change the :origin of received context to D5.

Change the :origin of received context to D5.
raw docstring

d5-clj


d6clj


d6-clj


d7clj


d7-clj


d8clj


d8-clj


d9clj


d9-clj


Db-1clj

Change the :origin of received context to Db-1.

Change the :origin of received context to Db-1.
raw docstring

Db-2clj

Change the :origin of received context to Db-2.

Change the :origin of received context to Db-2.
raw docstring

Db-3clj

Change the :origin of received context to Db-3.

Change the :origin of received context to Db-3.
raw docstring

Db-4clj

Change the :origin of received context to Db-4.

Change the :origin of received context to Db-4.
raw docstring

Db-5clj

Change the :origin of received context to Db-5.

Change the :origin of received context to Db-5.
raw docstring

Db0clj

Change the :origin of received context to Db0.

Change the :origin of received context to Db0.
raw docstring

Db1clj

Change the :origin of received context to Db1.

Change the :origin of received context to Db1.
raw docstring

Db2clj

Change the :origin of received context to Db2.

Change the :origin of received context to Db2.
raw docstring

Db3clj

Change the :origin of received context to Db3.

Change the :origin of received context to Db3.
raw docstring

Db4clj

Change the :origin of received context to Db4.

Change the :origin of received context to Db4.
raw docstring

Db5clj

Change the :origin of received context to Db5.

Change the :origin of received context to Db5.
raw docstring

Dbb-1clj

Change the :origin of received context to Dbb-1.

Change the :origin of received context to Dbb-1.
raw docstring

Dbb-2clj

Change the :origin of received context to Dbb-2.

Change the :origin of received context to Dbb-2.
raw docstring

Dbb-3clj

Change the :origin of received context to Dbb-3.

Change the :origin of received context to Dbb-3.
raw docstring

Dbb-4clj

Change the :origin of received context to Dbb-4.

Change the :origin of received context to Dbb-4.
raw docstring

Dbb-5clj

Change the :origin of received context to Dbb-5.

Change the :origin of received context to Dbb-5.
raw docstring

Dbb0clj

Change the :origin of received context to Dbb0.

Change the :origin of received context to Dbb0.
raw docstring

Dbb1clj

Change the :origin of received context to Dbb1.

Change the :origin of received context to Dbb1.
raw docstring

Dbb2clj

Change the :origin of received context to Dbb2.

Change the :origin of received context to Dbb2.
raw docstring

Dbb3clj

Change the :origin of received context to Dbb3.

Change the :origin of received context to Dbb3.
raw docstring

Dbb4clj

Change the :origin of received context to Dbb4.

Change the :origin of received context to Dbb4.
raw docstring

Dbb5clj

Change the :origin of received context to Dbb5.

Change the :origin of received context to Dbb5.
raw docstring

decorate-downwardclj

(decorate-downward ctx)

decorate-upwardclj

(decorate-upward ctx)

DEFAULT_HARMONIC_CONTEXTclj


defstepscljmacro

(defsteps prefix max f)

degreeclj

(degree n)

Build an update that go to degree n (potentially negative) of the received context preserving its position.

Build an update that go to degree `n` (potentially negative) of the received context preserving its position.
raw docstring

degree-alterationclj

(degree-alteration scale-idx c-val)

Build an update that alter the degree at scale-idx according to c-val. Throws if not possible due to neighbours degrees.

Build an update that alter the degree at `scale-idx` according to `c-val`.
Throws if not possible due to neighbours degrees.
raw docstring

diatonic-distanceclj

(diatonic-distance ctx1 ctx2)

Return the diatonic distance between two contexts.

Return the diatonic distance between two contexts.
raw docstring

diatonic-equivalent?clj

(diatonic-equivalent? ctx)

the current position is equivalent to a diatonic one.

the current position is equivalent to a diatonic one. 
raw docstring

diatonic-suroundingsclj

(diatonic-suroundings ctx)

return the chromatic distances of the surroundings diatonic degrees [c-dist-downward c-dist-upward]

return the chromatic distances of the surroundings diatonic degrees
[c-dist-downward c-dist-upward]
raw docstring

diatonic?clj

(diatonic? ctx)

Does the given context is positioned exactly on the diatonic layer (or above) ?

Does the given context is positioned exactly on the diatonic layer (or above) ?
raw docstring

distanceclj

(distance a b)

Return a tuple [chromatic-distance diatonic-distance] between the two given contexts a and b.

Return a tuple [chromatic-distance diatonic-distance] between the two given contexts `a` and `b`.
raw docstring

dorianclj

Change the :scale of received context to :dorian.

Change the :scale of received context to :dorian.
raw docstring

dorian+4clj

Change the :scale of received context to :dorian+4.

Change the :scale of received context to :dorian+4.
raw docstring

dorianb5clj

Change the :scale of received context to :dorianb5.

Change the :scale of received context to :dorianb5.
raw docstring

double-harmonicclj

Change the :scale of received context to :double-harmonic.

Change the :scale of received context to :double-harmonic.
raw docstring

down-to-layerclj

(down-to-layer layer ctx)

Constrain ctx's position down to layer by transferring upper offsets into lower layers.

Constrain `ctx`'s position down to `layer` by transferring upper offsets into lower layers.
raw docstring

Dx-1clj

Change the :origin of received context to Dx-1.

Change the :origin of received context to Dx-1.
raw docstring

Dx-2clj

Change the :origin of received context to Dx-2.

Change the :origin of received context to Dx-2.
raw docstring

Dx-3clj

Change the :origin of received context to Dx-3.

Change the :origin of received context to Dx-3.
raw docstring

Dx-4clj

Change the :origin of received context to Dx-4.

Change the :origin of received context to Dx-4.
raw docstring

Dx-5clj

Change the :origin of received context to Dx-5.

Change the :origin of received context to Dx-5.
raw docstring

Dx0clj

Change the :origin of received context to Dx0.

Change the :origin of received context to Dx0.
raw docstring

Dx1clj

Change the :origin of received context to Dx1.

Change the :origin of received context to Dx1.
raw docstring

Dx2clj

Change the :origin of received context to Dx2.

Change the :origin of received context to Dx2.
raw docstring

Dx3clj

Change the :origin of received context to Dx3.

Change the :origin of received context to Dx3.
raw docstring

Dx4clj

Change the :origin of received context to Dx4.

Change the :origin of received context to Dx4.
raw docstring

Dx5clj

Change the :origin of received context to Dx5.

Change the :origin of received context to Dx5.
raw docstring

E#-1clj

Change the :origin of received context to E#-1.

Change the :origin of received context to E#-1.
raw docstring

E#-2clj

Change the :origin of received context to E#-2.

Change the :origin of received context to E#-2.
raw docstring

E#-3clj

Change the :origin of received context to E#-3.

Change the :origin of received context to E#-3.
raw docstring

E#-4clj

Change the :origin of received context to E#-4.

Change the :origin of received context to E#-4.
raw docstring

E#-5clj

Change the :origin of received context to E#-5.

Change the :origin of received context to E#-5.
raw docstring

E#0clj

Change the :origin of received context to E#0.

Change the :origin of received context to E#0.
raw docstring

E#1clj

Change the :origin of received context to E#1.

Change the :origin of received context to E#1.
raw docstring

E#2clj

Change the :origin of received context to E#2.

Change the :origin of received context to E#2.
raw docstring

E#3clj

Change the :origin of received context to E#3.

Change the :origin of received context to E#3.
raw docstring

E#4clj

Change the :origin of received context to E#4.

Change the :origin of received context to E#4.
raw docstring

E#5clj

Change the :origin of received context to E#5.

Change the :origin of received context to E#5.
raw docstring

E-1clj

Change the :origin of received context to E-1.

Change the :origin of received context to E-1.
raw docstring

E-2clj

Change the :origin of received context to E-2.

Change the :origin of received context to E-2.
raw docstring

E-3clj

Change the :origin of received context to E-3.

Change the :origin of received context to E-3.
raw docstring

E-4clj

Change the :origin of received context to E-4.

Change the :origin of received context to E-4.
raw docstring

E-5clj

Change the :origin of received context to E-5.

Change the :origin of received context to E-5.
raw docstring

E0clj

Change the :origin of received context to E0.

Change the :origin of received context to E0.
raw docstring

E1clj

Change the :origin of received context to E1.

Change the :origin of received context to E1.
raw docstring

E2clj

Change the :origin of received context to E2.

Change the :origin of received context to E2.
raw docstring

E3clj

Change the :origin of received context to E3.

Change the :origin of received context to E3.
raw docstring

E4clj

Change the :origin of received context to E4.

Change the :origin of received context to E4.
raw docstring

E5clj

Change the :origin of received context to E5.

Change the :origin of received context to E5.
raw docstring

Eb-1clj

Change the :origin of received context to Eb-1.

Change the :origin of received context to Eb-1.
raw docstring

Eb-2clj

Change the :origin of received context to Eb-2.

Change the :origin of received context to Eb-2.
raw docstring

Eb-3clj

Change the :origin of received context to Eb-3.

Change the :origin of received context to Eb-3.
raw docstring

Eb-4clj

Change the :origin of received context to Eb-4.

Change the :origin of received context to Eb-4.
raw docstring

Eb-5clj

Change the :origin of received context to Eb-5.

Change the :origin of received context to Eb-5.
raw docstring

Eb0clj

Change the :origin of received context to Eb0.

Change the :origin of received context to Eb0.
raw docstring

Eb1clj

Change the :origin of received context to Eb1.

Change the :origin of received context to Eb1.
raw docstring

Eb2clj

Change the :origin of received context to Eb2.

Change the :origin of received context to Eb2.
raw docstring

Eb3clj

Change the :origin of received context to Eb3.

Change the :origin of received context to Eb3.
raw docstring

Eb4clj

Change the :origin of received context to Eb4.

Change the :origin of received context to Eb4.
raw docstring

Eb5clj

Change the :origin of received context to Eb5.

Change the :origin of received context to Eb5.
raw docstring

Ebb-1clj

Change the :origin of received context to Ebb-1.

Change the :origin of received context to Ebb-1.
raw docstring

Ebb-2clj

Change the :origin of received context to Ebb-2.

Change the :origin of received context to Ebb-2.
raw docstring

Ebb-3clj

Change the :origin of received context to Ebb-3.

Change the :origin of received context to Ebb-3.
raw docstring

Ebb-4clj

Change the :origin of received context to Ebb-4.

Change the :origin of received context to Ebb-4.
raw docstring

Ebb-5clj

Change the :origin of received context to Ebb-5.

Change the :origin of received context to Ebb-5.
raw docstring

Ebb0clj

Change the :origin of received context to Ebb0.

Change the :origin of received context to Ebb0.
raw docstring

Ebb1clj

Change the :origin of received context to Ebb1.

Change the :origin of received context to Ebb1.
raw docstring

Ebb2clj

Change the :origin of received context to Ebb2.

Change the :origin of received context to Ebb2.
raw docstring

Ebb3clj

Change the :origin of received context to Ebb3.

Change the :origin of received context to Ebb3.
raw docstring

Ebb4clj

Change the :origin of received context to Ebb4.

Change the :origin of received context to Ebb4.
raw docstring

Ebb5clj

Change the :origin of received context to Ebb5.

Change the :origin of received context to Ebb5.
raw docstring

Ex-1clj

Change the :origin of received context to Ex-1.

Change the :origin of received context to Ex-1.
raw docstring

Ex-2clj

Change the :origin of received context to Ex-2.

Change the :origin of received context to Ex-2.
raw docstring

Ex-3clj

Change the :origin of received context to Ex-3.

Change the :origin of received context to Ex-3.
raw docstring

Ex-4clj

Change the :origin of received context to Ex-4.

Change the :origin of received context to Ex-4.
raw docstring

Ex-5clj

Change the :origin of received context to Ex-5.

Change the :origin of received context to Ex-5.
raw docstring

Ex0clj

Change the :origin of received context to Ex0.

Change the :origin of received context to Ex0.
raw docstring

Ex1clj

Change the :origin of received context to Ex1.

Change the :origin of received context to Ex1.
raw docstring

Ex2clj

Change the :origin of received context to Ex2.

Change the :origin of received context to Ex2.
raw docstring

Ex3clj

Change the :origin of received context to Ex3.

Change the :origin of received context to Ex3.
raw docstring

Ex4clj

Change the :origin of received context to Ex4.

Change the :origin of received context to Ex4.
raw docstring

Ex5clj

Change the :origin of received context to Ex5.

Change the :origin of received context to Ex5.
raw docstring

F#-1clj

Change the :origin of received context to F#-1.

Change the :origin of received context to F#-1.
raw docstring

F#-2clj

Change the :origin of received context to F#-2.

Change the :origin of received context to F#-2.
raw docstring

F#-3clj

Change the :origin of received context to F#-3.

Change the :origin of received context to F#-3.
raw docstring

F#-4clj

Change the :origin of received context to F#-4.

Change the :origin of received context to F#-4.
raw docstring

F#-5clj

Change the :origin of received context to F#-5.

Change the :origin of received context to F#-5.
raw docstring

F#0clj

Change the :origin of received context to F#0.

Change the :origin of received context to F#0.
raw docstring

F#1clj

Change the :origin of received context to F#1.

Change the :origin of received context to F#1.
raw docstring

F#2clj

Change the :origin of received context to F#2.

Change the :origin of received context to F#2.
raw docstring

F#3clj

Change the :origin of received context to F#3.

Change the :origin of received context to F#3.
raw docstring

F#4clj

Change the :origin of received context to F#4.

Change the :origin of received context to F#4.
raw docstring

F#5clj

Change the :origin of received context to F#5.

Change the :origin of received context to F#5.
raw docstring

F-1clj

Change the :origin of received context to F-1.

Change the :origin of received context to F-1.
raw docstring

F-2clj

Change the :origin of received context to F-2.

Change the :origin of received context to F-2.
raw docstring

F-3clj

Change the :origin of received context to F-3.

Change the :origin of received context to F-3.
raw docstring

F-4clj

Change the :origin of received context to F-4.

Change the :origin of received context to F-4.
raw docstring

F-5clj

Change the :origin of received context to F-5.

Change the :origin of received context to F-5.
raw docstring

F0clj

Change the :origin of received context to F0.

Change the :origin of received context to F0.
raw docstring

F1clj

Change the :origin of received context to F1.

Change the :origin of received context to F1.
raw docstring

F2clj

Change the :origin of received context to F2.

Change the :origin of received context to F2.
raw docstring

F3clj

Change the :origin of received context to F3.

Change the :origin of received context to F3.
raw docstring

F4clj

Change the :origin of received context to F4.

Change the :origin of received context to F4.
raw docstring

F5clj

Change the :origin of received context to F5.

Change the :origin of received context to F5.
raw docstring

Fb-1clj

Change the :origin of received context to Fb-1.

Change the :origin of received context to Fb-1.
raw docstring

Fb-2clj

Change the :origin of received context to Fb-2.

Change the :origin of received context to Fb-2.
raw docstring

Fb-3clj

Change the :origin of received context to Fb-3.

Change the :origin of received context to Fb-3.
raw docstring

Fb-4clj

Change the :origin of received context to Fb-4.

Change the :origin of received context to Fb-4.
raw docstring

Fb-5clj

Change the :origin of received context to Fb-5.

Change the :origin of received context to Fb-5.
raw docstring

Fb0clj

Change the :origin of received context to Fb0.

Change the :origin of received context to Fb0.
raw docstring

Fb1clj

Change the :origin of received context to Fb1.

Change the :origin of received context to Fb1.
raw docstring

Fb2clj

Change the :origin of received context to Fb2.

Change the :origin of received context to Fb2.
raw docstring

Fb3clj

Change the :origin of received context to Fb3.

Change the :origin of received context to Fb3.
raw docstring

Fb4clj

Change the :origin of received context to Fb4.

Change the :origin of received context to Fb4.
raw docstring

Fb5clj

Change the :origin of received context to Fb5.

Change the :origin of received context to Fb5.
raw docstring

Fbb-1clj

Change the :origin of received context to Fbb-1.

Change the :origin of received context to Fbb-1.
raw docstring

Fbb-2clj

Change the :origin of received context to Fbb-2.

Change the :origin of received context to Fbb-2.
raw docstring

Fbb-3clj

Change the :origin of received context to Fbb-3.

Change the :origin of received context to Fbb-3.
raw docstring

Fbb-4clj

Change the :origin of received context to Fbb-4.

Change the :origin of received context to Fbb-4.
raw docstring

Fbb-5clj

Change the :origin of received context to Fbb-5.

Change the :origin of received context to Fbb-5.
raw docstring

Fbb0clj

Change the :origin of received context to Fbb0.

Change the :origin of received context to Fbb0.
raw docstring

Fbb1clj

Change the :origin of received context to Fbb1.

Change the :origin of received context to Fbb1.
raw docstring

Fbb2clj

Change the :origin of received context to Fbb2.

Change the :origin of received context to Fbb2.
raw docstring

Fbb3clj

Change the :origin of received context to Fbb3.

Change the :origin of received context to Fbb3.
raw docstring

Fbb4clj

Change the :origin of received context to Fbb4.

Change the :origin of received context to Fbb4.
raw docstring

Fbb5clj

Change the :origin of received context to Fbb5.

Change the :origin of received context to Fbb5.
raw docstring

Fx-1clj

Change the :origin of received context to Fx-1.

Change the :origin of received context to Fx-1.
raw docstring

Fx-2clj

Change the :origin of received context to Fx-2.

Change the :origin of received context to Fx-2.
raw docstring

Fx-3clj

Change the :origin of received context to Fx-3.

Change the :origin of received context to Fx-3.
raw docstring

Fx-4clj

Change the :origin of received context to Fx-4.

Change the :origin of received context to Fx-4.
raw docstring

Fx-5clj

Change the :origin of received context to Fx-5.

Change the :origin of received context to Fx-5.
raw docstring

Fx0clj

Change the :origin of received context to Fx0.

Change the :origin of received context to Fx0.
raw docstring

Fx1clj

Change the :origin of received context to Fx1.

Change the :origin of received context to Fx1.
raw docstring

Fx2clj

Change the :origin of received context to Fx2.

Change the :origin of received context to Fx2.
raw docstring

Fx3clj

Change the :origin of received context to Fx3.

Change the :origin of received context to Fx3.
raw docstring

Fx4clj

Change the :origin of received context to Fx4.

Change the :origin of received context to Fx4.
raw docstring

Fx5clj

Change the :origin of received context to Fx5.

Change the :origin of received context to Fx5.
raw docstring

G#-1clj

Change the :origin of received context to G#-1.

Change the :origin of received context to G#-1.
raw docstring

G#-2clj

Change the :origin of received context to G#-2.

Change the :origin of received context to G#-2.
raw docstring

G#-3clj

Change the :origin of received context to G#-3.

Change the :origin of received context to G#-3.
raw docstring

G#-4clj

Change the :origin of received context to G#-4.

Change the :origin of received context to G#-4.
raw docstring

G#-5clj

Change the :origin of received context to G#-5.

Change the :origin of received context to G#-5.
raw docstring

G#0clj

Change the :origin of received context to G#0.

Change the :origin of received context to G#0.
raw docstring

G#1clj

Change the :origin of received context to G#1.

Change the :origin of received context to G#1.
raw docstring

G#2clj

Change the :origin of received context to G#2.

Change the :origin of received context to G#2.
raw docstring

G#3clj

Change the :origin of received context to G#3.

Change the :origin of received context to G#3.
raw docstring

G#4clj

Change the :origin of received context to G#4.

Change the :origin of received context to G#4.
raw docstring

G-1clj

Change the :origin of received context to G-1.

Change the :origin of received context to G-1.
raw docstring

G-2clj

Change the :origin of received context to G-2.

Change the :origin of received context to G-2.
raw docstring

G-3clj

Change the :origin of received context to G-3.

Change the :origin of received context to G-3.
raw docstring

G-4clj

Change the :origin of received context to G-4.

Change the :origin of received context to G-4.
raw docstring

G-5clj

Change the :origin of received context to G-5.

Change the :origin of received context to G-5.
raw docstring

G0clj

Change the :origin of received context to G0.

Change the :origin of received context to G0.
raw docstring

G1clj

Change the :origin of received context to G1.

Change the :origin of received context to G1.
raw docstring

G2clj

Change the :origin of received context to G2.

Change the :origin of received context to G2.
raw docstring

G3clj

Change the :origin of received context to G3.

Change the :origin of received context to G3.
raw docstring

G4clj

Change the :origin of received context to G4.

Change the :origin of received context to G4.
raw docstring

G5clj

Change the :origin of received context to G5.

Change the :origin of received context to G5.
raw docstring

Gb-1clj

Change the :origin of received context to Gb-1.

Change the :origin of received context to Gb-1.
raw docstring

Gb-2clj

Change the :origin of received context to Gb-2.

Change the :origin of received context to Gb-2.
raw docstring

Gb-3clj

Change the :origin of received context to Gb-3.

Change the :origin of received context to Gb-3.
raw docstring

Gb-4clj

Change the :origin of received context to Gb-4.

Change the :origin of received context to Gb-4.
raw docstring

Gb-5clj

Change the :origin of received context to Gb-5.

Change the :origin of received context to Gb-5.
raw docstring

Gb0clj

Change the :origin of received context to Gb0.

Change the :origin of received context to Gb0.
raw docstring

Gb1clj

Change the :origin of received context to Gb1.

Change the :origin of received context to Gb1.
raw docstring

Gb2clj

Change the :origin of received context to Gb2.

Change the :origin of received context to Gb2.
raw docstring

Gb3clj

Change the :origin of received context to Gb3.

Change the :origin of received context to Gb3.
raw docstring

Gb4clj

Change the :origin of received context to Gb4.

Change the :origin of received context to Gb4.
raw docstring

Gb5clj

Change the :origin of received context to Gb5.

Change the :origin of received context to Gb5.
raw docstring

Gbb-1clj

Change the :origin of received context to Gbb-1.

Change the :origin of received context to Gbb-1.
raw docstring

Gbb-2clj

Change the :origin of received context to Gbb-2.

Change the :origin of received context to Gbb-2.
raw docstring

Gbb-3clj

Change the :origin of received context to Gbb-3.

Change the :origin of received context to Gbb-3.
raw docstring

Gbb-4clj

Change the :origin of received context to Gbb-4.

Change the :origin of received context to Gbb-4.
raw docstring

Gbb-5clj

Change the :origin of received context to Gbb-5.

Change the :origin of received context to Gbb-5.
raw docstring

Gbb0clj

Change the :origin of received context to Gbb0.

Change the :origin of received context to Gbb0.
raw docstring

Gbb1clj

Change the :origin of received context to Gbb1.

Change the :origin of received context to Gbb1.
raw docstring

Gbb2clj

Change the :origin of received context to Gbb2.

Change the :origin of received context to Gbb2.
raw docstring

Gbb3clj

Change the :origin of received context to Gbb3.

Change the :origin of received context to Gbb3.
raw docstring

Gbb4clj

Change the :origin of received context to Gbb4.

Change the :origin of received context to Gbb4.
raw docstring

Gbb5clj

Change the :origin of received context to Gbb5.

Change the :origin of received context to Gbb5.
raw docstring

Gx-1clj

Change the :origin of received context to Gx-1.

Change the :origin of received context to Gx-1.
raw docstring

Gx-2clj

Change the :origin of received context to Gx-2.

Change the :origin of received context to Gx-2.
raw docstring

Gx-3clj

Change the :origin of received context to Gx-3.

Change the :origin of received context to Gx-3.
raw docstring

Gx-4clj

Change the :origin of received context to Gx-4.

Change the :origin of received context to Gx-4.
raw docstring

Gx-5clj

Change the :origin of received context to Gx-5.

Change the :origin of received context to Gx-5.
raw docstring

Gx0clj

Change the :origin of received context to Gx0.

Change the :origin of received context to Gx0.
raw docstring

Gx1clj

Change the :origin of received context to Gx1.

Change the :origin of received context to Gx1.
raw docstring

Gx2clj

Change the :origin of received context to Gx2.

Change the :origin of received context to Gx2.
raw docstring

Gx3clj

Change the :origin of received context to Gx3.

Change the :origin of received context to Gx3.
raw docstring

Gx4clj

Change the :origin of received context to Gx4.

Change the :origin of received context to Gx4.
raw docstring

harmonic-majorclj

Change the :scale of received context to :harmonic-major.

Change the :scale of received context to :harmonic-major.
raw docstring

harmonic-minorclj

Change the :scale of received context to :harmonic-minor.

Change the :scale of received context to :harmonic-minor.
raw docstring

hcclj

(hc & [spec])

Harmonic context constructor. Defaults to DEFAULT_HARMONIC_CONTEXT, but accepts a spec map that takes precedence over it.

Harmonic context constructor.
Defaults to `DEFAULT_HARMONIC_CONTEXT`, but accepts a `spec` map that takes precedence over it.
raw docstring

hc+clj

(hc+ ctx1)

Build an update that merge ctx1 into received context. :scale, :structure and :origin will be replaced, :position will be shifted by ctx1's :position.

Build an update that merge `ctx1` into received context.
:scale, :structure and :origin will be replaced, :position will be shifted by `ctx1`'s :position.
raw docstring

hc->chromatic-valueclj

Get the chromatic value of the given harmonic context.

Get the chromatic value of the given harmonic context.
raw docstring

hc->diatonic-valueclj

Get the diatonic value of the given harmonic context.

Get the diatonic value of the given harmonic context.
raw docstring

hc->pitchclj

given a context, compute the corresponding pitch

given a context, compute the corresponding pitch
raw docstring

hc-seqsclj

(hc-seqs {:keys [scale structure]})

Build bidirectional seqs based on the given given harmonic context, based on its :scale and :structure values.

Build bidirectional seqs based on the given given harmonic context,
based on its `:scale` and `:structure` values.
raw docstring

hc0clj

The default harmonic context. C Major, triad, middle C positioned

The default harmonic context. C Major, triad, middle C positioned
raw docstring

hc?clj

Test if something is an harmonic context.

Test if something is an harmonic context.
raw docstring

hungarianclj

Change the :scale of received context to :hungarian.

Change the :scale of received context to :hungarian.
raw docstring

inversionclj

(inversion n)

Build an update that go to inversion n (potentially negative) of the received context preserving its position.

Build an update that go to inversion `n` (potentially negative) of the received context preserving its position.
raw docstring

ionianclj

Change the :scale of received context to :ionian.

Change the :scale of received context to :ionian.
raw docstring

ionian+clj

Change the :scale of received context to :ionian+.

Change the :scale of received context to :ionian+.
raw docstring

ionian++2clj

Change the :scale of received context to :ionian++2.

Change the :scale of received context to :ionian++2.
raw docstring

layer-idxclj

(layer-idx layer ctx)

Get the layer offset of ctx transfering upper offsets into given layer.

Get the `layer` offset of `ctx` transfering upper offsets into given `layer`.
raw docstring

layer-shiftclj

(layer-shift l)

Build a shift update constructor for layer l. Unlike step updates, shift updates are not trimming context's position before updating it. If the layer offset we are trying to shift is not present in the context's position, the shift has no effect. Unless the forced optional argument is given.

Build a shift update constructor for layer `l`.
Unlike step updates, shift updates are not trimming context's position before updating it.
If the layer offset we are trying to shift is not present in the context's position, the shift has no effect.
Unless the `forced` optional argument is given.
raw docstring

layer-stepclj

(layer-step layer n)

Build a step update according to layer and offset n. Please refer to t-step, s-step, d-step and c-step documentation.

Build a step update according to `layer` and offset `n`.
Please refer to `t-step`, `s-step`, `d-step` and `c-step` documentation.
raw docstring

LAYER_IDXclj


locrianclj

Change the :scale of received context to :locrian.

Change the :scale of received context to :locrian.
raw docstring

locrian2clj

Change the :scale of received context to :locrian2.

Change the :scale of received context to :locrian2.
raw docstring

locrian6clj

Change the :scale of received context to :locrian6.

Change the :scale of received context to :locrian6.
raw docstring

locriano7clj

Change the :scale of received context to :locriano7.

Change the :scale of received context to :locriano7.
raw docstring

lowest-layerclj

(lowest-layer {p :position})

lydianclj

Change the :scale of received context to :lydian.

Change the :scale of received context to :lydian.
raw docstring

lydian+clj

Change the :scale of received context to :lydian+.

Change the :scale of received context to :lydian+.
raw docstring

lydian++2clj

Change the :scale of received context to :lydian++2.

Change the :scale of received context to :lydian++2.
raw docstring

lydian+2clj

Change the :scale of received context to :lydian+2.

Change the :scale of received context to :lydian+2.
raw docstring

lydian+2+6clj

Change the :scale of received context to :lydian+2+6.

Change the :scale of received context to :lydian+2+6.
raw docstring

lydianb3clj

Change the :scale of received context to :lydianb3.

Change the :scale of received context to :lydianb3.
raw docstring

lydianb7clj

Change the :scale of received context to :lydianb7.

Change the :scale of received context to :lydianb7.
raw docstring

melodic-minorclj

Change the :scale of received context to :melodic-minor.

Change the :scale of received context to :melodic-minor.
raw docstring

mirrorclj

(mirror pitch)

Build an update that mirror received context against pitch.

Build an update that mirror received context against `pitch`.
raw docstring

mixolydianclj

Change the :scale of received context to :mixolydian.

Change the :scale of received context to :mixolydian.
raw docstring

mixolydianb2clj

Change the :scale of received context to :mixolydianb2.

Change the :scale of received context to :mixolydianb2.
raw docstring

mixolydianb6clj

Change the :scale of received context to :mixolydianb6.

Change the :scale of received context to :mixolydianb6.
raw docstring

neibourhoodclj

(neibourhood ctx)

normaliseclj

(normalise ctx)

Normalise ctx's position to its simplest form.

Normalise `ctx`'s position to its simplest form.
raw docstring

o1clj


o1-clj


o2clj


o2-clj


o3clj


o3-clj


o4clj


o4-clj


o5clj


o5-clj


o6clj


o6-clj


o7clj


o7-clj


o8clj


o8-clj


orientalclj

Change the :scale of received context to :oriental.

Change the :scale of received context to :oriental.
raw docstring

originclj

(origin x)

Build an update that resets the :origin of the received context to x. x can be either:

  • a pitch object {:d _ :c _}
  • a pitch interpretable keyword, symbol or string (e.g C0, F#-2 , Gx2)
Build an update that resets the `:origin` of the received context to `x`.
`x` can be either:
 - a pitch object {:d _ :c _}
 - a pitch interpretable keyword, symbol or string (e.g C0, F#-2 , Gx2)
raw docstring

passingsclj


phrygianclj

Change the :scale of received context to :phrygian.

Change the :scale of received context to :phrygian.
raw docstring

phrygian3clj

Change the :scale of received context to :phrygian3.

Change the :scale of received context to :phrygian3.
raw docstring

phrygian6clj

Change the :scale of received context to :phrygian6.

Change the :scale of received context to :phrygian6.
raw docstring

phrygianb4clj

Change the :scale of received context to :phrygianb4.

Change the :scale of received context to :phrygianb4.
raw docstring

pitch->positionclj

(pitch->position ctx p)

Turn a pitch p into a position according to context ctx.

Turn a pitch `p` into a position according to context `ctx`.
raw docstring

positionclj

(position & [t s d c])

Build a position update. takes 0 to four arguments: t: tonic layer offset. s: structural layer offset. d: diatonic layer offset. c: chromatic layer offset.

Build a position update.
takes 0 to four arguments:
t: tonic layer offset.
s: structural layer offset.
d: diatonic layer offset.
c: chromatic layer offset.
raw docstring

position+clj

(position+ ctx p)

Shift ctx's :position by given position p.

Shift `ctx`'s :position by given position `p`.
raw docstring

POSITION_ZEROclj


rebaseclj

(rebase & fs)

Build an update that applies the given updates fs while preserving pitch.

Build an update that applies the given updates `fs` while preserving pitch.
raw docstring

redegreeclj

Build an update that changes the degree of the received context, without changing its pitch. see noon.harmony/degree.

Build an update that changes the degree of the received context, without changing its pitch. see `noon.harmony/degree`.
raw docstring

reoriginclj

Build an update that change the origin of the received context without changing its pitch. see noon.harmony/scale

Build an update that change the origin of the received context without changing its pitch. see `noon.harmony/scale`
raw docstring

repitchclj

(repitch x)

Build an update that repositions the received context based on the given pitch x

Build an update that repositions the received context based on the given pitch `x`
raw docstring

rerootclj

Build an update that changes the root of the received context, without changing its pitch. see noon.harmony/root.

Build an update that changes the root of the received context, without changing its pitch. see `noon.harmony/root`.
raw docstring

rescaleclj

Build an update that change the scale of the received context without changing its pitch. see noon.harmony/scale

Build an update that change the scale of the received context without changing its pitch. see `noon.harmony/scale`
raw docstring

resolution-layerclj

(resolution-layer ctx)

resolve-downwardclj

(resolve-downward ctx)

resolve-upwardclj

(resolve-upward ctx)

restructureclj

Build an update that change the structure of the received context without changing its pitch. see noon.harmony/scale

Build an update that change the structure of the received context without changing its pitch. see `noon.harmony/scale`
raw docstring

rootclj

(root pitch-class)

Build an update that given a pitch class (name or map), resets the :origin of the received context to the closest (to current origin) corresponding pitch.

Build an update that given a pitch class (name or map),
resets the :origin of the received context to the closest (to current origin) corresponding pitch.
raw docstring

s+clj

(s+ ctx)

melodic superior diatonic passing note

melodic superior diatonic passing note
raw docstring

s-clj

(s- ctx)

melodic inferior diatonic passing note

melodic inferior diatonic passing note
raw docstring

s->cclj

(s->c ctx)

Push structural and diatonic offsets into chromatic layer.

Push structural and diatonic offsets into chromatic layer.
raw docstring

s->dclj

(s->d {:as ctx {:keys [s]} :position})

Push structural offset into diatonic layer.

Push structural offset into diatonic layer.
raw docstring

s->tclj

(s->t {{:keys [t s]} :position :as ctx})

Feed as much as possible of the s value into the o value.

Feed as much as possible of the s value into the o value.
raw docstring

s-ceilclj

Build an update that bring received context to the closest structural position above.

Build an update that bring received context to the closest structural position above.
raw docstring

s-floorclj

Build an update that bring received context to the closest structural position below.

Build an update that bring received context to the closest structural position below.
raw docstring

s-positionclj

Build a structural position update. takes 0 to 3 arguments: s: structural layer offset. d: diatonic layer offset. c: chromatic layer offset.

Build a structural position update.
takes 0 to 3 arguments:
s: structural layer offset.
d: diatonic layer offset.
c: chromatic layer offset.
raw docstring

s-roundclj

Build an update that bring received context to the closest structural position.

Build an update that bring received context to the closest structural position.
raw docstring

s-shiftclj

Builds a structural shift update. see noon.harmony/layer-shift documentation.

Builds a structural shift update. see `noon.harmony/layer-shift` documentation.
raw docstring

s-stepclj

(s-step n)

Build a structural step update which operates as follow:

  • Trim diatonic and chromatic layer offsets after feeding as much as possible to the structural layer offset
  • Adds n to structural offset.
Build a structural step update which operates as follow:
- Trim diatonic and chromatic layer offsets after feeding
  as much as possible to the structural layer offset
- Adds `n` to structural offset.
raw docstring

s-trimclj

(s-trim {:as ctx})

Push as much as possible diatonic and chromatic offsets into the structural offset, Remove the remainders from those layers, Return a context with a position containing only tonic and structural offsets.

Push as much as possible diatonic and chromatic offsets into the structural offset,
Remove the remainders from those layers,
Return a context with a position containing only tonic and structural offsets.
raw docstring

s0clj


s1clj


s1-clj


s10clj


s10-clj


s11clj


s11-clj


s12clj


s12-clj


s2clj


s2-clj


s3clj


s3-clj


s4clj


s4-clj


s5clj


s5-clj


s6clj


s6-clj


s7clj


s7-clj


s8clj


s8-clj


s9clj


s9-clj


safe-addclj

(safe-add a b)

scaleclj

(scale x)

Build an update that resets the :scale of the received context to x. x can be either:

  • a known scale keyword, symbol or string (e.g :dorian, 'melodic-minor, "hungarian" ...) refer to noon.constants/modes for complete list.
  • a mode vector like [0 2 3 5 7 9 10] (for :dorian)
Build an update that resets the `:scale` of the received context to `x`.
`x` can be either:
- a known scale keyword, symbol or string (e.g :dorian, 'melodic-minor, "hungarian" ...)
  refer to `noon.constants/modes` for complete list.
- a mode vector like [0 2 3 5 7 9 10] (for :dorian)
raw docstring

seventhclj

Change the :structure of received context to :seventh.

Change the :structure of received context to :seventh.
raw docstring

simplest-connectionclj

(simplest-connection size hc1 hc2)

return a sequence of harmonic contexts representing a melodic line between hc1 and hc2 with size intermediate contexts. intermediate contexts are selected on lowset layer in priority.

return a sequence of harmonic contexts representing a melodic line between `hc1` and `hc2` with `size` intermediate contexts.
intermediate contexts are selected on lowset layer in priority.
raw docstring

sixthclj

Change the :structure of received context to :sixth.

Change the :structure of received context to :sixth.
raw docstring

structural-equivalent?clj

(structural-equivalent? ctx)

the current position is equivalent to a structural one.

the current position is equivalent to a structural one. 
raw docstring

structural?clj

(structural? ctx)

Does the given context is positioned exactly on the structural layer (or above) ?

Does the given context is positioned exactly on the structural layer (or above) ?
raw docstring

structureclj

(structure x)

Build an update that resets the :structure of the received context to x. x can be either:

  • a known structure keyword, symbol or string (e.g :triad, 'tetrad, "sus4" ...) refer to noon.constants/structures for complete list.
  • a structure vector like [0 2 4 6] (for :tetrad)
Build an update that resets the `:structure` of the received context to `x`.
`x` can be either:
- a known structure keyword, symbol or string (e.g :triad, 'tetrad, "sus4" ...)
  refer to `noon.constants/structures` for complete list.
- a structure vector like [0 2 4 6] (for :tetrad)
raw docstring

structure-addclj

(structure-add scale-idx)

Build an update that add the given scale-idx to the :structure of the received context.

Build an update that add the given `scale-idx` to the :structure of the received context.
raw docstring

structure-removeclj

(structure-remove scale-idx)

Build an update that removes the given scale-idx to the :structure of the received context.

Build an update that removes the given `scale-idx` to the :structure of the received context.
raw docstring

superlocrianclj

Change the :scale of received context to :superlocrian.

Change the :scale of received context to :superlocrian.
raw docstring

superlocriano7clj

Change the :scale of received context to :superlocriano7.

Change the :scale of received context to :superlocriano7.
raw docstring

sus2clj

Change the :structure of received context to :sus2.

Change the :structure of received context to :sus2.
raw docstring

sus27clj

Change the :structure of received context to :sus27.

Change the :structure of received context to :sus27.
raw docstring

sus4clj

Change the :structure of received context to :sus4.

Change the :structure of received context to :sus4.
raw docstring

sus47clj

Change the :structure of received context to :sus47.

Change the :structure of received context to :sus47.
raw docstring

sus6clj

Change the :structure of received context to :sus6.

Change the :structure of received context to :sus6.
raw docstring

sus67clj

Change the :structure of received context to :sus67.

Change the :structure of received context to :sus67.
raw docstring

sus7clj

Change the :structure of received context to :sus7.

Change the :structure of received context to :sus7.
raw docstring

t->cclj

(t->c ctx)

Push tonic, structural and diatonic offsets into chromatic layer.

Push tonic, structural and diatonic offsets into chromatic layer.
raw docstring

t->dclj

(t->d ctx)

Push tonic and structural offsets into diatonic layer.

Push tonic and structural offsets into diatonic layer.
raw docstring

t->sclj

(t->s {:as ctx {:keys [t]} :position})

Push tonic offset into structural layer.

Push tonic offset into structural layer.
raw docstring

t-ceilclj

Build an update that bring received context to the closest tonic position above.

Build an update that bring received context to the closest tonic position above.
raw docstring

t-floorclj

Build an update that bring received context to the closest tonic position below.

Build an update that bring received context to the closest tonic position below.
raw docstring

t-roundclj

Build an update that bring received context to the closest tonic position.

Build an update that bring received context to the closest tonic position.
raw docstring

t-shiftclj

Builds a tonic shift update. see noon.harmony/layer-shift documentation.

Builds a tonic shift update. see `noon.harmony/layer-shift` documentation.
raw docstring

t-stepclj

(t-step n)

Build a tonic step update which operates as follow:

  • Trim structural, diatonic and chromatic layer offsets after feeding as much as possible to the tonic layer offset
  • Adds n to tonic offset.
Build a tonic step update which operates as follow:
- Trim structural, diatonic and chromatic layer offsets after feeding
  as much as possible to the tonic layer offset
- Adds `n` to tonic offset.
raw docstring

t-trimclj

(t-trim {:as ctx})

Push as much as possible structural, diatonic and chromatic offsets into the tonic offset, Then remove the remainders from those sublayers, returning a context with a pure tonic position.

Push as much as possible structural, diatonic and chromatic offsets into the tonic offset,
Then remove the remainders from those sublayers, returning a context with a pure tonic position.
raw docstring

t0clj


t1clj


t1-clj


t10clj


t10-clj


t11clj


t11-clj


t12clj


t12-clj


t2clj


t2-clj


t3clj


t3-clj


t4clj


t4-clj


t5clj


t5-clj


t6clj


t6-clj


t7clj


t7-clj


t8clj


t8-clj


t9clj


t9-clj


tense-downwardclj

(tense-downward ctx)

tense-upwardclj

(tense-upward ctx)

tension-layerclj

(tension-layer ctx)

tetradclj

Change the :structure of received context to :tetrad.

Change the :structure of received context to :tetrad.
raw docstring

tonic-equivalent?clj

(tonic-equivalent? ctx)

the current position is equivalent to a tonic one.

the current position is equivalent to a tonic one. 
raw docstring

tonic?clj

(tonic? ctx)

Does the given context is positioned exactly on the tonic layer ?

Does the given context is positioned exactly on the tonic layer ?
raw docstring

transposeclj

(transpose x)

Build an update that transposes the current :origin using the given update x. It works as follow:

  • Reposition received context to POSITION_ZERO.
  • Updates it using x.
  • Use the resulting pitch as the new :origin for the received context.
Build an update that transposes the current :origin using the given update `x`.
It works as follow:
- Reposition received context to POSITION_ZERO.
- Updates it using `x`.
- Use the resulting pitch as the new :origin for the received context.
raw docstring

triadclj

Change the :structure of received context to :triad.

Change the :structure of received context to :triad.
raw docstring

ultralocrianclj

Change the :scale of received context to :ultralocrian.

Change the :scale of received context to :ultralocrian.
raw docstring

ultraphrygianclj

Change the :scale of received context to :ultraphrygian.

Change the :scale of received context to :ultraphrygian.
raw docstring

updclj

(upd ctx x)
(upd ctx x & xs)

thread context ctx through given updates x & xs.

thread context `ctx` through given updates `x & xs`.
raw docstring

zero-or-nil?clj

(zero-or-nil? x)

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

× close