Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equal Notes #67

Closed
amitgur opened this issue Feb 3, 2015 · 1 comment
Closed

Equal Notes #67

amitgur opened this issue Feb 3, 2015 · 1 comment

Comments

@amitgur
Copy link

amitgur commented Feb 3, 2015

I need to examine if two notes are the same pitch, Gb = F# etc. I wrote this simple fonction. It there another way to do that ?

teoria.checkEqualNotes = function(a,b){

var interval = teoria.interval(teoria.note(a),teoria.note(b)).toString();

if (interval ==='P1' || interval === 'd-2' || interval === 'd2'){
    return true;
} else {
    return false;
}

}

@saebekassebil
Copy link
Owner

TeoriaNote#chroma() :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants