User:Inthar/Math style guide: Difference between revisions

From Xenharmonic Reference
Line 5: Line 5:
* A ''scale'' is a nonempty discrete subset of pitch space invariant under transposition by a chosen equave <math>E\in \mathbb{R}\setminus\{0\},</math> modulo transposition.
* A ''scale'' is a nonempty discrete subset of pitch space invariant under transposition by a chosen equave <math>E\in \mathbb{R}\setminus\{0\},</math> modulo transposition.
* A ''based scale'' is a scale with a chosen basepoint, called the ''tonic''. With the natural ordering on the reals, a based scale can be written as (an equivalence class of) a strictly increasing function <math>S: \mathbb{Z} \to \mathbb{R}</math> such that <math>\cdots < S(-1) < S(0) < S(1) < \cdots</math> where the image of <math>S</math> is the scale.
* A ''based scale'' is a scale with a chosen basepoint, called the ''tonic''. With the natural ordering on the reals, a based scale can be written as (an equivalence class of) a strictly increasing function <math>S: \mathbb{Z} \to \mathbb{R}</math> such that <math>\cdots < S(-1) < S(0) < S(1) < \cdots</math> where the image of <math>S</math> is the scale.
* A ''mode'' is an equivalence class of based scales for a given scale after projecting pitch space into pitch class space modulo the scale's period (not the equave).


== Variables ==
== Variables ==

Revision as of 01:07, 28 December 2025

This document is a style guide. Pages are not required to follow it, but any page that does should link to this page using {{User:Inthar/Template:Notation}}. It documents notation that may differ from conventional xen notation or conventional math notation.

Basic musical objects

  • A chord is a nonempty finite subset of pitch space (which may be represented as ), modulo pitch transposition (which may be represented as addition if is used).
  • A scale is a nonempty discrete subset of pitch space invariant under transposition by a chosen equave E{0}, modulo transposition.
  • A based scale is a scale with a chosen basepoint, called the tonic. With the natural ordering on the reals, a based scale can be written as (an equivalence class of) a strictly increasing function S: such that <S(1)<S(0)<S(1)< where the image of S is the scale.
  • A mode is an equivalence class of based scales for a given scale after projecting pitch space into pitch class space modulo the scale's period (not the equave).

Variables

  • Capital italicized Latin letters may denote based scales written cumulatively: i.e. with S(0) = 0 and S(i + p) = E + S(i) (p = length, E = equave) for every i.
    • S(n) = 100n cents
  • Lowercase italicized Latin letters may denote (rotational equivalence classes of) based scales written as steps, or scale words written as functions of the given arguments. For example:
    • s(a, b, c) = abacaba
    • n=ab1s(n)=S(b)S(a) if s(n):=S(n+1)S(n)
  • Bolded variables denote interval sizes (especially letters of scale words) and elements of lattices. This is optional, but may be used for visual clarity, particularly in pages with more mathematical notation. 0 indicates the unison (so start from 1 if you want to name abstract letters after integers).
    • 5L 2s
  • Sans serif text in typeset equations are scale constructions, or more generally variables and functions named more verbosely than is typical for conventional math notation. On XenBase, you should generally prefer verbose names for scale constructions; when using shorthand, define the shorthand clearly.

Sets

  • For conciseness the following notation is provided for ranges. For x and n>0, [n]x denotes the n-element set {x,x+1,...,x+n1}. [0]x is the empty set, and [ω]x is the set {x+n:n0}. You may also use:
    • [i:j] for [ji]i (i is included, j is excluded)
    • [i:] for [ω]i
    • [:j] for {j1n:n0}
  • Avoid . Use >0 or 0 depending on which is meant.

Words

  • Zero-indexing is used for word indices.
  • A (linear) word is a function w:[n]0𝒜 where 𝒜 is a set (of elements usually called letters) and n0 or n = ∞. n is called the length of w. The letter of w at index i is denoted w[i]. If 0 ≤ i < j ≤ |w| − 1, the slice notation w[i:j] denotes the (ji)-letter word w[i]w[i + 1]...w[j − 1].
  • The length of a linear, based circular, or free circular word s is denoted |s| or len(s).
  • A based circular word is a function s:/n𝒜, where by abuse of notation, s[i] is used for s[i mod n]. The index period of a based circular word s is the minimal p,1p|s|, such that for all i, s[i+p]=s[i]. If the index period of s is equal to the length of s, then s is called primitive.
  • A (free) circular word is an equivalence class of based circular words equivalent under rotation, i.e. a set of the form {xs[x],xs[x+1],...,xs[x+|s|1]} for s a based circular word. Equivalently, a free circular word is an equivalence class of linear words of the same length under conjugacy. A based circular word may be called a mode of the corresponding free circular word or a mode/rotation of another based circular word.
  • For circular words s, if i < j the slice notation s[i:j] denotes the (ji)-letter word s[i]s[i + 1]...s[j − 1], where all indices are taken mod |s|.
  • Shifts: If s is a circular or infinite word, then for k, σk(s)=(xs[x+k]) denotes s shifted to the left by k letters.
  • Substitution: If w is a linear or based circular word in X and possibly other letters, and u is a based circular word, then subst(w,𝐗,u) denotes the word w but with the ith occurrence of X replaced with u[i] (for i ≥ 0).

Algebra

  • JI(p1,...,pr) is the p1.[...].pr subgroup, the subgroup of (>0,) generated by rationals p1,...,pr. For not-necessarily-JI generators, Mul(p1,...,pr) is used.
  • If R is a commutative ring with 1, Rra1,...,ar is the rank-r free R-module generated by basis elements a1,...,ar. Ordered tuples in such modules are assumed to be in the given basis. Example: 𝐦+3𝐬=(0,1,3)3𝐋,𝐦,𝐬

Miscellaneous

  • log with no subscript is base e.
  • s by t denotes the cross-set of scales s and t. sby 0={𝟎},sby n+1=s by sby n is the n-fold iterated cross-set.-
  • "p, lest q" is shorthand for "p, for otherwise q, which is a contradiction".