# The Chromatic Star

An independent educational laboratory and a four-module course on Áureo Puerta Carreño’s **Secret Pattern of Music**: the twelve notes of the chromatic scale wound, on a hexagonal lattice, into six-pointed star-shaped rings.

This is not the author’s official software.

## Open it locally

The app is static HTML, CSS and JavaScript. There is no build step and no need for a network connection once the files are on your computer.

**The simplest way:** open `index.html` in a browser (double-click the file, or drag it onto a browser window). That uses a `file://` URL. Scripts are plain (not ES modules) so they load from `file://` in current Chrome, Firefox and Safari.

**Or serve it over HTTP** from this directory:

```bash
python3 -m http.server 8080
```

Then visit <http://127.0.0.1:8080/>. Stop the server with Ctrl+C.

Alternatives:

```bash
python3 -m http.server 8080 --bind 127.0.0.1
# or, if you have PHP:
php -S 127.0.0.1:8080
# or Node:
npx --yes serve -l 8080
```

You do not need `npx` or PHP for ordinary use.

Browsers will not play sound until you click, tap, or press a key. The first gesture on a cell or a Play button creates or resumes a Web Audio `AudioContext`.

## What is implemented

- A laboratory that draws the published star construction (cube coordinates, hexagram rings of 12m cells, clockwise numbering from the top, empty centre), default starting note C.
- Clickable, keyboard-focusable cells (Enter or Space) that play the pitch class through Web Audio, with a short envelope so the tone does not click. Waveform and listening octave are selectable. An optional “rise one octave per ring” mode is capped so outer rings stay audible.
- A toggle for the fifths/fourths **mirror axis**: the vertical C/F♯ line (when the start is C) plus the mirrored fourths and fifths rays.
- Toggles for all twelve mother-sequence rays, for the tip/joint (whole-tone) colouring of ring 1, and for cell numbers.
- Buttons that highlight and play a **major triad**, a **minor triad**, or a **major scale** on a chosen root, as a geometric figure from the preprint (line across the fifths ray, its mirror, the harmony-zone elbow, or the eight-cell scale figure). Arpeggio, simultaneous chord, and ascending-scale playback.
- An info panel with cell indices, interval names, 12-TET ratios `2^(n/12)`, and just-intonation ratios clearly labelled as a comparison only.
- Four short lesson modules, each with text, an embedded lab preset, and three check-your-understanding questions (client-side only). Progress is stored in `localStorage` when the browser allows it.
- Module 4 is conceptual: chromatic circle, circle of fifths, and the standard Tonnetz torus, with a clear note that the 2026 preprint does not itself develop a torus, and that 3-D solids are future work in the source.

## What is not implemented (future extensions)

- An interactive 3-D cuboctahedron or torus view (the preprint defers 3-D solids to later versions; the official supplementary script already checks a cuboctahedron lift).
- Showing all twelve major-triad lines at once out to ring 13 (this lab caps the view at eight rings).
- Animated chaining of the twelve major scales along the tetrachord road.
- Playback of just-intonation frequencies (the grid is 12-TET; just ratios are informational).
- A built-in copy of the official book or the official laboratory (use the author’s site for those).
- User accounts, server-side progress, or a build/bundler toolchain.

## Attribution

System conceived by **Áureo Puerta Carreño** in 2016; earliest public record cited in the preprint: 21 April 2017, Instagram [@aureoguitar](https://www.instagram.com/aureoguitar/).

Official site: [https://thesecretpatternofmusic.com](https://thesecretpatternofmusic.com)

Official interactive laboratory: [https://thesecretpatternofmusic.com/research-lab-beta/](https://thesecretpatternofmusic.com/research-lab-beta/)

Preprint (version 1.0):

Puerta Carreño, Á. (2026). *The Secret Pattern of Music: The chromatic scale wound into a six-pointed star* (Version 1.0). Zenodo. [https://doi.org/10.5281/zenodo.24096984](https://doi.org/10.5281/zenodo.24096984)

Concept DOI (always the current version): [https://doi.org/10.5281/zenodo.24096983](https://doi.org/10.5281/zenodo.24096983)

Licence of the preprint: [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) (non-commercial). This unofficial course paraphrases the construction and should be used consistently with that licence.

The author also offers free Book 1 PDFs from the official site: [English](https://thesecretpatternofmusic.com/Aureos_Star_-_Book_1_EN.pdf), [español](https://thesecretpatternofmusic.com/Libro_Aureo_-_Libro_1%20(1).pdf).

## Disclaimer

This project is an **independent educational re-creation**. It is not affiliated with, endorsed by, or a substitute for the author’s official site, book, or laboratory. Some presentation details (for example, stating that the two tip triangles of ring 1 are the two augmented triads of one whole-tone scale, or bridging the published harmony zone to the standard Tonnetz torus) are this app’s own interpretation or standard music theory, and are labelled as such in the lessons. The app does not make claims about cosmology, esoteric physics, or healing.

## Checks

From this directory:

```bash
./check.sh
```

A passing run prints `GATE: PASS`. Geometry is checked against the published ring rule; JavaScript is syntax-checked with `node --check` when Node is available; published http(s) links are requested with `curl`.
