paulrosen / abcjs

javascript for rendering abc music notation
Other
1.94k stars 285 forks source link

Meter marks not displayed at the beginning of the line #668

Open alensiljak opened 3 years ago

alensiljak commented 3 years ago

With the following snippet:

P: A3
"_Du hast..." x8 | x8 | x8 | x8 | x8 | x8 | x8 | x "^(8)" x7 || [M: 3/8] x3||
P: Bridge
[M: 6/8] x8 | x8 | x8 | x "^4" x7 || \
P: A4
"_Ich wollt dir..." x8 | x8 | x8 | x8 | x8 | x8 | x8 | x "^(8)" x7 || [M: 3/8] x3||
P: B
"_Und i wues..." x8 | x8 | x8 | x8 | x8 | x8 | x8 | x "^(8)" x7 || \
"_Alles Andere..." x8 | x8 | x8 | x "^(4)" x7 ||

MuseScore renders the following:

image

Note that the 6/8 marks are both at the end of the line, after the change, as well as at the beginning of the new line.

Abcjs renders the following:

image

The meter marks are displayed at the end of the line, to warn of the change, but not at the beginning of the new line. I find it more obvious when the marks are also displayed at the end of the line, just like at the start of the tune, although it may seem redundant. Any thoughts on this?

seisiuneer commented 1 month ago

I'm always learning about new ABC features and how to use them in abcjs.

If you put a bar line

|

in brackets:

[|]

it becomes an invisible bar line, but is still associated with the staff it appears on.

This can be very useful for having a meter change in abcjs at the start of a staff show up at the beginning of the next staff instead of at the end of the previous staff.

Here's an example with two meter changes, one on the second line and one on the fourth line:

https://michaeleskin.com/abctools/abctools.html?lzw=BoLgBAjAUAKuMAsCmYDSSDOCoGF4CcBDAEwEsAXUgewDtCAbKAJXAClSBzKAWXADYA9AA4oAGXARhUAIrgAzMIC8EAEwAGKKnABxALaEAVlACkhAEYBjAxgD6GKgFcaxAGa1yYF-QeliJk2AAqhgohDRgAIIWjhiUFmDaRM5gAAqkYVRg9k7EnlT4YOTIYLpI9FTEAJ4gJsbcAJIAIvVgAA74VBxEumAaxgHBoeFRMXEJSblpGXkFRSgWCPnEGDXGdU0tC0vtnb3+xkEhYGFgAMqVNEVgAEKEGBhZjslus8Vmdyu1Dc1g7-c7HDAchE-QOpyQHkIWVaSAspBcpHihF0Tw8VBcWQA7qQaBxVhhsbjegA6FQAVn8AB8QAAibR0iLaBIRa6UmmNGksiKRa7ENn0pDEXIcIVsnA0wXXMDsmnEa4RSlQADavAUABYALp0hlM7Qstkcrk8vnawXCuUGznaABi0vp2jkIEV1O18qlcpN4qQHBQMrlCtdLLAcu0lqNjIVyspGpVIHVWvpbuDvLFEp9dtlKZp4o4LkBMsIHEI-JpZlzYA4jsVQA&format=noten&ssp=10&name=The_Kesh&editor=1

Ignore the actual meter numbers in the example. They could be anything.

The first meter change declaration at the start of the second line shows up at the end of the first line.

For the meter change declaration on the fourth line, look at how adding the [|] before the meter change in the B part moves the meter indication to the beginning of the next staff.

topchyan commented 1 month ago

Krdi Perev.pdf

I would like to revive this feature request since I am frequently transcribing scores with multiple key changes and repeats, like shown here.

The abcm2ps seems to be handling this case properly. Yet, of course, it has its own quirks and limitations.

Kürdi Peşrev.pdf

asjl commented 1 month ago

Works for key changes as well.

On Fri, Sep 20, 2024, at 11:46, Michael Eskin wrote:

I'm always learning about new ABC features and how to use them in abcjs.

If you put a bar line

|

in brackets:

[|]

it becomes an invisible bar line, but is still associated with the staff it appears on.

This can be very useful for having a meter change in abcjs at the start of a staff show up at the beginning of the next staff instead of at the end of the previous staff.

Here's an example with two meter changes, one on the second line and one on the fourth line:

https://michaeleskin.com/abctools/abctools.html?lzw=BoLgBAjAUAKuMAsCmYDSSDOCoGF4CcBDAEwEsAXUgewDtCAbKAJXAClSBzKAWXADYA9AA4oAGXARhUAIrgAzMIC8EAEwAGKKnABxALaEAVlACkhAEYBjAxgD6GKgFcaxAGa1yYF-QeliJk2AAqhgohDRgAIIWjhiUFmDaRM5gAAqkYVRg9k7EnlT4YOTIYLpI9FTEAJ4gJsbcAJIAIvVgAA74VBxEumAaxgHBoeFRMXEJSblpGXkFRSgWCPnEGDXGdU0tC0vtnb3+xkEhYGFgAMqVNEVgAEKEGBhZjslus8Vmdyu1Dc1g7-c7HDAchE-QOpyQHkIWVaSAspBcpHihF0Tw8VBcWQA7qQaBxVhhsbjegA6FQAVn8AB8QAAibR0iLaBIRa6UmmNGksiKRa7ENn0pDEXIcIVsnA0wXXMDsmnEa4RSlQADavAUABYALp0hlM7Qstkcrk8vnawXCuUGznaABi0vp2jkIEV1O18qlcpN4qQHBQMrlCtdLLAcu0lqNjIVyspGpVIHVWvpbuDvLFEp9dtlKZp4o4LkBMsIHEI-JpZlzYA4jsVQA&format=noten&ssp=10&name=The_Kesh&editor=1

Ignore the actual meter numbers in the example. They could be anything.

The first meter change declaration at the start of the second line shows up at the end of the first line.

For the meter change declaration on the fourth line, look at how adding the [|] before the meter change in the B part moves the meter indication to the beginning of the next staff.

— Reply to this email directly, view it on GitHub https://github.com/paulrosen/abcjs/issues/668#issuecomment-2362385338, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABL6VKPBAGEUTSUZA6IZVOTZXNO4ZAVCNFSM6AAAAABOQ5YKYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRSGM4DKMZTHA. You are receiving this because you are subscribed to this thread.Message ID: @.***>