---
title: Tonal Interval Vector (TIV) Overview
url: https://www.emergentmind.com/topics/tonal-interval-vector-tiv
type: topic
---

# Tonal Interval Vector (TIV) Overview

The **Tonal Interval Vector (TIV)** is a perceptually weighted, \(L_1\)-normalized **DFT representation of 12-bin chroma** that maps audio-derived or symbolic **pitch-class profiles** into a **6-dimensional complex tonal space**. In the formulation underlying **TIV.lib**, it is presented as the core representation for the tonal description of musical audio, with **magnitudes** describing the **intervallic/harmonic quality** of a sonority and **phases** describing its **tonal position**, including transposition and key-region information [2008.11529]. Across the cited literature, TIV functions as a compact, continuous, and musically interpretable representation that can support local and global tonal description, similarity computation, key estimation, harmonic mixing, visualization, and tension modeling without requiring full audio-to-symbolic transcription [2008.11529].

## 1. Formal definition and representational basis

In the cited formulation, TIV is obtained by taking a **12-dimensional chroma or pitch-class profile** and mapping it into the first six non-redundant coefficients of the **Discrete Fourier Transform**. The direct input is not raw audio itself, but a **12-element chroma vector** \(c(n)\), also referred to as a pitch profile. The library is explicitly agnostic to the exact chroma extraction method; examples mentioned include **PCP**, **HPCP**, **CRP chroma**, and **NNLS chroma** [2008.11529].

The mathematical definition is given as
$$
T(k)= w_a(k) \sum_{n=0}^{N-1} \bar{c}(n) e^{\frac{-j2\pi kn}{N}}, \qquad k \in \mathbb{Z}, \qquad \bar{c}(n)=\frac{c(n)}{\sum_{n=0}^{N-1} c(n)}
$$
with \(N=12\), \(k=1,\dots,6\), and perceptual weights
$$
w_a(k) = \{3,\ 8,\ 11.5,\ 15,\ 14.5,\ 7.5\}.
$$
Because the DFT of a real 12-dimensional vector is symmetric, the remaining coefficients are redundant. The resulting TIV is therefore a **6-element complex vector** [2008.11529].

Two ingredients are emphasized. First, **\(L_1\)-normalization** makes the representation independent of overall energy and allows “hierarchical or multi-level pitch” representation. Second, **weighting by perceptual consonance** is intended to align the space with empirical consonance/dissonance judgments and to reflect the harmonic structure of orchestral-instrument spectra [2008.11529].

The cited papers describe this construction as an extension of earlier music-theoretic work on the **DFT of pitch profiles** into the audio and MIR domain. In that framing, TIV is not merely another chroma transform. It is a tonal feature space in which the full complex representation preserves the DFT’s **bijective relation** with the original normalized pitch profile, so that a variable-density pitch profile has a unique location in TIV space [2008.11529].

## 2. Magnitude, phase, and tonal geometry

The representation is decomposed into **magnitude** and **phase**:
$$
\mathrm{mag}(k) = \|T(k)\|
$$
and
$$
\mathrm{phases}(k) = \angle T(k).
$$
The magnitude vector is denoted **TIV.mag**, and the phase vector **TIV.phases**. The cited interpretation is explicit: **magnitude = harmonic quality / interval content**, whereas **phase = tonal region / transposition / harmonic proximity** [2008.11529].

A central geometric property is that **transposition corresponds to rotation** in the complex plane. A transposition of a pitch profile by \(p\) semitones rotates coefficient \(T(k)\) by
$$
\varphi(p)=\frac{-2\pi kp}{N}.
$$
This preserves magnitude while changing phase. As a consequence, **TIV.mag is invariant under transposition or inversion**, whereas the full complex TIV remains unique because phase information is retained [2008.11529].

The cited literature assigns approximate intervallic interpretations to the six coefficient magnitudes:

| Coefficient magnitude | Approximate interpretation |
|---|---|
| \(\|T(1)\|\) | chromaticity |
| \(\|T(2)\|\) | dyadicity |
| \(\|T(3)\|\) | triadicity |
| \(\|T(4)\|\) | diminished quality |
| \(\|T(5)\|\) | diatonicity |
| \(\|T(6)\|\) | whole-toneness |

A more general interpretation is also given: a large magnitude in \(T(k)\) indicates that the pitch profile can be divided evenly by \(N/k\). Since \(N=12\), different values of \(k\) emphasize different regularities in the pitch-class circle. In more specific tonal terms, \(T(1)\) tracks concentration around a location in the chromatic circle, \(T(5)\) tracks concentration in the **circle of fifths**, and \(T(6)\) captures alignment with one of the two whole-tone collections [2008.11529].

The geometric reading extends beyond isolated sonorities. The cited account attributes to TIV space several properties: **bijectivity and uniqueness**, **transposition as rotation**, **magnitude invariance**, **tonal similarity and mixing** through angular comparison, **voice-leading and regional proximity** through Euclidean geometry, **key-region clustering** in phase structure, and a **consonance/dissonance structure** induced by the weighting scheme [2008.11529]. A plausible implication is that the usefulness of TIV depends precisely on preserving the complex coefficients rather than discarding phase.

