saebekassebil / teoria

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

Downwards, diminished fifth interval returns undefined when calling base() #39

Closed saebekassebil closed 11 years ago

saebekassebil commented 11 years ago

When calling:

teoria.interval('d-5').base();
// Expected: -> 'fifth'
// Actual: -> undefined

This is due to an incorrect algorithm in the TeoriaInterval.base() method, for finding the base fifth coordinate.

saebekassebil commented 11 years ago

Fixed by above