Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.0.0 #414

Merged
merged 2 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .changeset/flat-games-sneeze.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/lovely-maps-promise.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/mean-dryers-compare.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/red-bags-scream.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sweet-ants-leave.md

This file was deleted.

120 changes: 119 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,122 @@
# CHANGELOG
# tonal

## 6.0.0

### Major Changes

#### Breaking change: chord uses pitch classes, never notes with octaves

Chords now uses only pitch classes. Before `Chord.getChord('M', 'C4')` would consider `C4` to be the tonic and now is `C``

So **before**:

```js
Chord.get("M", "C4"); // =>
// {
// name: 'C4 major',
// tonic: 'C4',
// notes: [ 'C4', 'E4', 'G4' ]
// ...
// }
```

**Now**:

```js
Chord.get("M", "C4"); // =>
// {
// name: 'C major',
// tonic: 'C',
// notes: [ 'C', 'E', 'G' ]
// }
```

#### Feature: slash chords

- Chord now accepts a slash and a bass. The bass _must_ be a pitch class
- Chord properties include `bass` that is a pitch class that could or could not belong to the chord itself.

Example:

```js
Chord.get("Cmaj7/B");
Chord.get("Eb/D");
```

#### Feature: chord `notes`

Now `notes` property of a chord are always pitch classes, there's a new function to get the actual notes:

```js
Chord.notes("Cmaj7", "C4"); // => ['C4', 'E4', 'G4', 'B4']
Chord.notes("maj7", "D5"); // => ['D5', 'F#5', 'A5', 'C#6']
```

- 48fecc4: Fix typo (breaking change): `substract` is now `subtract`
- 48fecc4: Breaking change: remove `NoInterval` interface. Return `Interval` type (with `emtpy: true`) when parsing invalid intervals.
- 48fecc4: Breaking change: `NoNote` interface is removed. Always return `Note` type (with `empty: true`) when parsing invalid notes.

### Patch Changes

Updated dependencies

## 5.2.x

Updated dependencies

## 5.2.0

### Minor Changes

- Add `Pcset.notes()` function that returns the ordered pitch class notes of the given set

### Patch Changes

- Updated dependencies [f21525b]

## 5.1.3

### Patch Changes

- Named type was renamed to NamedPitch. Add old export for backwards compatibility
- Updated dependencies

## 5.1.2

### Patch Changes

- Move core into pitch modules
- Updated dependencies
- @tonaljs/[email protected]

## 5.1.1

### Patch Changes

- Restructure code to use new `@tonaljs/pitch`. No changes to functionality
- Updated dependencies
- @tonaljs/[email protected]

## 5.1.0

### Minor Changes

- Publish voicing packages. Now there a three new namespaces:

```ts
import { VoiceLeading, Voicing, VoicingDictionary } from "tonal";
```

- Updated dependencies [15017c0]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]

## 5.0.1

- Add -maj7 chord alias
- Updated dependencies
- @tonaljs/[email protected]

## 5.0.0

Expand Down
8 changes: 8 additions & 0 deletions packages/abc-notation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tonaljs/abc-notation

## 4.8.3

### Patch Changes

- Updated dependencies [48fecc4]
- @tonaljs/[email protected]
- @tonaljs/[email protected]

## 4.8.x

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/abc-notation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonaljs/abc-notation",
"version": "4.8.2",
"version": "4.8.3",
"description": "Parse musical notes in abc notation",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand All @@ -9,8 +9,8 @@
],
"types": "dist/index.d.ts",
"dependencies": {
"@tonaljs/pitch-distance": "5.0.2",
"@tonaljs/pitch-note": "5.0.1"
"@tonaljs/pitch-distance": "5.0.3",
"@tonaljs/pitch-note": "6.0.0"
},
"keywords": [
"note",
Expand Down
4 changes: 2 additions & 2 deletions packages/array/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonaljs/array",
"version": "4.8.2",
"version": "4.8.3",
"description": "Functions to work with arrays of tonal objects",
"keywords": [
"array",
Expand All @@ -15,7 +15,7 @@
],
"types": "dist/index.d.ts",
"dependencies": {
"@tonaljs/pitch-note": "5.0.1"
"@tonaljs/pitch-note": "6.0.0"
},
"author": "[email protected]",
"license": "MIT",
Expand Down
10 changes: 10 additions & 0 deletions packages/chord-detect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @tonaljs/chord-detect

## 4.8.5

### Patch Changes

- Updated dependencies [48fecc4]
- Updated dependencies [48fecc4]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]

## 4.8.4

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/chord-detect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonaljs/chord-detect",
"version": "4.8.4",
"version": "4.8.5",
"description": "Detect chord name based on note names",
"keywords": [
"chord-detect",
Expand All @@ -15,9 +15,9 @@
],
"types": "dist/index.d.ts",
"dependencies": {
"@tonaljs/chord-type": "5.0.4",
"@tonaljs/core": "4.10.4",
"@tonaljs/pcset": "4.9.1"
"@tonaljs/chord-type": "5.0.5",
"@tonaljs/core": "5.0.0",
"@tonaljs/pcset": "4.9.2"
},
"author": "[email protected]",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions packages/chord-dictionary/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @tonaljs/chord-dictionary

## 4.8.4

### Patch Changes

- @tonaljs/[email protected]

## 4.8.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chord-dictionary/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonaljs/chord-dictionary",
"version": "4.8.3",
"version": "4.8.4",
"description": "A dictionary of musical chords",
"keywords": [],
"main": "dist/index.js",
Expand All @@ -10,7 +10,7 @@
],
"types": "dist/index.d.ts",
"dependencies": {
"@tonaljs/chord-type": "5.0.4"
"@tonaljs/chord-type": "5.0.5"
},
"author": "[email protected]",
"license": "MIT",
Expand Down
9 changes: 9 additions & 0 deletions packages/chord-type/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @tonaljs/chord-type

## 5.0.5

### Patch Changes

- Updated dependencies [48fecc4]
- Updated dependencies [48fecc4]
- @tonaljs/[email protected]
- @tonaljs/[email protected]

## 5.0.4

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/chord-type/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonaljs/chord-type",
"version": "5.0.4",
"version": "5.0.5",
"description": "A dictionary of musical chords",
"keywords": [
"chord",
Expand All @@ -17,8 +17,8 @@
],
"types": "dist/index.d.ts",
"dependencies": {
"@tonaljs/core": "4.10.4",
"@tonaljs/pcset": "4.9.1"
"@tonaljs/core": "5.0.0",
"@tonaljs/pcset": "4.9.2"
},
"author": "[email protected]",
"license": "MIT",
Expand Down
Loading
Loading