## 3. Descriptors, metrics, and operations in TIV space

The cited work presents TIV not only as a representation, but also as the basis of a family of descriptors and metrics. Two basic comparison functions are defined. The **Euclidean distance**
$$
E\{T_1,T_2\}=\sqrt{\|T_1-T_2\|^2}
$$
is associated with local geometric closeness, melodic or “horizontal” relations, and **Tonnetz-like neighboring relations**. The **cosine similarity**
$$
C\{T_1,T_2\}=\frac{T_1 \cdot T_2}{\|T_1\|\|T_2\|}
$$
is used as an angular comparison measuring how well pitch profiles “fit” together, including tonal proximity and harmonic mixing [2008.11529].

A practically important operation is **linear combination**. For two TIVs \(T_1(k)\) and \(T_2(k)\) with energies \(a_1\) and \(a_2\), the mixture is
$$
T_{1+2}(k)=\frac{T_1(k)\cdot a_1 + T_2(k)\cdot a_2}{a_1+a_2}.
$$
The cited account states that the energies are retrieved from the discarded DC components. This linearity is presented as important for **harmonic mixing** and for efficient retrieval from large datasets [2008.11529].

Several scalar descriptors are defined from specific coefficients. **TIV.chromaticity** is
$$
\mathrm{chromaticity} = \frac{\|T(1)\|}{w_a(1)},
$$
with range \([0,1]\), and is interpreted as concentration in a specific region of the chromatic circle. **TIV.diatonicity** is
$$
\mathrm{diatonicity} = \frac{\|T(5)\|}{w_a(5)},
$$
also in \([0,1]\), and indicates stronger concentration in the circle of fifths. **TIV.whole-toneness** is
$$
\mathrm{whole\text{-}toneness} = \frac{\|T(6)\|}{w_a(6)},
$$
again in \([0,1]\), and measures proximity to one of the two whole-tone collections in 12-TET [2008.11529].

The cited paper also defines **TIV.hchange**, a harmonic change detection function,
$$
\lambda_m=\sqrt{\|T_{m-1}-T_{m+1}\|^2},
$$
whose peaks indicate transitions between harmonically stable regions. **TIV.diss** is given as
$$
\mathrm{diss} = 1 - \frac{|T(k)|}{|w_a(k)|},
$$
in a coefficient-wise form. The cited discussion explicitly notes that this expression appears to define dissonance per coefficient or dimension rather than as one single scalar unless further aggregated externally [2008.11529].

For **key estimation**, the cited formulation computes Euclidean distance between an input TIV and a bank of 24 key-profile TIVs derived from major and minor templates:
$$
R_{\min} = \operatorname{argmin}_r \sqrt{\left\| T\cdot \alpha - T^{p\star}_r \right\|^2}.
$$
The index \(r=0,\dots,11\) corresponds to major keys and \(r=12,\dots,23\) to minor keys. The recommended bias values are \(\alpha=0.2\) for **Temperley** profiles and \(\alpha=0.55\) for **Sha’ath** profiles. The output integer encodes tonic and mode, from \(0=\) C major to \(23=\) B minor [2008.11529].

## 4. Input assumptions, time scale, and multilevel operation

The workflow described for audio-domain TIV is explicit: start with musical audio, compute a time series of **12-bin chroma/pitch-class vectors**, and feed each chroma frame, or an average over frames, into the TIV transform. The package includes tutorial examples for **HPCP extraction** using **Essentia** and **Librosa**, but the library itself expects the chroma representation as input [2008.11529].

A central caveat is that **the choice of chroma representation affects the TIV space**. The cited recommendation is to use the “cleanest” chroma possible, meaning one closest to a symbolic pitch-class representation. This makes TIV dependent on upstream chroma quality and places part of the interpretive burden on the front-end representation [2008.11529].

The same transform supports both **instantaneous/local** and **global/aggregated** analysis. For **instantaneous TIVs**, a single chroma frame is used. For **global TIVs**, consecutive chroma vectors are averaged over time before TIV computation. The cited work therefore presents TIV as a **multi-level tonal representation**, capable of describing a local harmonic state, a segment-level profile, or the tonal summary of a larger passage [2008.11529].

A closely related symbolic-MIDI workflow appears in the visualization literature. A real-time web application computes, for each sliding window, a **12-dimensional pitch-class count vector**, normalizes it with the \(L^1\) norm, and maps it under the Fourier transform; the result is interpreted through the six complex coefficients \(1\) to \(6\) [2203.13158]. That paper does **not** explicitly use the term “Tonal Interval Vector,” but it is described as operationally corresponding closely to the canonical TIV framework. It emphasizes that normalization ensures the coefficients lie inside the **unit circle**, and it treats magnitude and phase as musically distinct quantities: **magnitude** as the strength of the tonal property, and **phase** as the transpositional or functional orientation [2203.13158].

