@tonaljs/chord
Advanced tools
Comparing version
@@ -60,3 +60,2 @@ "use strict"; | ||
}; | ||
var NUM_TYPES = /^(6|64|7|9|11|13)$/; | ||
function tokenize(name) { | ||
@@ -70,10 +69,3 @@ const [letter, acc, oct, type] = (0, import_core2.tokenizeNote)(name); | ||
} | ||
if (!type && (oct === "4" || oct === "5")) { | ||
return [letter + acc, oct]; | ||
} | ||
if (NUM_TYPES.test(oct)) { | ||
return [letter + acc, oct + type]; | ||
} else { | ||
return [letter + acc + oct, type]; | ||
} | ||
return [letter + acc, oct + type]; | ||
} | ||
@@ -80,0 +72,0 @@ function get(src) { |
{ | ||
"name": "@tonaljs/chord", | ||
"version": "4.10.1", | ||
"version": "4.10.2", | ||
"description": "Musical chords and its relations", | ||
@@ -19,8 +19,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@tonaljs/chord-detect": "^4.8.0", | ||
"@tonaljs/chord-type": "^4.8.1", | ||
"@tonaljs/chord-detect": "^4.8.1", | ||
"@tonaljs/chord-type": "^4.8.2", | ||
"@tonaljs/collection": "^4.8.0", | ||
"@tonaljs/core": "^4.10.0", | ||
"@tonaljs/pcset": "^4.8.0", | ||
"@tonaljs/scale-type": "^4.8.0" | ||
"@tonaljs/pcset": "^4.8.2", | ||
"@tonaljs/scale-type": "^4.8.2" | ||
}, | ||
@@ -27,0 +27,0 @@ "author": "danigb@gmail.com", |
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
40057
-3.05%430
-3.59%Updated
Updated
Updated
Updated