-
Notifications
You must be signed in to change notification settings - Fork 2
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
Harte('C#:min(b7)/b1')
contains C## instead of C
#29
Comments
Think this error might be related. In Harte('D#:(3,5,b7)/bb1')
Traceback (most recent call last):
File "/cw/liir_code/NoCsBack/rubenc/miniconda3/envs/harmonyenv/lib/python3.12/site-packages/IPython/core/interactiveshell.py", line 3553, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-1-3f6292ada5aa>", line 1, in <module>
Harte('D#:(3,5,b7)/bb1')
File "/cw/liir_code/NoCsBack/rubenc/miniconda3/envs/harmonyenv/lib/python3.12/site-packages/harte/harte.py", line 95, in __init__
HarteInterval(x, octave=4).transposeNote(m21_root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cw/liir_code/NoCsBack/rubenc/miniconda3/envs/harmonyenv/lib/python3.12/site-packages/harte/interval.py", line 34, in __init__
super().__init__(self._converted_interval, **keywords)
File "/cw/liir_code/NoCsBack/rubenc/miniconda3/envs/harmonyenv/lib/python3.12/site-packages/music21/interval.py", line 3054, in __init__
diatonicNew, chromaticNew, inferred = _stringToDiatonicChromatic(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cw/liir_code/NoCsBack/rubenc/miniconda3/envs/harmonyenv/lib/python3.12/site-packages/music21/interval.py", line 2597, in _stringToDiatonicChromatic
gInterval = GenericInterval(genericNumber)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cw/liir_code/NoCsBack/rubenc/miniconda3/envs/harmonyenv/lib/python3.12/site-packages/music21/interval.py", line 892, in __init__
self.value = convertGeneric(value)
^^^^^^^^^^
File "/cw/liir_code/NoCsBack/rubenc/miniconda3/envs/harmonyenv/lib/python3.12/site-packages/music21/interval.py", line 945, in value
raise IntervalException('The Zeroth is not an interval')
music21.interval.IntervalException: The Zeroth is not an interval |
This unexpected behaviour was caused by a bug in the Finally, the latter error was fixed in d3f771b. All these fixes will be pushed in the next release of the library ( |
Nice thanks! |
I might be wrong, and I don't know this chord, but I don't see where the
C##3
comes from? Shouldn't the/b1
in the bass becomeC4
as first pitch? The chord occurs inbiab-internet-corpus_1004.jams
in the ChoCo dataset.The text was updated successfully, but these errors were encountered: