Closed gsouf closed 9 years ago
Thank you very much for doing this @SneakyBobito!
I think that the chord.bass
property needs to be converted into a method chord.base()
because the voicing of a chord can be altered! E.g:
var am = teoria.chord('Am');
am.base().name() == 'a';
am.voicing(['P5', 'P1', 'm3']);
am.base().name() == 'e';
I like the .inverted()
! Could you add some tests?
You can run the test be running npm test
in the project root.
I will, adapt the PR asap. Stay tunned
Is there a way to check if two teoria.note are the same note no matter about the pitch ?
What do you mean "no matter the pitch?".
I'm looking if two notes are the sames.
For instance a A
low and a A
high are both a A
.
note.toString(true)
gives you the note name without the octave number
Hi @gsouf - I went ahead and implemented the Chord#bass()
function, which basically just returns the note voiced the lowest. Hope you'll find it useful!
Hey @saebekassebil Sorry, my project with teoria has not been updated for weeks, I forgot this issue !
Thank you
Fix #59 I added a few testes, but i didnt run the tests. I didnt know how to run them (i'm not a javascript hacker!)