moinejf / abc2svg

project moved to https://chiselapp.com/user/moinejf/repository/abc2svg
GNU Lesser General Public License v3.0
48 stars 7 forks source link

%%clip stops if measure-number is > 9 #94

Closed bwl21 closed 6 years ago

bwl21 commented 6 years ago

I played around with %%clip. It stops working if the symbol selector is > 9

I:measurenb 1
%%tune 1
% up to the bar starting the measure #3
%%clip 2-10
%%tune end
X:1
M:C
L:1/4
K:C
CDEF | GABc | CDEF | GABc |CDEF | GABc | CDEF | GABc |CDEF | GABc | CDEF | GABc |

doses not yield any tune. It gives error messages %%tune not treated yet

I do not yet use this in my app but I plan to add a similar feature (see https://github.com/bwl21/zupfnoter/issues/64)

bwl21 commented 6 years ago

with 533db89 it works fine, but still throws messages

noname.abc:2:1 Error: %%tune not treated yet
noname.abc:5:1 Error: %%tune not treated yet
moinejf commented 6 years ago

Sorry, I forgot to update the documentation: %%clip works with %%tune only in abcm2ps. In abc2svg, %%clip works everywhere and %%tune is not handled yet.

bwl21 commented 6 years ago

I see. I played around and I saw that I could make my app to convert a clip to harpnotes by

      abc.tosvg("getmodel","I:clip 2-4");
      abc.tosvg("abc", abc_code);

This is great and helps me a lot. Thanks.