pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/py-music21 py-music21: update to 6.3.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/c9ab9db44d68
branches: trunk
changeset: 442758:c9ab9db44d68
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Mon Nov 30 06:11:02 2020 +0000
description:
py-music21: update to 6.3.0
pkgsrc-specific change: add py-Levenshtein as a dependency. Upstream
treats it as optional, but it's very small, should have no issues
building anywhere, and boosts similarity search performance vs. the
fallback of difflib.
Change log:
Bug fixes
Music21 gets the proper mac version and runs in Big Sur (thanks Daniel Fürst)
corpus.search() should work on PC now. Sharing music21 scores that have been frozen and thawed should also work across Mac and PC.
ChordSymbols preserve root and bass (thanks to Jacob Tayler Walls = JTW for this and so much else in this release!)
Instrument names that cannot be decoded from MIDI do not crash MIDI parsing (JTW)
Audio searches and other searches on empty streams are improved. (JTW)
Non existent user scratch directory does not raise major bugs any more (David Garfinkle and JTW)
New location for System/Preview on macOS since Catalina and musescore on Windows (MSC + JTW)
remove() now searches endElements as well.
Corrected octaves on pitches derived in IntervalNetwork.nextPitch() (JTW) -- should fix some weird scale pitch octaves.
TextExpressions now have correct offsets when derived from a tempo indication or coda (JTW)
MIDI files parsed multiple times with different quantization settings work properly (JTW)
MIDI files with zero-length notes now create zero-length GraceNotes and not 1.0 length notes in music21 (JTW)
All tests pass in Python 3.8 (now on to 3.9!)
Beethoven Opus 59 no 3 mvmt 4 contained all 4 movements in it. Now it only contains movement 4.
MIDI's matchedNoteOff was not working properly. Works now (Thanks SunWoong KIM)
If two keys had the same likelihood in probe-tone analysis then only one appeared in .alterateInterpretations. Now there will always be a 23-element list. (ZM-J + JTW)
C-version of Python Levenshtein was sometimes not being called even if installed. This will greatly speed up similarity searching.
Harmony.addChordStepModification gets an updatePitches=True attribute that will immediately apply the chordStepModification to the computed pitches. The default of False remains for now, but will
become True in music21 v.7.
Improvements:
Chordify and Verticality.makeChords gets a new keyword attribute "copyPitches=False" which makes it so that the original pitches (and not deepcopies) from the score appear in the chordified
score. This can make it MUCH easier to see which pitches in a chordified score relate to the pitches in the original. However, they are identical objects, so changing one later will change the other.
Default behavior is unchanged.
Repeats play back properly in MIDI (JTW)
Improved Docs (configuration instructions, typos, examples) (many people but especially JTW)
Much better typing all around for developers
math.log2 used instead of math.log(x, 2) for no more floating point confusion in many quarterLengths (JTW)
Braille keeps its debugging information in Note.editorial instead of custom attributes (backwards incompatible change, but okay)
Braille/runAllBrailleTests improved for non-sighted developers.
Incomplete 7th/9th/11th chords find roots better (JTW)
Legacy code for Python 3.5 removed (JTW)
Augmented sixth RomanNumerals work w/o needing a key. Also work with secondary numerals (JTW)
Bach chorales sort by BWV as a number rather than a string (JTW)
Beethoven quartets from Project Gutenberg had hidden voices w/ incorrect durations to show playback of trills, etc. Those voices have been removed. Speeds up the parsing of those pieces greatly,
and gives better feature extractions. Affected pieces are opus 59.1.3, 59.1.4, 59.2.1, 59.2.2, 59.3.2, 59.3.3, 59.3.4, and opus 133.
Improvements to instrument name lookups (Thanks Mark Gotham)
Unnecessary list comprehensions are removed.
For running tests, missing optional modules and Lilypond. will cause import errors.
ABC module has been partially cleaned up, and made easier for developers to hack new ABC extensions to.
Changes:
as this is a 6.X release, we have tried to keep backwards incompatible changes to a bare minimum, but a few obscure cases are changed:
.seconds, .beat, .beatStrength on notes without a TimeSignature or MetronomeMark context now return nan instead of raising an exception. .beatStr returns the string "nan". Python 3.8's mock
methods iterate through all properties before setting up the mocked object and properties that might raise exceptions cause problems. This seems like a good direction to go in, so please expect that
all property getters will switch to never raising an exception but giving nan or another failure indicator in the future.
KrumhanslSchmucker and KrumhanslKessler probe tone analysis are now identical. The difference before was probably a typo. They are now synonyms for each other.
diffstat:
audio/py-music21/Makefile | 6 +++---
audio/py-music21/PLIST | 3 ++-
audio/py-music21/distinfo | 10 +++++-----
3 files changed, 10 insertions(+), 9 deletions(-)
diffs (55 lines):
diff -r 1e7812dc0a61 -r c9ab9db44d68 audio/py-music21/Makefile
--- a/audio/py-music21/Makefile Mon Nov 30 00:03:47 2020 +0000
+++ b/audio/py-music21/Makefile Mon Nov 30 06:11:02 2020 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2020/10/12 21:51:58 bacon Exp $
+# $NetBSD: Makefile,v 1.8 2020/11/30 06:11:02 gutteridge Exp $
-VERSION= 6.1.0
+VERSION= 6.3.0
DISTNAME= music21-noCorpus-${VERSION}
PKGNAME= ${PYPKGPREFIX}-music21-${VERSION}
-PKGREVISION= 2
CATEGORIES= audio python
MASTER_SITES= ${MASTER_SITE_GITHUB:=cuthbertLab/}
GITHUB_PROJECT= music21
@@ -23,6 +22,7 @@
DEPENDS+= ${PYPKGPREFIX}-more-itertools-[0-9]*:../../devel/py-more-itertools
DEPENDS+= ${PYPKGPREFIX}-matplotlib-[0-9]*:../../graphics/py-matplotlib
DEPENDS+= ${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy
+DEPENDS+= ${PYPKGPREFIX}-Levenshtein-[0-9]*:../../textproc/py-Levenshtein
DEPENDS+= ${PYPKGPREFIX}-jsonpickle-[0-9]*:../../textproc/py-jsonpickle
DEPENDS+= ${PYPKGPREFIX}-webcolors>=1.11:../../www/py-webcolors
diff -r 1e7812dc0a61 -r c9ab9db44d68 audio/py-music21/PLIST
--- a/audio/py-music21/PLIST Mon Nov 30 00:03:47 2020 +0000
+++ b/audio/py-music21/PLIST Mon Nov 30 06:11:02 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2020/09/04 01:11:31 gutteridge Exp $
+@comment $NetBSD: PLIST,v 1.5 2020/11/30 06:11:02 gutteridge Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -452,6 +452,7 @@
${PYSITELIB}/music21/midi/testPrimitive/test13.mid
${PYSITELIB}/music21/midi/testPrimitive/test14.mid
${PYSITELIB}/music21/midi/testPrimitive/test15.mid
+${PYSITELIB}/music21/midi/testPrimitive/test16.mid
${PYSITELIB}/music21/midi/translate.py
${PYSITELIB}/music21/midi/translate.pyc
${PYSITELIB}/music21/midi/translate.pyo
diff -r 1e7812dc0a61 -r c9ab9db44d68 audio/py-music21/distinfo
--- a/audio/py-music21/distinfo Mon Nov 30 00:03:47 2020 +0000
+++ b/audio/py-music21/distinfo Mon Nov 30 06:11:02 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2020/09/04 01:11:31 gutteridge Exp $
+$NetBSD: distinfo,v 1.4 2020/11/30 06:11:02 gutteridge Exp $
-SHA1 (music21-noCorpus-6.1.0.tar.gz) = 9c61eb167f723d49f3e3e5bab4ba2cf0e917eed8
-RMD160 (music21-noCorpus-6.1.0.tar.gz) = 6d8e3757b162fa68b14b8ffdeb3ba63092cc3ea1
-SHA512 (music21-noCorpus-6.1.0.tar.gz) = 69fc5599fa533e8d5f2c25e711b04726ad1d7f3a9543384f8034fa2da962cfe550e0a597f697e9eb10dc7fb77d89682559e8e0a1eeff4a2ccc9f20913480ee48
-Size (music21-noCorpus-6.1.0.tar.gz) = 5269537 bytes
+SHA1 (music21-noCorpus-6.3.0.tar.gz) = 451cc0829cee8cee261ea8aabc73b2a0d9846bc1
+RMD160 (music21-noCorpus-6.3.0.tar.gz) = f15ebc7f0a35eab4d58ef346beddd1caa35bddee
+SHA512 (music21-noCorpus-6.3.0.tar.gz) = a530927f286e19aea188995822d5ec0130cda8e9e85680faa7962349809783756efe731e931596f20de0d6e1647ee6a6cb0a14ac230b09fd6d1e43aeb9a3e7d3
+Size (music21-noCorpus-6.3.0.tar.gz) = 5277568 bytes
Home |
Main Index |
Thread Index |
Old Index