chord

A chord is 2 (typically 3) or more notes that combine harmoniously. Scribbletune uses Tonal as a dev dependency to create a simplified version of its chords in another module called Harmonics. This ensures a small footprint for music theory in Scribbletune.

Using Chords

Use chords by their commonly used names. For instance, here is a chord progression set up via chord names:

import { chords } from 'scribbletune';
 
// Get a list of all the available chords
const allChords = chords(); // Returns an array of all the available chords

Examples

Here’s how chords can be used in Scribbletune:

import { chord } from 'scribbletune';
 
// Get C Major (Major is denoted by M)
const cMajorChord = chord('C4 M'); // [ 'C4', 'E4', 'G4' ]
 
// Get the C Major chord on the 5th octave
const cMajorChord5 = chord('C5 M'); // [ 'C5', 'E5', 'G5' ]
 
// Get the C minor chord (denoted with a lowercase `m`)
const cMinorChord = chord('C4 m'); // [ 'C4', 'EB4', 'G4' ]

List of Available Chords

Scribbletune uses Tonal behind the scenes to manage chords. However, it renames chords such as C5 and C13 to C5th and C13th to avoid confusion with notes. Here are some of the possible chords in Scribbletune:

  • +add#9
  • 11th
  • 13th
  • 7b9
  • m7
  • M7#11
  • sus4

For more details, visit the official documentation at Scribbletune Chord Documentation.