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

Settings direction of an interval to what it already is, fails #38

Closed
saebekassebil opened this issue Jul 22, 2013 · 0 comments
Closed

Comments

@saebekassebil
Copy link
Owner

When using the TeoriaInterval#direction(dir) is a setter, the direction is toggled no matter what you set the direction to. That is, it is not idempotent which it ought to be.

Example:

var m3 = teoria.note('a3').interval(teoria.note('c4'));
console.log(m3.direction()); // -> 'up'
m3.direction('up');
console.log(m3.direction()); // -> 'down' ?!
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

1 participant