tonal-interval
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -124,3 +124,3 @@ 'use strict'; | ||
p.semitones = p.dir * (SIZES[p.step] + p.alt + 12 * p.oct); | ||
p.chroma = ((p.dir * (SIZES[p.step] + p.alt)) % 12 + 12) % 12; | ||
p.chroma = (((p.dir * (SIZES[p.step] + p.alt)) % 12) + 12) % 12; | ||
return Object.freeze(p); | ||
@@ -127,0 +127,0 @@ }; |
@@ -120,3 +120,3 @@ /** | ||
p.semitones = p.dir * (SIZES[p.step] + p.alt + 12 * p.oct); | ||
p.chroma = ((p.dir * (SIZES[p.step] + p.alt)) % 12 + 12) % 12; | ||
p.chroma = (((p.dir * (SIZES[p.step] + p.alt)) % 12) + 12) % 12; | ||
return Object.freeze(p); | ||
@@ -123,0 +123,0 @@ }; |
@@ -121,3 +121,3 @@ /** | ||
p.semitones = p.dir * (SIZES[p.step] + p.alt + 12 * p.oct); | ||
p.chroma = ((p.dir * (SIZES[p.step] + p.alt)) % 12 + 12) % 12; | ||
p.chroma = (((p.dir * (SIZES[p.step] + p.alt)) % 12) + 12) % 12; | ||
return Object.freeze(p); | ||
@@ -124,0 +124,0 @@ }; |
{ | ||
"name": "tonal-interval", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Music interval creation and manipulation", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/danigb/tonal/packages/interval", |
52525
8
1248