music-suite / music-pitch

This repo has been merged into: https://github.com/music-suite/music-suite
http://music-suite.github.io
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

mkInterval crashes/loops if given odd quality/number combination #41

Closed hanshoglund closed 10 years ago

hanshoglund commented 10 years ago

We should probaly improve the API for dealing with absurd quality/number combinations such as "perfect second".

Examples:

>>> mkInterval Perfect 1
_P1
>>> mkInterval Perfect 4
_P4
>>> mkInterval Perfect 5
_P5
>>> mkInterval Major 2
_M2
>>> mkInterval Major 3
_M3

>>> mkInterval Major 1
^C
Interrupted.
>>> 
>>> mkInterval Perfect 2
^C
Interrupted.
>>>