How to hide barlines #790
-
How can I hide barlines? Should't this filter work?
or
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The complication is that you should not specify The reason why the first character of a barline (or interpretation) cannot be in the regular expression is because of cases like this:
That would convert measure 10 into a null interpretation. Maybe someone would want do that, but I won't allow it until there is a good excuse to be able to do it. (note there is a somewhat reasonable case: you can return a barline If you include a "=", then that would mean you want to match to a final barline, such as I this this regular expression should work well:
This means match to a capture group of any barline content that does not already have an invisible marker on it. Then replace that match with itself ( I am noticing problems with making a repeat barline invisible, such as |
Beta Was this translation helpful? Give feedback.
The complication is that you should not specify
=
in the regular expression. When using theB
flag, it is assumed that the first character in the token is=
, and it is excluded from the regular expression. So removing the initial barline marker from the regular expressions should work.The reason why the first character of a barline (or interpretation) cannot be in the regular expression is because of cases like this:
That would convert measure 10 into a null interpretation. Maybe someone would want do that, but I won't allow it until there is a good excuse to be able to do it. (note there is a somewhat reasonable case: you can return a barline
=
which is an implied me…