Skip to content

Commit

Permalink
Merge pull request #120 from grimmdude/update_tonaljs
Browse files Browse the repository at this point in the history
Update tonaljs to current version
  • Loading branch information
grimmdude authored Sep 8, 2023
2 parents 345c575 + 0c2611f commit b983bba
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
54 changes: 27 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "build/index.js",
"types": "types.d.ts",
"dependencies": {
"tonal-midi": "^0.69.7"
"@tonaljs/midi": "^4.9.0"
},
"devDependencies": {
"@babel/core": "^7.9.6",
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Constants} from './constants';
import {toMidi} from 'tonal-midi';
import {toMidi} from '@tonaljs/midi';

/**
* Static utility functions used throughout the library.
Expand Down Expand Up @@ -40,7 +40,7 @@ class Utils {
* @param {string} middleC
* @return {number}
*/
static getPitch(pitch: (string|string[]|number|number[]), middleC = 'C4'): number {
static getPitch(pitch: any, middleC = 'C4'): number {
return 60 - toMidi(middleC) + toMidi(pitch);
}

Expand Down

0 comments on commit b983bba

Please sign in to comment.