New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tonaljs/chord

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tonaljs/chord - npm Package Compare versions

Comparing version

to
5.0.0

1

dist/index.js

@@ -161,2 +161,3 @@ "use strict";

steps,
// deprecate
chord

@@ -163,0 +164,0 @@ };

6

package.json
{
"name": "@tonaljs/chord",
"version": "4.10.2",
"version": "5.0.0",
"description": "Musical chords and its relations",

@@ -19,4 +19,4 @@ "keywords": [

"dependencies": {
"@tonaljs/chord-detect": "^4.8.1",
"@tonaljs/chord-type": "^4.8.2",
"@tonaljs/chord-detect": "^4.8.2",
"@tonaljs/chord-type": "^5.0.0",
"@tonaljs/collection": "^4.8.0",

@@ -23,0 +23,0 @@ "@tonaljs/core": "^4.10.0",

@@ -53,3 +53,3 @@ # @tonaljs/chord ![tonal](https://img.shields.io/badge/@tonaljs-chord-yellow.svg?style=flat-square) [![npm version](https://img.shields.io/npm/v/@tonaljs/chord.svg?style=flat-square)](https://www.npmjs.com/package/@tonaljs/chord)

#### `Chord.get(name: string) =>`
#### `Chord.get(name: string | [string, string]) => Chord`

@@ -61,6 +61,8 @@ An alias of `Chord.getChord` but accepts a chord symbol as parameter.

// same as
Chord.get(["C", "maj7"]);
// same as
Chord.getChord("maj7", "C");
```
Important: currently chord with roots are NOT allowed (will be implemented in next version):
Important: currently chord with bass are NOT allowed (will be implemented in next version):

@@ -71,3 +73,3 @@ ```js

### `Chord.degrees(chordName: string) => (degree: number) => string`
### `Chord.degrees(chordName: string | [string, string]) => (degree: number) => string`

@@ -77,3 +79,3 @@ `Scale.degrees` returns a function to get a note name from a scale degree:

```js
const c4m7 = Chord.degrees("C4m7");
const c4m7 = Chord.degrees(["C4", "m7");
c4m7(1); // => "C4"

@@ -80,0 +82,0 @@ c4m7(2); // => "Eb4"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet