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

tonal-note

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tonal-note - npm Package Compare versions

Comparing version 0.69.7 to 0.69.8

1

build/index.js

@@ -221,3 +221,2 @@ 'use strict';

function pcFifths (note$$1) {
console.warn('note.pcFifths() is deprecated. Use distance.inFifths()');
var p = tonalPitch.asNotePitch(note$$1);

@@ -224,0 +223,0 @@ return p ? tonalPitch.fifths(p) : null

@@ -217,3 +217,2 @@ /**

export function pcFifths (note) {
console.warn('note.pcFifths() is deprecated. Use distance.inFifths()')
var p = asNotePitch(note)

@@ -220,0 +219,0 @@ return p ? fifths(p) : null

4

package.json
{
"name": "tonal-note",
"version": "0.69.7",
"version": "0.69.8",
"repository": "https://github.com/danigb/tonal/packages/note",

@@ -17,3 +17,3 @@ "description": "Encode pitches using fifths/octaves",

"note-parser": "^2.0.1",
"tonal-freq": "^0.69.7",
"tonal-freq": "^0.69.8",
"tonal-midi": "^0.69.7",

@@ -20,0 +20,0 @@ "tonal-pitch": "^0.69.7",

@@ -57,3 +57,3 @@ <a name="module_note"></a>

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>Integer</code> - the midi number or null if not valid pitch

@@ -64,3 +64,3 @@ **See**: midi.toMidi

| --- | --- | --- |
| note | <code>Array</code> &#124; <code>String</code> &#124; <code>Number</code> | the note to get the midi number from |
| note | <code>Array</code> \| <code>String</code> \| <code>Number</code> | the note to get the midi number from |

@@ -77,3 +77,3 @@ **Example**

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>String</code> - the note name

@@ -97,3 +97,3 @@ **See**: midi.note

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>Number</code> - the frequency

@@ -104,3 +104,3 @@ **See**: freq.toFreq

| --- | --- | --- |
| note | <code>Array</code> &#124; <code>String</code> &#124; <code>Number</code> | the note to get the frequency |
| note | <code>Array</code> \| <code>String</code> \| <code>Number</code> | the note to get the frequency |

@@ -117,3 +117,3 @@ **Example**

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>Integer</code> - the chroma

@@ -123,3 +123,3 @@

| --- | --- |
| note | <code>String</code> &#124; <code>Pitch</code> |
| note | <code>String</code> \| <code>Pitch</code> |

@@ -141,7 +141,7 @@ **Example**

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
| Param | Type |
| --- | --- |
| n | <code>Pitch</code> &#124; <code>String</code> |
| n | <code>Pitch</code> \| <code>String</code> |

@@ -159,3 +159,3 @@ **Example**

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
<a name="module_note.props"></a>

@@ -166,3 +166,3 @@

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>Object</code> - the object with note properties or null if not valid note

@@ -172,3 +172,3 @@

| --- | --- | --- |
| note | <code>String</code> &#124; <code>Pitch</code> | the note |
| note | <code>String</code> \| <code>Pitch</code> | the note |

@@ -185,3 +185,3 @@ **Example**

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>String</code> - the note name

@@ -207,3 +207,3 @@

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>Integer</code> - the octave, undefined if its a pitch class or null if

@@ -214,3 +214,3 @@ not a valid note

| --- | --- | --- |
| note | <code>String</code> &#124; <code>Pitch</code> | the note |
| note | <code>String</code> \| <code>Pitch</code> | the note |

@@ -229,3 +229,3 @@ **Example**

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>Integer</code> - a number between 0 and 6 or null if not a note

@@ -235,3 +235,3 @@

| --- | --- | --- |
| note | <code>String</code> &#124; <code>Pitch</code> | the note |
| note | <code>String</code> \| <code>Pitch</code> | the note |

@@ -250,3 +250,3 @@ **Example**

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>Integer</code> - the number of fifths to reach that pitch class from 'C'

@@ -256,3 +256,3 @@

| --- | --- | --- |
| note | <code>String</code> &#124; <code>Pitch</code> | the note (can be a pitch class) |
| note | <code>String</code> \| <code>Pitch</code> | the note (can be a pitch class) |

@@ -265,3 +265,3 @@ <a name="module_note.alt"></a>

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>Integer</code> - the alteration

@@ -271,3 +271,3 @@

| --- | --- | --- |
| note | <code>String</code> &#124; <code>Pitch</code> | the note |
| note | <code>String</code> \| <code>Pitch</code> | the note |

@@ -285,3 +285,3 @@ **Example**

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>String</code> - the pitch class

@@ -291,3 +291,3 @@

| --- | --- |
| n | <code>String</code> &#124; <code>Pitch</code> |
| n | <code>String</code> \| <code>Pitch</code> |

@@ -305,3 +305,3 @@ **Example**

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>Array</code> - an array of pitches ordered by distance to the given one

@@ -326,3 +326,3 @@

**Kind**: static method of <code>[note](#module_note)</code>
**Kind**: static method of [<code>note</code>](#module_note)
**Returns**: <code>String</code> - the simplfiied note (if not found, return same note)

@@ -329,0 +329,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc