saebekassebil / teoria

Javascript taught Music Theory
http://saebekassebil.github.io/teoria
MIT License
1.32k stars 115 forks source link

Fix descending intervals #33

Closed saebekassebil closed 11 years ago

saebekassebil commented 11 years ago

teoria.interval.from doesn't respect the direction of an interval:

Actual result from trying to find the minor third below C4:

teoria.interval.from(teoria.note('C4'), teoria.interval('m3', 'down')) == teoria.note('e3')

Expected behaviour is, to return teoria.note('A3')

saebekassebil commented 11 years ago

Fixed per above (ec646cb3d98e072080091882172e297d547443e0).