[myank] Pickups do not work
Closed this issue · 0 comments
WolfgangDrescher commented
When I try to use e.g. cat test.krn | myank -l 2-10
on a file with a pickup before the first measure the command will fail and actually output the whole kern data and does not yank anything.
test.krn
**kern
4e
=1
4a
4g
4f
4e
=2
2d
4e
4b
=3
4cc
4cc
4b
4b
=4
1a;
==
*-
Expected output with myank -l 2-10
**kern
4e
=1
4a
4g
4f
4e
=2
2d
4e
*-
I tried to debug this, but I don't yet understand fully the logic of MeasureInfo
and where it does get hydrated. It looks like in Tool_myank::processFile
the expandMeasureOutList
function does not assign anything to m_measureOutList
. Would it make sense to add an additional MeasureInfo
element that contains all notes before the first bar number (e.g. as NUMBER = 0
or NUMBER = -1
) at the beginning of the vector?