This convergence between audio-domain and symbolic-domain practice suggests that TIV is best understood as a pitch-class-domain formalism rather than a modality-specific feature. The cited literature consistently places the chroma or pitch-class vector, not the raw signal format, at the immediate input to the transform.

## 5. Implementations, visualization systems, and downstream applications

The principal implementation described in the cited corpus is **TIV.lib**, an **open-source**, **cross-platform** library implemented in **Python** and **Pure Data** for both **offline** and **online/real-time** usage [2008.11529]. The Python version targets **batch offline processing** and depends only on **NumPy** and **SciPy**. The Pure Data version is oriented to **online/live processing**, though it can also perform offline computation. Example usage in Python follows the pattern of creating a TIV object from a pitch-class profile and then calling methods such as `wholetoneness()`, `diatonicity()`, and `chromaticity()` [2008.11529].

A distinct implementation trajectory appears in **midiVERTO**, a web application that visualizes DFT coefficients of pitch-class content in real time. Its contribution is not new TIV mathematics but a visualization framework based on **unit disks in the complex plane**, **phase as color**, **magnitude as opacity**, coefficient-space **trajectories**, and hierarchical **wavescapes** [2203.13158]. The cited case study on *Phantom of the Opera* interprets coefficient \(3\) in relation to augmented-triad and hexatonic organization, and coefficient \(5\) in relation to diatonic scales and key motion [2203.13158]. This visualization-oriented work is presented as being in the same representational family as TIV, but with different vocabulary and emphasis.

The application range described for TIV in MIR includes **chord recognition**, **key estimation**, **query-by-humming**, **cover song detection**, **nearest-neighbor retrieval over large audio collections**, **harmonic mixing**, and **mashup creation** [2008.11529]. The cited paper also refers to prior evaluations in **key recognition** and **harmonic mixing**, and mentions **Musikverb**, a harmonically adaptive reverberation effect, as a creative application [2008.11529].

A later symbolic-generation paper uses TIV as the core representation for an explicit notion of **tonal tension**. In that system, TIV-derived measures of **Tonal Distance**, **Tonal Dissonance**, and **Voice Leading** are combined into a weighted tension value, with dissonance and voice leading scaled by **30.3** and **2.71** respectively [2511.19342]. Tension is aggregated as the **average tonal tension for all completed bars**, forming a candidate tension curve that is used for **bar-level re-ranking** in a **dual-level beam search**. The cited results report **Tension Correlation** values of **0.16** for a baseline without tension control, **0.18** for a baseline with a tension token, **0.50** for “Dual Beam 1,” **0.48** for “Dual Beam 2,” **0.45** for “Dual Beam 3,” and **0.42** for a **16-bar Dual Beam 1** condition [2511.19342]. The paper’s argument for TIV in this setting is that it is **computationally efficient**, captures **multilevel pitch configurations**, and reflects chord similarity and perceptual harmonic relationships [2511.19342].

## 6. Scope, limitations, and interpretive cautions

Several limitations and assumptions are explicit in the cited literature. First, TIV is dependent on the quality of the upstream **chroma extraction**. Different representations such as **HPCP**, **NNLS chroma**, or timbre-invariant chroma may affect behavior, and this is explicitly identified as future work [2008.11529]. Second, the framework is described as **equal-tempered** and **enharmonic**, built around the **12-tone chromatic pitch-class system** of Western tonal music [2008.11529].

Third, the perceptual weights \(w_a(k)\) are **fixed** in the library and are not claimed to be universally optimal. They are derived from empirical consonance ratings and adjusted with assumptions about average orchestral spectra, with future work proposed on source-dependent optimal weights [2008.11529]. Fourth, because TIV starts from chroma or pitch-class abstraction, it **collapses octave information** and emphasizes pitch class rather than pitch height [2008.11529].

The cited literature also cautions against terminological overextension. The visualization paper [2203.13158] does not explicitly use the term **Tonal Interval Vector**; it speaks instead of the **DFT of pitch-class content** and the trajectories of **Fourier coefficients**. The relationship is described as one of close correspondence rather than strict identity. This suggests that TIV should be understood both as a specific MIR formalization and as part of a broader DFT-on-pitch-classes tradition.

A further caution concerns descriptor interpretation. The dissonance expression \(1-|T(k)|/|w_a(k)|\) is given in a compact coefficient-wise form, and the cited discussion explicitly notes that the precise aggregation behavior requires careful reading of the implementation [2008.11529]. Likewise, the symbolic-generation application notes a **key imbalance** in the dataset and does not claim explicit transposition invariance in its implementation, even though TIV as a representation supports musically relative comparison through its complex geometry [2511.19342].

Taken together, the cited literature presents TIV as a representation in which **magnitude** encodes intervallic and harmonic quality, **phase** encodes transposition and tonal region, **geometry** supports similarity and key relations, and the same transform can be deployed at local, segmental, and global scales. Its principal significance lies in unifying tonal description, perceptual weighting, and computational tractability within a single complex pitch-class-domain formalism [2008.11529].

Source: https://www.emergentmind.com/topics/tonal-interval-vector-tiv