npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ts-tonnetz

v0.0.86

Published

TypeScript Tonnetz is a set of structures and functions from mathematical music theory

Downloads

18

Readme

TypeScript Tonnetz

TypeScript Tonnetz is a set of functions and operations from Mathematical Music Theory (transformational approach). Specifically, it deals with Tonnetz spaces and functions related to the topic. The objective is not musicological analysis itself, but the application of these tools born from analysis for algorithmic composition and live coding.

It emerged as a development branch to contribute to Miika Alonen's phenomenal ZifferJS project.

Features Implemented

Transformations and functions follow the edge flip between triangles and their geometries (so far), so they maintain two common notes (not necessarily voice-leading considerations). In other words, diferent Tonnetz Spaces follow the voice-leading space geometry of the conventional Tonnetz.

  • [x] PRL functions and compositions of any length, cardinal transformations
  • [x] Film music transformations: f(), n(), s(), h(), t6()
  • [x] HexaCycles, OctaCycles, EnneaCycles, Hamiltonian Cycles
  • [x] Weitzmann Regions, Boretz Regions, OctaTowers
  • [x] Cube Dance, Power Towers

Mathematical inspiration (Trajectoires) in the Doctoral thesis written by Louis Bigo:

Représentations symboliques musicales et calcul spatial (2013).

Dual geometry of the Tonnetz

We have implemented all the Neo-Riemannian functions developed in the Doctoral thesis written by Sonia Cannas:

GEOMETRIC REPRESENTATION AND
ALGEBRAIC FORMALIZATION OF
MUSICAL STRUCTURES (2018)

Each of these new transformations from the generalized transformational theory for seventh chords is enabled for the Tonnetz you want to explore.

PLRQ-group

  • [x] p12, p14, p23, p35
  • [x] r12, r23, r42, r35, r53
  • [x] l13, l15, l42
  • [x] q43, q15, rr35, qq51, n51

PLRQ-group extended

Includes more types of seventh chords and their transformations between them.

  • [x] p18, p19, p26, p39, p47, p64, p87, p98
  • [x] r63, r76, r86, l71, l89, q62, q76
  • [x] rr19, rr39, rr98, qq38, qq98

PLR*-group

Transformations with augmented and diminished triads.

  • [x] p, r, l, p32, p41, lt13, l41, l14, rt23, rt42, q13, q42, n42

ST-group

Transformations between triad chords and different types of seventh chords. The groups PLRQ and PLR* must be included.

  • [x] p1M, l1d, p2m, r2M, p3d, r3m, p4M, l4m, p5d, r5d, rr5d, z5d

Mathematical inspiration in the paper:

A Generalized Dual of the Tonnetz for Seventh Chords:
Mathematical, Computational and Compositional Aspects
(Sonia Cannas and Moreno Andreatta, 2018).

Extensions of the Axis System in Béla Bartók

Generalized implementation on any Tonnetz of the harmonic groups of axis system ideaded by Ernő Lendvai: Tonic (8 chords), Subdominant (8 chords), and Dominant (8 chords). The parameters specify two directions, sought emotion (based on the ideas of Mauro de Maria), cross or diagonal movement. Major-minor and minor-major alternation available for cross path.

The manipulation can be done using a single function:

  • genCardinalPoints()

Groups with chord roots separated by major thirds (which we will call triangular) are also added.

  • genTriangularPoints()

We added six new graphs generalized inspired by the idea of cardinal points (extension of the axial system) for film music by Mauro de Maria. These graphs link the groups of cardinal points with the groups of three chords.

Each graph can be manipulated from a single function:

  • genCardinalTriangularGraph()

Contributing

  • New features (feat: <...> )
  • Fix errors and bugs (fix: <...>)
  • Refactor (refactor: <...>)
  • Testing (test: <...>)
  • Documentation (docs: <...>)