Skip to content

Commit

Permalink
Music21 v.5.1.0 Release! (first v5.2.0 version)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Mar 17, 2018
1 parent 8753ba9 commit 98fa71b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions dist/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
-- you will need an MIT username and password
-- for each new major version ssh in and delete old files before uploading.
9b. zip up documentation/build/html and get ready to upload/delete it.
10. And finally this file. (from the command line; not as python -m...)
11. COMMIT to Github at this point w/ commit comment of the new version,
Expand Down
2 changes: 1 addition & 1 deletion music21/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
Changing this number invalidates old pickles -- do it if the old pickles create a problem.
'''

__version_info__ = (5, 1, 0, '')
__version_info__ = (5, 2, 0, '')

v = '.'.join(str(x) for x in __version_info__[0:3])
if len(__version_info__) > 3 and __version_info__[3]:
Expand Down
2 changes: 1 addition & 1 deletion music21/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<class 'music21.base.Music21Object'>
>>> music21.VERSION_STR
'5.1.0'
'5.2.0'
Alternatively, after doing a complete import, these classes are available
under the module "base":
Expand Down
4 changes: 0 additions & 4 deletions music21/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import unittest

from music21 import base
from music21 import common
from music21 import exceptions21
from music21 import interval
from music21 import note
Expand Down Expand Up @@ -1026,9 +1025,6 @@ def _tonalCertainityCorrelationCoefficient(self, *args, **keywords):
# seems to have a greater span
leaderSpan = focus[0] - focus[1]

# take average of all non-negative values
meanMagnitude = sum(focus) / float(len(focus))

# combine factors with a weighting for each
# estimate range as 2, normalize between zero and 1
return (absMagnitude * 1) + (leaderSpan * 2)
Expand Down

0 comments on commit 98fa71b

Please sign in to comment.