Sun Oct 17 08:58:17 2021 UTC ()
abcmidi: update to 20211015

September 15 2021

abc2midi bug:
The last fix in June 27 2021 inserting a break introduced a new bug.
The chord associated with the 'b' gchord code was missing. b and f
codes were indistinguishable. Fix: removed the break in the switch
statement for case b:

October 11 2021

abc2midi new feature:
In compliance with the ABC draft standard 2.2, I introduced additional
K: and V: options for transposition. You can now indicate the number
of semitones to transpose by giving the original note and the
corresponding transposed note in the K: or V: field using either
shift = note1note2
sound = note1note2
instrument = note1/note2
The number of semitones is determined by the difference note2 - note1.

Abcm2ps and abc2svg recognize this command, but abc2abc, yaps, and
abcmatch ignore this new option.

http://abcnotation.com/wiki/abc:standard:v2.2#transposition

October 15 2021

Abc2abc -P bug

X:1
T: P bug
M:4/4
L:1/4
V:1 clef=treble
V:2 clef=bass
%%staves [1 2]
K:C
V:1
C2 D2  |  C4 |
V:2
C,2 G,2 | C,4|

The command
abc2abc t.abc -t 3 -P 1
fails to transpose voice 1

This bug has been around since this option was introduced in June 7 2011.
Fortunately, it has not bothered anyone until recently.
If you add another K:c after the first V:1 command in the body as
shown below.

X:1
T: P bug
M:4/4
L:1/4
V:1 clef=treble
V:2 clef=bass
%%staves [1 2]
K:C
V:1
K:C
C2 D2  |  C4 |
V:2
C,2 G,2 | C,4|

then voice 1 will be transposed correctly. Unfortunately, there is
no easy fix. When the -P option is present, abc2abc ignores the
first K: field command. (In toabc.c line 1643 event_key aborts
prior to setting up the arrays for a key transpose. Commenting
out this return statement introduces another problem.)

The main issue is that abc2abc only does one pass through the
input file. It does not know whether there is a K: field command
following V:1. If it assumes that there is none and forces a
call to event_key in event_voice, there may be another problem
when a different K: field command is found eventually. I have
decided to suspend support to the -P option because it would be
too complicated to fix this.


(nia)
diff -r1.23 -r1.24 pkgsrc/audio/abcmidi/Makefile
diff -r1.18 -r1.19 pkgsrc/audio/abcmidi/distinfo

cvs diff -r1.23 -r1.24 pkgsrc/audio/abcmidi/Makefile (expand / switch to unified diff)

--- pkgsrc/audio/abcmidi/Makefile 2021/07/13 07:57:13 1.23
+++ pkgsrc/audio/abcmidi/Makefile 2021/10/17 08:58:17 1.24
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1# $NetBSD: Makefile,v 1.23 2021/07/13 07:57:13 nia Exp $ 1# $NetBSD: Makefile,v 1.24 2021/10/17 08:58:17 nia Exp $
2# 2#
3 3
4DISTNAME= abcMIDI-2021.06.27 4DISTNAME= abcMIDI-2021.10.15
5PKGNAME= ${DISTNAME:tl:S/.//g} 5PKGNAME= ${DISTNAME:tl:S/.//g}
6CATEGORIES= audio 6CATEGORIES= audio
7MASTER_SITES= https://ifdo.ca/~seymour/runabc/ 7MASTER_SITES= https://ifdo.ca/~seymour/runabc/
8EXTRACT_SUFX= .zip 8EXTRACT_SUFX= .zip
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://ifdo.ca/~seymour/runabc/top.html 11HOMEPAGE= https://ifdo.ca/~seymour/runabc/top.html
12COMMENT= Command line utilities for working with abc music notation files 12COMMENT= Command line utilities for working with abc music notation files
13LICENSE= gnu-gpl-v2 13LICENSE= gnu-gpl-v2
14 14
15INSTALLATION_DIRS= share/doc/${PKGBASE}/programming \ 15INSTALLATION_DIRS= share/doc/${PKGBASE}/programming \
16 share/examples/${PKGBASE} 16 share/examples/${PKGBASE}
17 17

cvs diff -r1.18 -r1.19 pkgsrc/audio/abcmidi/distinfo (expand / switch to unified diff)

--- pkgsrc/audio/abcmidi/distinfo 2021/10/07 13:09:10 1.18
+++ pkgsrc/audio/abcmidi/distinfo 2021/10/17 08:58:17 1.19
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.18 2021/10/07 13:09:10 nia Exp $ 1$NetBSD: distinfo,v 1.19 2021/10/17 08:58:17 nia Exp $
2 2
3RMD160 (abcMIDI-2021.06.27.zip) = c760995448287cbbf1fcfdbee2ecef6e157090ca 3RMD160 (abcMIDI-2021.10.15.zip) = e4070c9b5c96ab0a2e05ddbd7b1b8640092450ab
4SHA512 (abcMIDI-2021.06.27.zip) = b1e4a7a9b93e6633abe211258995cfa84bb8eaed3870ed20e244aa12353c6cc351ea7e1c842e4e410dad9dd91b2e8c918826138bec39503c56e95062f4a99f37 4SHA512 (abcMIDI-2021.10.15.zip) = f9877444c28add8d036223d1f8aa309928d14a26b923509411fb5781192c77292138a02837015673a92c724b0ce59aa8fc11c66177371c9dd1d23501410f01e7
5Size (abcMIDI-2021.06.27.zip) = 605658 bytes 5Size (abcMIDI-2021.10.15.zip) = 607327 bytes
6SHA1 (patch-Makefile.in) = 85955fde3d3cc3184130fe9be87aa29e95691da2 6SHA1 (patch-Makefile.in) = 85955fde3d3cc3184130fe9be87aa29e95691da2