apparent bug in `midi` command

6 views
Skip to first unread message

Malcolm Sailor

unread,
Nov 3, 2021, 11:04:30 AM11/3/21
to starstarhug
Hello all,

Reporting what I believe is a bug in the `midi` command from the humdrum toolkit.


```
=36 =36 =36 =36
(8.CL 4.g_ [4.c 4.f .
16D-Xk . . .
8CJ) . . .
4.C 8en 8gL] 8c] .
. 8f (8a- 8rA .
. 8g 8b-XJ) 8rA .
```

The output of `midi sonata02-2.krn` for m. 36 is

```
=36 =36 =36 =36
36/-55/64 36/48/64 .. 36/-62/64 36/-65/64 36/60/64 36/65/64 .
54/-48/64 54/49/64 . . .
18/-49/64 18/48/64 . . .
36/-48/64 36/48/64 .... .. .
. 36/-67/64 36/65/64 36/68/64 36/-60/64 .
. 36/-65/64 36/-68/64 36/67/64 36/70/64 . .
. . . .
```

Note that on line 4, there should be a note-on with midi number 64 (corresponding to the pitch `e`) but there is not. In contrast, the output of `pitch -tx sonata02-2.krn` appears correct:

```
=36 =36 =36 =36
C3 . C4 F4 .
Db3 . . .
C3 . . .
C3 E4 . .
. F4 Ab4 r .
. G4 Bb4 r .
```

Let me know if there is a repository or the like where this bug report would be better directed.

Thanks!

Malcolm
Reply all
Reply to author
Forward
0 new messages